Documentation ¶
Index ¶
- func Normalize(r *AST) error
- type AST
- type Attribute
- type Attributes
- func (a Attributes) NoAuto() Attributes
- func (a Attributes) NoIDs() Attributes
- func (a Attributes) NoReferences() Attributes
- func (a Attributes) OnlyAuto() Attributes
- func (a Attributes) OnlyIDs() Attributes
- func (a Attributes) OnlyReferences() Attributes
- func (a Attributes) OnlyUnique() Attributes
- func (atts Attributes) Resolve() []ResolvedAttribute
- type Bool
- type Entity
- type Enum
- type EnumValue
- type Float
- type Int
- type Reference
- type ResolvedAttribute
- type Serial
- type String
- type Time
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attribute ¶
type Attribute struct { Name string InverseName string Identity bool InverseIdentity bool Unique bool Type Type }
func (*Attribute) Resolve ¶
func (a *Attribute) Resolve() []ResolvedAttribute
type Attributes ¶
type Attributes []*Attribute
func (Attributes) NoAuto ¶
func (a Attributes) NoAuto() 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) 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 (atts Attributes) Resolve() []ResolvedAttribute
type Entity ¶
type Entity struct { Name string Comments []string // Attributes are all attributes defined on this entity including ID Attributes Attributes InverseAttributes Attributes }
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
Click to show internal directories.
Click to hide internal directories.