Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ColumnMetaData ¶
type ColumnMetaData struct {
// 列名
Name string
// 列类型
DBType string
// 对应 go语言的什么类型
GoType string
// 无符号???
IsUnsigned bool
// 是否空
IsNullable bool
// 表名称
TableName string
// 备注
Remark string
// 是否为主键
IsPKey bool
}
ColumnMetaData 列元数据
func NewColumnMetaData ¶
func NewColumnMetaData(name string, isNullable bool, dataType string, isUnsigned bool, tableName, remark string, isKey bool, databaseType string) (columnMeta *ColumnMetaData)
NewColumnMetaData 创建列数据源对象
func (*ColumnMetaData) InitGoType ¶
func (c *ColumnMetaData) InitGoType(databaseType string)
type FlagModel ¶
type TableMetaData ¶
type TableMetaData struct {
// 表名
Name string
// 列元数据
Columns ColumnMetaDataList
}
TableMetaData 表元数据
Click to show internal directories.
Click to hide internal directories.