Versions in this module Expand all Collapse all v0 v0.2.0 Apr 17, 2023 v0.1.21 Dec 13, 2022 v0.1.20 Sep 25, 2021 v0.1.19 Jul 29, 2021 v0.1.18 Jun 21, 2021 v0.1.17 Jun 7, 2021 v0.1.16 Feb 11, 2021 v0.1.15 Dec 10, 2020 v0.1.14 Nov 20, 2020 v0.1.13 Oct 21, 2020 v0.1.12 Oct 16, 2020 v0.1.11 Oct 14, 2020 v0.1.10 Oct 2, 2020 v0.1.9 Jun 29, 2020 v0.1.8 May 28, 2020 Changes in this version + const MaxStatementLen + type AsClause struct + AltName Name + func (a AsClause) String() string + type BinaryOperator struct + Type BinaryOperatorType + func (o BinaryOperator) String() string + type BinaryOperatorType int + const And + const Equal + const GreaterThan + const GreaterThanOrEqual + const Is + const IsNot + const LessThan + const LessThanOrEqual + const Like + const NotEqual + const NotLike + const Or + type CharValue struct + Value rune + func (c CharValue) String() string + type DeleteStatement struct + Escape *EscapeClause + From *FromClause + Limit *LimitClause + Where *WhereClause + func (st DeleteStatement) CopyAndSubstitute(db ds.Database, paramValues []*vdl.Value) (Statement, error) + func (st DeleteStatement) Offset() int64 + func (st DeleteStatement) String() string + type EscapeClause struct + EscapeChar *CharValue + func (e EscapeClause) String() string + type Expression struct + Operand1 *Operand + Operand2 *Operand + Operator *BinaryOperator + func (e Expression) CopyAndSubstitute(db ds.Database, pi *paramInfo) (*Expression, error) + func (e Expression) String() string + type Field struct + Segments []Segment + func ParseIndexField(db ds.Database, fieldName, tableName string) (*Field, error) + func (f Field) String() string + type FromClause struct + Table TableEntry + func (f FromClause) String() string + type Function struct + ArgTypes []OperandType + Args []*Operand + Computed bool + Name string + RetType OperandType + RetValue *Operand + func (f Function) CopyAndSubstitute(db ds.Database, pi *paramInfo) (*Function, error) + func (f Function) String() string + type Int64Value struct + Value int64 + func (i Int64Value) String() string + type LimitClause struct + Limit *Int64Value + func (l LimitClause) String() string + type Name struct + Value string + func (n Name) String() string + type Node struct + Off int64 + type Operand struct + BigInt *big.Int + BigRat *big.Rat + Bool bool + Column *Field + Expr *Expression + Float float64 + Function *Function + Int int64 + Object *vdl.Value + Pattern *pattern.Pattern + Prefix string + Str string + Time time.Time + Type OperandType + Uint uint64 + func ConvertValueToAnOperand(value *vdl.Value, off int64) (*Operand, error) + func (o Operand) CopyAndSubstitute(db ds.Database, pi *paramInfo) (*Operand, error) + func (o Operand) String() string + type OperandType int + const TypBigInt + const TypBigRat + const TypBool + const TypExpr + const TypField + const TypFloat + const TypFunction + const TypInt + const TypNil + const TypObject + const TypParameter + const TypStr + const TypTime + const TypUint + type ResultsOffsetClause struct + ResultsOffset *Int64Value + func (l ResultsOffsetClause) String() string + type Segment struct + Keys []*Operand + Value string + func (s Segment) String() string + type SelectClause struct + Selectors []Selector + func (sel SelectClause) String() string + type SelectStatement struct + Escape *EscapeClause + From *FromClause + Limit *LimitClause + ResultsOffset *ResultsOffsetClause + Select *SelectClause + Where *WhereClause + func (st SelectStatement) CopyAndSubstitute(db ds.Database, paramValues []*vdl.Value) (Statement, error) + func (st SelectStatement) Offset() int64 + func (st SelectStatement) String() string + type Selector struct + As *AsClause + Field *Field + Function *Function + Type SelectorType + func (s Selector) String() string + type SelectorType int + const TypSelField + const TypSelFunc + type Statement interface + CopyAndSubstitute func(db ds.Database, paramValues []*vdl.Value) (Statement, error) + Offset func() int64 + String func() string + func Parse(db ds.Database, src string) (*Statement, error) + type TableEntry struct + DBTable ds.Table + Name string + func (t TableEntry) String() string + type Token struct + Off int64 + Tok TokenType + Value string + type TokenType int + const TokCHAR + const TokCOMMA + const TokEOF + const TokEQUAL + const TokERROR + const TokFLOAT + const TokIDENT + const TokINT + const TokLEFTANGLEBRACKET + const TokLEFTBRACKET + const TokLEFTPAREN + const TokMINUS + const TokPERIOD + const TokParameter + const TokRIGHTANGLEBRACKET + const TokRIGHTBRACKET + const TokRIGHTPAREN + const TokSTRING + type WhereClause struct + Expr *Expression + func (w WhereClause) CopyAndSubstitute(db ds.Database, paramValues []*vdl.Value) (*WhereClause, error) + func (w WhereClause) String() string