package
Version:
v0.0.0-...-280af2a
Opens a new window with list of versions in this module.
Published: Feb 8, 2017
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AndExpr struct {
Left, Right BoolExpr
}
AndExpr represents an AND expression.
type ArrayLit struct {
Values []ValExpr
}
ArrayLit represents an array literal.
BasicLit represents a basic literal.
type BoolExpr interface {
Node
}
BoolExpr defines a boolean expression.
ComparisonExpr represents a two-value comparison expression.
type Field struct {
Name []byte
}
Field represents a value lookup by name.
Literal identifies the type of literal.
const (
LiteralBool Literal = iota
LiteralInt
LiteralReal
LiteralText
)
The list of possible literal kinds.
Node is an element in the parse tree.
NotExpr represents a NOT expression.
Operator identifies the type of operator.
const (
OperatorEq Operator = iota
OperatorLt
OperatorLte
OperatorGt
OperatorGte
OperatorNeq
OperatorIn
OperatorRe
OperatorGlob
OperatorNotIn
OperatorNotRe
OperatorNotGlob
)
Comparison operators.
type OrExpr struct {
Left, Right BoolExpr
}
OrExpr represents an OR expression.
type ParenBoolExpr struct {
Expr BoolExpr
}
ParenBoolExpr represents a parenthesized boolean expression.
Tree is the representation of a single parsed SQL statement.
Parse parses the SQL statement and returns a Tree.
Parse parses the SQL statement buffer to construct an ast
representation for execution.
type ValExpr interface {
Node
}
ValExpr defines a value expression.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.