Documentation
¶
Index ¶
Constants ¶
View Source
const DDLPrimaryKey = "primaryKey"
View Source
const DDLUniqueIndex = "uniqueIndex"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
Field string `json:"field" orm:"column_name"` // 字段名
Type string `json:"type" orm:"column_type"` // 字段类型
Kind string `json:"kind" orm:"DATA_TYPE"` // 字段类型
Comment string `json:"comment" orm:"column_comment"` //字段注释
TableName string `json:"tableName" orm:"table_name"`
Default string `orm:"COLUMN_DEFAULT"`
NotNull string `orm:"IS_NULLABLE"` // 返回的值为 NO/YES
EXTRA string
Size string
PrimaryKey bool
DDLTag map[string]string
}
Click to show internal directories.
Click to hide internal directories.