Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileExpression ¶
func CompileExpression(expr sqlparser.Expr) (expression.Expression, error)
CompileExpression compiles a SQL expression AST into a DBSP expression.
func CompilePredicate ¶
func CompilePredicate(expr sqlparser.Expr, bindVars map[string]*querypb.BindVariable) (expression.Expression, error)
CompilePredicate compiles a SQL predicate using SQL NULL semantics.
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
Compiler compiles SQL statements into DBSP circuits.
func (*Compiler) CompileString ¶
CompileString is a convenience wrapper that parses then compiles.
type NormalizedQuery ¶
type NormalizedQuery struct {
Stmt *sqlparser.Select
BindVars map[string]*querypb.BindVariable
}
NormalizedQuery holds a normalized AST and bind vars.
func Normalize ¶
func Normalize(source string, db *relation.Database) (*NormalizedQuery, error)
Normalize parses and normalizes SQL into a canonical subset. It rewrites aliases, expands stars, and rejects unsupported syntax.
func (*NormalizedQuery) IRKind ¶
func (n *NormalizedQuery) IRKind() string
type UnimplementedError ¶
type UnimplementedError struct {
Feature string
}
UnimplementedError indicates a SQL feature not yet supported.
func (UnimplementedError) Error ¶
func (e UnimplementedError) Error() string
Click to show internal directories.
Click to hide internal directories.