Documentation ¶
Index ¶
- type AggregrateOp
- type Arg
- type Cache
- type ColKey
- type Column
- type Compiler
- type Config
- type Constraints
- 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 Validation
- 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 Config ¶
type Config struct { Vars map[string]string TConfig map[string]TConfig FragmentFetcher func(namespace string) func(name string) (string, error) DefaultBlock bool DefaultLimit int DisableAgg bool DisableFuncs bool EnableCamelcase bool EnableInflection bool DBSchema string // contains filtered or unexported fields }
type Constraints ¶ added in v0.17.16
type Constraints map[string]interface{}
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 OpHasInCommon OpHasKey OpHasKeyAny OpHasKeyAll OpIsNull OpIsNotNull OpTsQuery OpFalse OpNotDistinct OpDistinct OpEqualsTrue OpNotEqualsTrue OpSelectExists )
type InsertConfig ¶
type PagingType ¶
type PagingType int8
const ( PTOffset PagingType = iota PTForward PTBackward )
func (PagingType) String ¶
func (i PagingType) String() string
type QCode ¶
type QCode struct { Type QType SType QType Name string ActionVar string ActionArg graph.Arg Selects []Select Vars Variables Consts Constraints Roots []int32 Mutates []Mutate MUnions map[string][]int32 Schema *sdata.DBSchema Remotes int32 Script string Metadata allow.Metadata Cache Cache Validation *Validation // contains filtered or unexported fields }
type QueryConfig ¶
type Select ¶
type Select struct { ID int32 ParentID int32 Type SelType Singular bool Typename bool Table string Schema string FieldName string Cols []Column BCols []Column Args []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.