sqlstmt

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildStatementFunc

type BuildStatementFunc func(stmt *Statement, it interface{}) error

BuildStatementFunc :

type Formatter

type Formatter interface {
	Format(it interface{}) string
	Var(i int) string
}

Formatter :

type Statement

type Statement struct {
	strings.Builder
	// contains filtered or unexported fields
}

Statement :

func NewStatement

func NewStatement(fmt Formatter) (sm *Statement)

NewStatement :

func (*Statement) AppendArg

func (sm *Statement) AppendArg(arg interface{}) *Statement

AppendArg :

func (*Statement) AppendArgs

func (sm *Statement) AppendArgs(args []interface{})

AppendArgs :

func (*Statement) Args

func (sm *Statement) Args() []interface{}

Args :

func (Statement) Format

func (sm Statement) Format(state fmt.State, verb rune)

Format :

func (*Statement) StartTimer

func (sm *Statement) StartTimer()

StartTimer :

func (*Statement) StopTimer

func (sm *Statement) StopTimer()

StopTimer :

func (*Statement) TimeElapsed

func (sm *Statement) TimeElapsed() time.Duration

TimeElapsed :

type StatementBuilder

type StatementBuilder struct {
	// contains filtered or unexported fields
}

StatementBuilder :

func NewStatementBuilder

func NewStatementBuilder() *StatementBuilder

NewStatementBuilder :

func (*StatementBuilder) BuildStatement

func (sb *StatementBuilder) BuildStatement(stmt *Statement, it interface{}) error

BuildStatement :

func (*StatementBuilder) LookupBuilder

func (sb *StatementBuilder) LookupBuilder(t reflect.Type) (blr BuildStatementFunc, ok bool)

LookupBuilder :

func (*StatementBuilder) SetBuilder

func (sb *StatementBuilder) SetBuilder(it interface{}, p BuildStatementFunc)

SetBuilder :

Jump to

Keyboard shortcuts

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