Versions in this module Expand all Collapse all v0 v0.0.2 Nov 22, 2020 Changes in this version type AST + Insert *Insert + Replace *Insert + func Parse(s string) (*AST, error) + type Insert struct + Into string + Values []*ValueRow + type ValueRow struct + Value *Value v0.0.1 Nov 21, 2020 Changes in this version + var Lexer = lexer.Must(lexer.Regexp(...)) + var Parser = participle.MustBuild(&AST{}, participle.Lexer(Lexer), participle.Unquote("String"), UnquoteIdent(), ...) + func IsReservedWord(s string) bool + func UnquoteIdent() participle.Option + func Visit(node Node, visitor func(node Node, next func() error) error) error + type AST struct + End string + Select *Select + type AndExpression struct + And []*Condition + type Between struct + End *Operand + Start *Operand + type Boolean bool + func (b *Boolean) Capture(values []string) error + type Compare struct + Operand *Operand + Operator string + type Condition struct + Function *FunctionExpression + Not *NotCondition + Operand *ConditionOperand + Parenthesized *ParenthesizedExpression + type ConditionExpression struct + Or []*AndExpression + type ConditionOperand struct + ConditionRHS *ConditionRHS + Operand *DocumentPath + type ConditionRHS struct + Between *Between + Compare *Compare + In *In + type DocumentPath struct + Fragment []*PathFragment + func (p DocumentPath) String() string + type FunctionArgument struct + DocumentPath *DocumentPath + Value *Value + func (a FunctionArgument) String() string + type FunctionExpression struct + Args []*FunctionArgument + Function string + func (f *FunctionExpression) FirstArgIsRef() bool + func (f *FunctionExpression) String() string + type In struct + Values []*Value + type Node interface + type NotCondition struct + Condition *Condition + type Operand struct + SymbolRef *DocumentPath + Value *Value + type ParenthesizedExpression struct + ConditionExpression *ConditionExpression + type PathFragment struct + Indexes []int + Symbol string + func (p PathFragment) String() string + type ProjectionColumn struct + DocumentPath *DocumentPath + Function *FunctionExpression + func (c ProjectionColumn) String() string + type ProjectionExpression struct + All bool + Columns []*ProjectionColumn + func (e ProjectionExpression) String() string + type ScanDescending bool + func (b *ScanDescending) Capture(values []string) error + type Select struct + Descending *ScanDescending + From string + Index *string + Limit *int + Projection *ProjectionExpression + Where *AndExpression + type Value struct + Boolean *Boolean + Null bool + Number *float64 + PlaceHolder *string + PositionalPlaceholder *bool + String *string + func (v Value) Literal() string