postgres

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	Index int // Index starts at 1
	Value interface{}
}

Argument is a value that provides a query with parameter.

func NewArgument

func NewArgument(value interface{}, index int) *Argument

NewArgument creates a new argument with a given index.

func (*Argument) WriteTo

func (s *Argument) WriteTo(sw io.StringWriter) error

WriteTo implements Expression.

type Arguments

type Arguments struct {
	Index int
	Args  []interface{}
	// contains filtered or unexported fields
}

Arguments is a list of arguments. It keeps track of the index of the arguments.

func NewArguments

func NewArguments() *Arguments

func (*Arguments) NewArgument

func (a *Arguments) NewArgument(value interface{}) *Argument

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL