sb

package
v9.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLBuilder

type SQLBuilder interface {
	Error() error
	SetError(err error) SQLBuilder
	WriteArg(i ...interface{}) SQLBuilder
	Write(p []byte) SQLBuilder
	WriteStrings(ss ...string) SQLBuilder
	WriteRunes(r ...rune) SQLBuilder
	IsPrepared() bool
	CurrentArgPosition() int
	ToSQL() (sql string, args []interface{}, err error)
}

Builder that is composed of a bytes.Buffer. It is used internally and by adapters to build SQL statements

func NewSQLBuilder

func NewSQLBuilder(isPrepared bool) SQLBuilder

Jump to

Keyboard shortcuts

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