parser

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 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 ParseNestedNode added in v0.8.0

func ParseNestedNode(statement sqlparser.SelectStatement) (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              *logical.Expression
	OrderByExpressions []logical.Expression
	OrderByDirections  []logical.OrderDirection
}

func ParseNode

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

func ParseSelect

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

func ParseWith added in v0.3.0

func ParseWith(statement *sqlparser.With) (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