Documentation ¶
Index ¶
- func Normalize(r *AST, sourceFolder string) error
- type AST
- type Abs
- type Addition
- type Attribute
- type Attributes
- func (a Attributes) NoAuto() Attributes
- func (a Attributes) NoComputed() Attributes
- func (a Attributes) NoIDs() Attributes
- func (a Attributes) NoReferences() Attributes
- func (a Attributes) OnlyAuto() Attributes
- func (a Attributes) OnlyComputed() Attributes
- func (a Attributes) OnlyIDs() Attributes
- func (a Attributes) OnlyReferences() Attributes
- func (a Attributes) OnlyUnique() Attributes
- func (a Attributes) Resolve() []ResolvedAttribute
- type Bool
- type Column
- type Entity
- type Enum
- type EnumValue
- type Expression
- type Float
- type Hash
- type Int
- type IntLiteral
- type Lower
- type Modulo
- type Reference
- type ResolvedAttribute
- type Serial
- type String
- type StringLiteral
- type Time
- type Type
- type Upper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Abs ¶ added in v0.26.5
type Abs struct {
Expression Expression
}
type Addition ¶ added in v0.19.3
type Addition struct { Left Expression Right Expression }
type Attribute ¶
type Attribute struct { Name string InverseName string Identity bool InverseIdentity bool Unique bool AsType Type Computed Expression }
func (*Attribute) Resolve ¶
func (a *Attribute) Resolve() []ResolvedAttribute
type Attributes ¶
type Attributes []*Attribute
func (Attributes) NoAuto ¶
func (a Attributes) NoAuto() Attributes
func (Attributes) NoComputed ¶ added in v0.19.3
func (a Attributes) NoComputed() Attributes
func (Attributes) NoIDs ¶
func (a Attributes) NoIDs() Attributes
func (Attributes) NoReferences ¶
func (a Attributes) NoReferences() Attributes
func (Attributes) OnlyAuto ¶
func (a Attributes) OnlyAuto() Attributes
func (Attributes) OnlyComputed ¶ added in v0.19.3
func (a Attributes) OnlyComputed() Attributes
func (Attributes) OnlyIDs ¶
func (a Attributes) OnlyIDs() Attributes
func (Attributes) OnlyReferences ¶
func (a Attributes) OnlyReferences() Attributes
func (Attributes) OnlyUnique ¶
func (a Attributes) OnlyUnique() Attributes
func (Attributes) Resolve ¶
func (a Attributes) Resolve() []ResolvedAttribute
type Entity ¶
type Entity struct { Name string Comments []string IsView bool // Entity is a CTE or equivalent IsQuery bool // Query string when the entity is a CTE Query string Extension bool // Attributes are all attributes defined on this entity including ID Attributes Attributes InverseAttributes Attributes }
func (*Entity) HasSerialInCompositeIdentity ¶ added in v0.19.2
func (*Entity) SerialInCompositeIdentity ¶ added in v0.19.2
func (e *Entity) SerialInCompositeIdentity() ResolvedAttribute
type Expression ¶ added in v0.19.3
type Expression interface {
Type() Type
}
type Hash ¶ added in v0.26.5
type Hash struct {
Expression Expression
}
type IntLiteral ¶ added in v0.26.5
type IntLiteral struct {
Value int
}
func (*IntLiteral) Type ¶ added in v0.26.5
func (s *IntLiteral) Type() Type
type Lower ¶ added in v0.26.5
type Lower struct {
Expression Expression
}
type Modulo ¶ added in v0.26.5
type Modulo struct { Left Expression Right Expression }
type Reference ¶
type Reference struct { Entity *Entity // contains filtered or unexported fields }
func MkReference ¶
type ResolvedAttribute ¶
type ResolvedAttribute []*Attribute
func (ResolvedAttribute) Attribute ¶
func (ra ResolvedAttribute) Attribute() *Attribute
func (ResolvedAttribute) Name ¶
func (ra ResolvedAttribute) Name() string
func (ResolvedAttribute) Type ¶
func (ra ResolvedAttribute) Type() Type
type StringLiteral ¶ added in v0.19.3
type StringLiteral struct {
Value string
}
func (*StringLiteral) Type ¶ added in v0.19.3
func (s *StringLiteral) Type() Type
Click to show internal directories.
Click to hide internal directories.