Documentation
¶
Overview ¶
Package schema contains the schema for the database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
Table string
Name string // ColumnName
OrdinalPosition int
Default string // ColumnDefault
Nullable string
DataType string
ColumnType string
Key string // ColumnKey
Extra string
Comment string // ColumnComment
ForeignKey *ForeignKey
}
func (*Column) IsAutoIncrement ¶
func (*Column) IsForeignKey ¶
func (*Column) IsNullable ¶
func (*Column) IsPrimaryKey ¶
func (*Column) IsUnsigned ¶
type ForeignKey ¶
type Table ¶
type Table struct {
Name string
Comment string
Columns []*Column
ForeignKeys []ForeignKey
ReverseForeignKeys []ForeignKey // Foreign keys from other tables referencing this table
}
Click to show internal directories.
Click to hide internal directories.