Documentation ¶
Index ¶
- Constants
- func DialectStrings() []string
- func DumpGraphviz(w io.Writer, tables []*Table, m ModelType, d Dialect) error
- func DumpMermaid(w io.Writer, tables []*Table, d Dialect) error
- func DumpPlantUML(w io.Writer, tables []*Table, d Dialect) error
- func DumpSQL(w io.Writer, tables []*Table, d Dialect) error
- type Cardinality
- type Column
- type Dialect
- func (d Dialect) EnableForeignKey(hasForeignKey bool) string
- func (i Dialect) IsADialect() bool
- func (d Dialect) PrimaryKeyBaseType(t string) string
- func (d Dialect) PrimaryKeySQLType(t string, autoIncrement bool) string
- func (i Dialect) String() string
- func (d Dialect) TypeConversion(t string) string
- type Filter
- type ModelType
- type Relation
- type Table
- type TableType
Constants ¶
View Source
const ( OutputFields Filter = 1 << iota OutputKeys OutputForeignKeyDef OutputMaster OutputTransaction OutputWork OutputSummary OutputView OutputAE OutputAllTable = OutputMaster | OutputTransaction | OutputWork | OutputSummary | OutputView | OutputAE OutputSkeltonModel = OutputMaster | OutputTransaction | OutputAE OutputBirdViewModel = OutputMaster | OutputTransaction | OutputAE | OutputKeys OutputAll = OutputExceptForeignKey | OutputForeignKeyDef OutputExceptForeignKey = OutputFields | OutputKeys | OutputAllTable )
Variables ¶
This section is empty.
Functions ¶
func DialectStrings ¶
func DialectStrings() []string
DialectStrings returns a slice of all String values of the enum
func DumpGraphviz ¶ added in v1.2.0
Types ¶
type Cardinality ¶
type Cardinality int
const ( ZeroOrOne Cardinality = iota ExactlyOne ZeroOrMore )
type Column ¶
type Column struct { Name string Type string LinkTable string LinkColumn string PrimaryKey bool AutoIncrement bool Index bool Nullable bool AssociativeEntity bool ForeignKeyConstraint bool }
func ParseColumn ¶
type Dialect ¶
type Dialect int
func DialectString ¶
DialectString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Dialect) EnableForeignKey ¶ added in v1.2.0
func (Dialect) IsADialect ¶
IsADialect returns "true" if the value is listed in the enum definition. "false" otherwise
func (Dialect) PrimaryKeyBaseType ¶
func (Dialect) PrimaryKeySQLType ¶
func (Dialect) TypeConversion ¶
type Relation ¶
type Relation struct { FromTable string FromCardinality Cardinality ToTable string ToCardinality Cardinality Label string }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.