package bind
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/bind"
Index ¶
- Variables
- func Params(args ...interface{}) ([]*params.Parameter, error)
- type AutoDeclare
- type Bind
- type Bindings
- type NumericArgs
- type PositionalArgs
- type TablePathPrefix
Variables ¶
var ( ErrInconsistentArgs = errors.New("inconsistent args") ErrUnexpectedNumericArgZero = errors.New("unexpected numeric arg $0. Allowed only $1 and greater") )
Functions ¶
func Params ¶
Types ¶
type AutoDeclare ¶
type AutoDeclare struct{}
func (AutoDeclare) ToYdb ¶
func (m AutoDeclare) ToYdb(sql string, args ...interface{}) ( yql string, newArgs []interface{}, err error, )
type Bind ¶
type Bind interface { ToYdb(sql string, args ...interface{}) ( yql string, newArgs []interface{}, _ error, ) // contains filtered or unexported methods }
func Sort ¶
type Bindings ¶
type Bindings []Bind
func (Bindings) ToYdb ¶
func (bindings Bindings) ToYdb(sql string, args ...interface{}) ( yql string, params params.Params, err error, )
type NumericArgs ¶
type NumericArgs struct{}
func (NumericArgs) ToYdb ¶
func (m NumericArgs) ToYdb(sql string, args ...interface{}) (yql string, newArgs []interface{}, err error)
type PositionalArgs ¶
type PositionalArgs struct{}
func (PositionalArgs) ToYdb ¶
func (m PositionalArgs) ToYdb(sql string, args ...interface{}) ( yql string, newArgs []interface{}, err error, )
type TablePathPrefix ¶
type TablePathPrefix string
func (TablePathPrefix) NormalizePath ¶
func (tablePathPrefix TablePathPrefix) NormalizePath(folderOrTable string) string
func (TablePathPrefix) ToYdb ¶
func (tablePathPrefix TablePathPrefix) ToYdb(sql string, args ...interface{}) ( yql string, newArgs []interface{}, err error, )
Source Files ¶
auto_declare.go bind.go errors.go numeric_args.go params.go positional_args.go sql_lexer.go table_path_prefix.go
- Version
- v3.95.4
- Published
- Dec 23, 2024
- Platform
- linux/amd64
- Imports
- 19 packages
- Last checked
- 1 minute ago –
Tools for package owners.