parser

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MPL-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotAggregate = errors.New("expression is not aggregate")

Functions

func ParseAggregate

func ParseAggregate(expr sqlparser.Expr) (string, logical.Expression, error)

func ParseAliasedExpression

func ParseAliasedExpression(expr *sqlparser.AliasedExpr) (logical.Expression, string, error)

func ParseAliasedTableExpression

func ParseAliasedTableExpression(expr *sqlparser.AliasedTableExpr) (logical.Node, error)

func ParseExpression

func ParseExpression(expr sqlparser.Expr) (logical.Expression, error)

func ParseFunctionArgument

func ParseFunctionArgument(expr *sqlparser.AliasedExpr) (logical.Expression, error)

func ParseInfixComparison

func ParseInfixComparison(left, right sqlparser.Expr, operator string) (logical.Expression, error)

func ParseInfixOperator

func ParseInfixOperator(left, right sqlparser.Expr, operator string) (logical.Expression, error)

func ParseJoinTableExpression

func ParseJoinTableExpression(expr *sqlparser.JoinTableExpr) (logical.Node, error)

func ParsePrefixOperator

func ParsePrefixOperator(child sqlparser.Expr, operator string) (logical.Expression, error)

func ParseTableExpression

func ParseTableExpression(expr sqlparser.TableExpr) (logical.Node, error)

func ParseTableValuedFunction added in v0.2.0

func ParseTableValuedFunction(expr *sqlparser.TableValuedFunction) (logical.Node, error)

func ParseTrigger added in v0.3.0

func ParseTrigger(trigger sqlparser.Trigger) (logical.Trigger, error)

func ParseType added in v0.4.0

func ParseType(t sqlparser.ConvertType) (octosql.TypeID, error)

Types

type OutputOptions added in v0.4.0

type OutputOptions struct {
	Limit              int
	OrderByExpressions []logical.Expression
	OrderByDirections  []logical.OrderDirection
}

func ParseNode

func ParseNode(statement sqlparser.SelectStatement, topmost bool) (logical.Node, *OutputOptions, error)

func ParseSelect

func ParseSelect(statement *sqlparser.Select, topmost bool) (logical.Node, *OutputOptions, error)

func ParseWith added in v0.3.0

func ParseWith(statement *sqlparser.With, topmost bool) (logical.Node, *OutputOptions, error)

Directories

Path Synopsis
dependency/hack
Package hack gives you some efficient functionality at the cost of breaking some Go rules.
Package hack gives you some efficient functionality at the cost of breaking some Go rules.
dependency/query
Package query is a generated protocol buffer package.
Package query is a generated protocol buffer package.
dependency/sqltypes
Package sqltypes implements interfaces and types that represent SQL values.
Package sqltypes implements interfaces and types that represent SQL values.

Jump to

Keyboard shortcuts

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