Documentation ¶
Index ¶
- type Bool
- type Clause
- type Create
- type Delete
- type Expr
- type Field
- type FieldRef
- type FieldRefs
- type FieldType
- type FuncCall
- type GroupBy
- type Index
- type Int
- type Join
- type JoinType
- type Model
- type ModelRef
- type Null
- type Operator
- type OrderBy
- type OrderByEntry
- type Placeholder
- type Read
- type RelationKind
- type RelativeFieldRef
- type RelativeFieldRefs
- type Root
- type String
- type Suffix
- type Update
- type View
- type Where
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expr ¶
type Field ¶
type Field struct { Pos scanner.Position Name *String // Common to both regular and relation fields Column *String Nullable *Bool Updatable *Bool // Only make sense on a regular field Type *FieldType AutoInsert *Bool AutoUpdate *Bool Length *Int Default *String // Only make sense on a relation Relation *FieldRef RelationKind *RelationKind }
type Index ¶
type Index struct { Pos scanner.Position Name *String Fields *RelativeFieldRefs Unique *Bool Where []*Where Storing *RelativeFieldRefs }
type Model ¶
type Model struct { Pos scanner.Position Name *String Table *String Fields []*Field PrimaryKey *RelativeFieldRefs Unique []*RelativeFieldRefs Indexes []*Index }
type OrderBy ¶
type OrderBy struct { Pos scanner.Position Entries []*OrderByEntry }
type OrderByEntry ¶
type Placeholder ¶
func (*Placeholder) String ¶
func (p *Placeholder) String() string
type RelationKind ¶
type RelationKind struct { Pos scanner.Position Value consts.RelationKind }
type RelativeFieldRef ¶
func (*RelativeFieldRef) String ¶
func (r *RelativeFieldRef) String() string
type RelativeFieldRefs ¶
type RelativeFieldRefs struct { Pos scanner.Position Refs []*RelativeFieldRef }
type Root ¶
Click to show internal directories.
Click to hide internal directories.