Documentation
¶
Index ¶
- Constants
- func AddFilter(sel *Select, fil *Exp)
- func FreeExp(ex *Exp)
- func FreeNode(n *Node, loc int)
- type Action
- type AggregrateOp
- type Arg
- type Column
- type Compiler
- type Config
- type DeleteConfig
- type Exp
- type ExpOp
- type Field
- type InsertConfig
- type Node
- type Operation
- type Order
- type OrderBy
- type Paging
- type PagingType
- type Parser
- type Pos
- type QCode
- type QType
- type QueryConfig
- type Select
- type Stack
- type TRConfig
- type UpdateConfig
- type ValType
Constants ¶
View Source
const ( NodeStr parserType NodeInt NodeFloat NodeBool NodeObj NodeList NodeVar )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregrateOp ¶
type AggregrateOp int
const ( AgCount AggregrateOp = iota + 1 AgSum AgAvg AgMax AgMin )
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶
type DeleteConfig ¶
type Exp ¶
type ExpOp ¶
type ExpOp int
const ( OpNop ExpOp = iota OpAnd OpOr OpNot OpEquals OpNotEquals OpGreaterOrEquals OpLesserOrEquals OpGreaterThan OpLesserThan OpIn OpNotIn OpLike OpNotLike OpILike OpNotILike OpSimilar OpNotSimilar OpContains OpContainedIn OpHasKey OpHasKeyAny OpHasKeyAll OpIsNull OpEqID OpTsQuery OpFalse OpNotDistinct OpDistinct )
type InsertConfig ¶
type Node ¶
type Node struct {
Type parserType
Name string
Val string
Parent *Node
Children []*Node
// contains filtered or unexported fields
}
func ParseArgValue ¶
type Operation ¶
type Paging ¶
type Paging struct {
Type PagingType
Limit string
Offset string
Cursor bool
NoLimit bool
}
type Pos ¶
type Pos int
Pos represents a byte position in the original input text from which this template was parsed.
type QueryConfig ¶
type TRConfig ¶
type TRConfig struct {
Query QueryConfig
Insert InsertConfig
Update UpdateConfig
Delete DeleteConfig
}
type UpdateConfig ¶
Click to show internal directories.
Click to hide internal directories.