Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DBSkipColName = map[string]string{
"is_deleted": "is_deleted",
"update_time": "update_time",
"update_user": "update_user",
"create_time": "create_time",
"create_user": "create_user",
}
View Source
var DBTypeToStructType = map[string]string{
"int": "int32",
"tinyint": "int",
"smallint": "int",
"mediumint": "int64",
"bigint": "int64",
"bit": "int",
"bool": "bool",
"enum": "string",
"set": "string",
"varchar": "string",
"text": "string",
"datetime": "string",
}
DBTypeToStructType 数据库字段类型 转 go 数据字段类型
Functions ¶
This section is empty.
Types ¶
type TableColumn ¶
type TableColumn struct { TableName string ColumnName string DataType string IsNullable string ColumnKey string ColumnType string ColumnComment string }
func GetColumnsByTableName ¶
type TableNameColumn ¶
type TableNameColumn struct {
TableName string
}
Click to show internal directories.
Click to hide internal directories.