Documentation
¶
Index ¶
- Constants
- type AggregrateOp
- type Arg
- type Column
- type Compiler
- type Config
- type DeleteConfig
- type Exp
- type ExpOp
- type Filter
- type Function
- type InsertConfig
- 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 TRConfig
- type UpdateConfig
- type UpsertConfig
- type ValType
- type Variables
Constants ¶
View Source
const ( CTConnect uint8 = 1 << iota CTDisconnect )
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 DeleteConfig ¶
type Exp ¶
type Exp struct {
Op ExpOp
Table string
Rels []sdata.DBRel
Col sdata.DBColumn
Type ValType
Val string
ListType ValType
ListVal []string
Children []*Exp
// contains filtered or unexported fields
}
func (*Exp) IsFromQuery ¶
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 OpTsQuery OpFalse OpNotDistinct OpDistinct OpEqualsTrue OpNotEqualsTrue )
type InsertConfig ¶
type MTable ¶
type MTable struct {
Ti sdata.DBTableInfo
CType uint8
}
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.DBTableInfo
Rel sdata.DBRel
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
UParentID int32
Type SelType
Singular bool
Typename bool
Table string
FieldName string
Cols []Column
ColMap map[string]int
ArgMap map[string]Arg
Funcs []Function
Where Filter
OrderBy []OrderBy
GroupCols bool
DistinctOn []sdata.DBColumn
Paging Paging
Children []int32
SkipRender SkipType
Ti sdata.DBTableInfo
Rel sdata.DBRel
// 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.