query

package
v3.44.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInconsistentArgs         = errors.New("inconsistent args")
	ErrUnexpectedNumericArgZero = errors.New("unexpected numeric arg $0. Allowed only $1 and greater")
)

Functions

func ToYdb

func ToYdb(args ...interface{}) (params []table.ParameterOption, _ error)

Types

type AutoDeclareBind

type AutoDeclareBind struct{}

func (AutoDeclareBind) RewriteQuery

func (m AutoDeclareBind) RewriteQuery(query string, args ...interface{}) (
	yql string, newArgs []interface{}, err error,
)

type Bind

type Bind interface {
	RewriteQuery(query string, args ...interface{}) (
		yql string, newArgs []interface{}, _ error,
	)
}

type Bindings

type Bindings []Bind

func (Bindings) RewriteQuery

func (bindings Bindings) RewriteQuery(query string, args ...interface{}) (
	yql string, _ *table.QueryParameters, err error,
)

type NumericArgsBind

type NumericArgsBind struct{}

func (NumericArgsBind) RewriteQuery

func (m NumericArgsBind) RewriteQuery(sql string, args ...interface{}) (
	yql string, newArgs []interface{}, err error,
)

type PositionalArgsBind

type PositionalArgsBind struct{}

func (PositionalArgsBind) RewriteQuery

func (m PositionalArgsBind) RewriteQuery(sql string, args ...interface{}) (
	yql string, newArgs []interface{}, err error,
)

type TablePathPrefixBind

type TablePathPrefixBind string

func (TablePathPrefixBind) NormalizePath

func (tablePathPrefix TablePathPrefixBind) NormalizePath(folderOrTable string) string

func (TablePathPrefixBind) RewriteQuery

func (tablePathPrefix TablePathPrefixBind) RewriteQuery(query string, args ...interface{}) (
	yql string, newArgs []interface{}, err error,
)

Jump to

Keyboard shortcuts

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