Versions in this module Expand all Collapse all v1 v1.0.1 Jul 31, 2024 Changes in this version + const ExtendedTypeTag + const OnDupValuesPrefix + var BinderFactory = &sync.Pool + var ErrFailedToParseStats = errors.NewKind("failed to parse data: %s\n%s") + var ErrMaxAnalysisIters = errors.NewKind("exceeded max analysis iterations (%d)") + var ErrOrderByBinding = errors.NewKind("bindings in sort clauses not supported yet") + var ErrPrimaryKeyOnNullField = errors.NewKind("All parts of PRIMARY KEY must be NOT NULL") + var ErrQualifiedOrderBy = errors.NewKind("Table '%s' from one of the SELECTs cannot be used in global ORDER clause") + var ErrUnionSchemasDifferentLength = errors.NewKind(...) + func DeepCopyNode(node sql.Node) (sql.Node, error) + func ExpressionToColumnDefaultValue(inputExpr sql.Expression, isLiteral, isParenthesized bool) *sql.ColumnDefaultValue + func MustStringToColumnDefaultValue(ctx *sql.Context, exprStr string, outType sql.Type, nullable bool) *sql.ColumnDefaultValue + func Parse(ctx *sql.Context, cat sql.Catalog, query string) (ret sql.Node, err error) + func ParseColumnTypeString(columnType string) (sql.Type, error) + func ParseOne(ctx *sql.Context, cat sql.Catalog, query string) (sql.Node, string, string, error) + func ParseOnly(ctx *sql.Context, query string, multi bool) (ast.Statement, string, string, error) + func ParseWithOptions(ctx *sql.Context, cat sql.Catalog, query string, options ast.ParserOptions) (ret sql.Node, err error) + func RemoveSpaceAndDelimiter(query string, d rune) string + func StringToColumnDefaultValue(ctx *sql.Context, exprStr string) (*sql.ColumnDefaultValue, error) + type BindvarContext struct + Bindings map[string]*querypb.BindVariable + func (bv *BindvarContext) GetSubstitute(s string) (*querypb.BindVariable, bool) + func (bv *BindvarContext) UnusedBindings() []string + type Builder struct + func New(ctx *sql.Context, cat sql.Catalog) *Builder + func (b *Builder) BindCtx() *BindvarContext + func (b *Builder) BindOnly(stmt ast.Statement, s string) (ret sql.Node, err error) + func (b *Builder) ConvertVal(v *ast.SQLVal) sql.Expression + func (b *Builder) Initialize(ctx *sql.Context, cat sql.Catalog, opts ast.ParserOptions) + func (b *Builder) NewFrame(inScope *scope, f *ast.Frame) sql.WindowFrame + func (b *Builder) Parse(query string, multi bool) (ret sql.Node, parsed, remainder string, err error) + func (b *Builder) ParseOne(query string) (ret sql.Node, err error) + func (b *Builder) ProcCtx() *ProcContext + func (b *Builder) Reset() + func (b *Builder) SetBindings(bindings map[string]*querypb.BindVariable) + func (b *Builder) SetDebug(val bool) + func (b *Builder) SetParserOptions(opts ast.ParserOptions) + func (b *Builder) TriggerCtx() *TriggerContext + func (b *Builder) ViewCtx() *ViewContext + type ProcContext struct + AsOf interface{} + DbName string + type TriggerContext struct + Active bool + Call bool + ResolveErr error + UnresolvedTables []string + type ViewContext struct + AsOf interface{} + DbName string