Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
Table string `db:"TABLE_NAME"`
Name string `db:"COLUMN_NAME"`
Type string `db:"COLUMN_TYPE"`
DataType string `db:"COLUMN_DATA_TYPE"`
ColumnKey string `db:"COLUMN_KEY"`
Comment string `db:"COLUMN_COMMENT"`
Default string `db:"COLUMN_DEFAULT"`
AutoIncrement int `db:"AUTO_INCREMENT" `
NotNull int `db:"NOT_NULL"`
OrmTag string
}
type Controller ¶
type Model ¶
type Model struct {
PKG string
Name string
FileName string
Comment bool
Table *Table
Fields []*Field
DefaultFields []*Field
NoDefaultFields []*Field
HaveId bool
Ids []*Field
ImportTime bool
ImportSql bool
Orm bool
IntId bool
IdCount int
AutoIncrement bool
HaveField bool
OrmIndexDefinitions []string
}
Click to show internal directories.
Click to hide internal directories.