Versions in this module Expand all Collapse all v0 v0.17.19 Apr 6, 2022 Changes in this version + type AggregrateOp int8 + const AgAvg + const AgCount + const AgMax + const AgMin + const AgSum + func (i AggregrateOp) String() string + type Arg struct + Val string + type Cache struct + Header string + type ColKey struct + Base bool + Name string + type Column struct + Col sdata.DBColumn + FieldName string + type Compiler struct + func NewCompiler(s *sdata.DBSchema, c Config) (*Compiler, error) + func (co *Compiler) AddRole(role, schema, table string, trc TRConfig) error + func (co *Compiler) Compile(query []byte, vars Variables, role string) (*QCode, error) + type Config struct + DBSchema string + DefaultBlock bool + DefaultLimit int + DisableAgg bool + DisableFuncs bool + EnableCamelcase bool + EnableInflection bool + FragmentFetcher func(name string) (string, error) + TConfig map[string]TConfig + Vars map[string]string + type Constraints map[string]interface + type DeleteConfig struct + Block bool + Columns []string + Filters []string + type Exp struct + Children []*Exp + Joins []Join + Left struct{ ... } + Op ExpOp + OrderBy bool + Right struct{ ... } + type ExpOp int8 + const OpAnd + const OpContainedIn + const OpContains + const OpDistinct + const OpEquals + const OpEqualsTrue + const OpFalse + const OpGreaterOrEquals + const OpGreaterThan + const OpHasKey + const OpHasKeyAll + const OpHasKeyAny + const OpILike + const OpIRegex + const OpIn + const OpIsNotNull + const OpIsNull + const OpLesserOrEquals + const OpLesserThan + const OpLike + const OpNop + const OpNot + const OpNotDistinct + const OpNotEquals + const OpNotEqualsTrue + const OpNotILike + const OpNotIRegex + const OpNotIn + const OpNotLike + const OpNotRegex + const OpNotSimilar + const OpOr + const OpRegex + const OpSelectExists + const OpSimilar + const OpTsQuery + func (i ExpOp) String() string + type Filter struct + type Function struct + Alias string + Col sdata.DBColumn + FieldName string + Name string + type InsertConfig struct + Block bool + Columns []string + Presets map[string]string + type Join struct + Filter *Exp + Local bool + Rel sdata.DBRel + type MColumn struct + Alias string + Col sdata.DBColumn + FieldName string + Value string + type MRColumn struct + Col sdata.DBColumn + VCol sdata.DBColumn + type MTable struct + Ti sdata.DBTable + type MType uint8 + const MTConnect + const MTDelete + const MTDisconnect + const MTInsert + const MTKeyword + const MTNone + const MTUpdate + const MTUpsert + func (i MType) String() string + type Mutate struct + Cols []MColumn + DependsOn map[int32]struct{} + ID int32 + Key string + Multi bool + ParentID int32 + Path []string + RCols []MRColumn + Rel sdata.DBRel + Ti sdata.DBTable + Type MType + Val json.RawMessage + Where Filter + type Order int8 + const OrderAsc + const OrderAscNullsFirst + const OrderAscNullsLast + const OrderDesc + const OrderDescNullsFirst + const OrderDescNullsLast + func (o Order) String() string + type OrderBy struct + Col sdata.DBColumn + Order Order + type Paging struct + Cursor bool + Limit int32 + LimitVar string + NoLimit bool + Offset int32 + OffsetVar string + Type PagingType + type PagingType int8 + const PTBackward + const PTForward + const PTOffset + func (i PagingType) String() string + type QCode struct + ActionArg graph.Arg + ActionVar string + Cache Cache + Consts Constraints + MUnions map[string][]int32 + Metadata allow.Metadata + Mutates []Mutate + Name string + Remotes int32 + Roots []int32 + SType QType + Schema *sdata.DBSchema + Script string + Selects []Select + Type QType + Vars Variables + type QType int8 + const QTDelete + const QTInsert + const QTMutation + const QTQuery + const QTSubscription + const QTUnknown + const QTUpdate + const QTUpsert + func GetQType(gql string) (QType, string) + func (i QType) String() string + type QueryConfig struct + Block bool + Columns []string + DisableFunctions bool + Filters []string + Limit int + type SelType int8 + const SelTypeMember + const SelTypeNone + const SelTypeUnion + func (i SelType) String() string + type Select struct + Args map[string]Arg + BCols []Column + Children []int32 + Cols []Column + DistinctOn []sdata.DBColumn + FieldName string + Funcs []Function + GroupCols bool + ID int32 + Joins []Join + OrderBy []OrderBy + Paging Paging + ParentID int32 + Rel sdata.DBRel + Singular bool + SkipRender SkipType + Table string + Ti sdata.DBTable + Type SelType + Typename bool + Where Filter + type SkipType int8 + const SkipTypeNone + const SkipTypeRemote + const SkipTypeUserNeeded + func (i SkipType) String() string + type TConfig struct + OrderBy map[string][][2]string + type TRConfig struct + Delete DeleteConfig + Insert InsertConfig + Query QueryConfig + Update UpdateConfig + Upsert UpsertConfig + type TableInfo struct + type UpdateConfig struct + Block bool + Columns []string + Filters []string + Presets map[string]string + type UpsertConfig struct + Block bool + Columns []string + Filters []string + Presets map[string]string + type ValType int8 + const ValBool + const ValList + const ValNone + const ValNum + const ValStr + const ValVar + func (i ValType) String() string + type Variables map[string]json.RawMessage