Documentation
¶
Index ¶
Constants ¶
View Source
const (
// TypeEnum represents a MySQL enum type. This is because ENUMS are not a real type in MySQL, they are just a list of strings.
TypeEnum = "enum"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
Name string
Type string
TypeSize int
TypePrecision int
Default any
HasDefault bool
Nullable bool
AutoIncrementing bool
ZeroFilled bool
Binary bool
Unsigned bool
InPrimaryKey bool
InUniqueKey bool
Comment string
Elements []string
}
Column represents a MySQL column definition
type Constraint ¶
type Constraint struct {
Name string
ReferenceTable string
References map[string]string
Comment string
}
Constraint represents a MySQL foreign key constraint
Click to show internal directories.
Click to hide internal directories.