Documentation ¶
Index ¶
- type AggregrateOp
- type Arg
- type Cache
- type ColKey
- type Column
- type Compiler
- type Config
- type DeleteConfig
- type Exp
- type ExpOp
- type Filter
- type Function
- type InsertConfig
- type Join
- type MColumn
- type MRColumn
- type MTable
- type MType
- type Mutate
- type Order
- type OrderBy
- type Paging
- type PagingType
- type QCode
- type QType
- type QueryConfig
- type SelType
- type Select
- type SkipType
- type TConfig
- type TRConfig
- type TableInfo
- type UpdateConfig
- type UpsertConfig
- type ValType
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregrateOp ¶
type AggregrateOp int8
const ( AgCount AggregrateOp = iota + 1 AgSum AgAvg AgMax AgMin )
func (AggregrateOp) String ¶
func (i AggregrateOp) String() string
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
type DeleteConfig ¶
type Exp ¶
type Exp struct { Op ExpOp Joins []Join Order OrderBy bool Left struct { ID int32 Table string Col sdata.DBColumn } Right struct { ValType ValType Val string ID int32 Table string Col sdata.DBColumn ListType ValType ListVal []string Path []string } Children []*Exp // contains filtered or unexported fields }
type ExpOp ¶
type ExpOp int8
const ( OpNop ExpOp = iota OpAnd OpOr OpNot OpEquals OpNotEquals OpGreaterOrEquals OpLesserOrEquals OpGreaterThan OpLesserThan OpIn OpNotIn OpLike OpNotLike OpILike OpNotILike OpSimilar OpNotSimilar OpRegex OpNotRegex OpIRegex OpNotIRegex OpContains OpContainedIn OpHasKey OpHasKeyAny OpHasKeyAll OpIsNull OpIsNotNull OpTsQuery OpFalse OpNotDistinct OpDistinct OpEqualsTrue OpNotEqualsTrue OpSelectExists )
type InsertConfig ¶
type Mutate ¶
type Mutate struct { ID int32 ParentID int32 DependsOn map[int32]struct{} Type MType // CType uint8 Key string Path []string Val json.RawMessage Data map[string]json.RawMessage Array bool Cols []MColumn RCols []MRColumn Ti sdata.DBTable Rel sdata.DBRel Where Filter Multi bool // contains filtered or unexported fields }
type PagingType ¶
type PagingType int8
const ( PTOffset PagingType = iota PTForward PTBackward )
func (PagingType) String ¶
func (i PagingType) String() string
type QueryConfig ¶
type Select ¶
type Select struct { ID int32 ParentID int32 Type SelType Singular bool Typename bool Table string FieldName string Cols []Column BCols []Column Args map[string]Arg Funcs []Function Where Filter OrderBy []OrderBy GroupCols bool DistinctOn []sdata.DBColumn Paging Paging Children []int32 SkipRender SkipType Ti sdata.DBTable Rel sdata.DBRel Joins []Join // contains filtered or unexported fields }
type TRConfig ¶
type TRConfig struct { Query QueryConfig Insert InsertConfig Update UpdateConfig Upsert UpsertConfig Delete DeleteConfig }
type UpdateConfig ¶
type UpsertConfig ¶
type Variables ¶
type Variables map[string]json.RawMessage
Click to show internal directories.
Click to hide internal directories.