Documentation
¶
Index ¶
- type Bool
- type Create
- type Delete
- type Expr
- type Field
- type FieldRef
- type FieldRefs
- type FieldType
- type FuncCall
- type Index
- type Int
- type Join
- type JoinType
- type Model
- type ModelRef
- type Null
- type Operator
- type OrderBy
- 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
// Only make sense on a relation
Relation *FieldRef
RelationKind *RelationKind
}
type Index ¶
type Index struct {
Pos scanner.Position
Name *String
Fields *RelativeFieldRefs
Unique *Bool
}
type Model ¶
type Model struct {
Pos scanner.Position
Name *String
Table *String
Fields []*Field
PrimaryKey *RelativeFieldRefs
Unique []*RelativeFieldRefs
Indexes []*Index
}
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
}
Click to show internal directories.
Click to hide internal directories.