Documentation
¶
Index ¶
- func EvalIsEmpty(expr Expr, data map[string]interface{}) (bool, error)
- func Inspect(walker ExprWalker, f func(Expr) bool)
- type BinaryExpr
- type Boolean
- type Expr
- type ExprWalker
- type Float
- type FromClause
- type FromResource
- type FromSubselect
- type Integer
- type JQ
- type JsonPath
- type Operator
- type ParenExpr
- type PathExpression
- type Reference
- type SelectClause
- type SelectExpression
- type SelectStatement
- type String
- type Subselect
- type Visitor
- type WhereClause
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Inspect ¶
func Inspect(walker ExprWalker, f func(Expr) bool)
Types ¶
type BinaryExpr ¶
func (*BinaryExpr) Eval ¶
func (expr *BinaryExpr) Eval(data map[string]interface{}) (val interface{}, err error)
func (*BinaryExpr) Walk ¶
func (expr *BinaryExpr) Walk(v Visitor) Expr
type Expr ¶
type Expr interface { ExprWalker Eval(data map[string]interface{}) (interface{}, error) }
type ExprWalker ¶
type FromClause ¶
type FromClause struct { Subselects []*FromSubselect Resources []*FromResource }
type FromResource ¶
type FromSubselect ¶
type FromSubselect struct { Alias string Select *SelectStatement }
type JQ ¶
type JQ struct { Expr Expr Path string PathExpr *PathExpression }
type JsonPath ¶
type JsonPath struct { Expr Expr Path string PathExpr *PathExpression }
type ParenExpr ¶
type ParenExpr struct { Expr Expr PathExpr *PathExpression }
type PathExpression ¶
type PathExpression struct {
Fields []string
}
type Reference ¶
type Reference struct { Name string PathExpr *PathExpression }
type SelectClause ¶
type SelectClause struct {
Expressions []*SelectExpression
}
func (*SelectClause) Walk ¶
func (stmt *SelectClause) Walk(v Visitor) Expr
type SelectExpression ¶
type SelectStatement ¶
type SelectStatement struct { SelectClause *SelectClause FromClause *FromClause WhereClause *WhereClause }
type Subselect ¶
type Subselect struct { Select *SelectStatement SelectEval func(map[string]interface{}) (interface{}, error) }
type WhereClause ¶
type WhereClause struct {
Condition Expr
}
func (*WhereClause) Walk ¶
func (stmt *WhereClause) Walk(v Visitor) Expr
Click to show internal directories.
Click to hide internal directories.