Documentation
¶
Index ¶
- type AggregrateOp
- 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 ¶
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 ¶ added in v0.15.0
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 ¶ added in v0.14.36
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 OpContains OpContainedIn OpHasKey OpHasKeyAny OpHasKeyAll OpIsNull OpTsQuery OpFalse OpNotDistinct OpDistinct )
type InsertConfig ¶
type MTable ¶ added in v0.15.0
type MTable struct {
Ti *sdata.DBTableInfo
CType int
}
type Mutate ¶ added in v0.15.0
type Mutate struct {
ID int32
Type MType
CType int
Key string
Path []string
Val json.RawMessage
Data map[string]json.RawMessage
Array bool
Cols []MColumn
RCols []MRColumn
Tables []MTable
Ti *sdata.DBTableInfo
RelCP *sdata.DBRel
RelPC *sdata.DBRel
Items []Mutate
// contains filtered or unexported fields
}
type Paging ¶
type Paging struct {
Type PagingType
Limit int32
Offset int32
Cursor bool
NoLimit bool
}
type PagingType ¶
type PagingType int8
const ( PTOffset PagingType = iota PTForward PTBackward )
func (PagingType) String ¶ added in v0.15.0
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
Args map[string]*graph.Node
Cols []Column
ColMap map[string]struct{}
Funcs []Function
Where Filter
OrderBy []OrderBy
GroupCols bool
DistinctOn []*sdata.DBColumn
Paging Paging
Children []int32
SkipRender SkipType
Ti *sdata.DBTableInfo
Rel *sdata.DBRel
}
type TRConfig ¶
type TRConfig struct {
Query QueryConfig
Insert InsertConfig
Update UpdateConfig
Upsert UpsertConfig
Delete DeleteConfig
}
type UpdateConfig ¶
type UpsertConfig ¶ added in v0.15.0
type Variables ¶ added in v0.15.0
type Variables map[string]json.RawMessage
Click to show internal directories.
Click to hide internal directories.