Documentation ¶
Index ¶
- type Columns
- func (c *Columns) FindGoType(fieldType string) (goType string)
- func (c *Columns) IfBitField() bool
- func (c *Columns) IfBool() bool
- func (c *Columns) IfDate() bool
- func (c *Columns) IfDateTime() bool
- func (c *Columns) IfInt() bool
- func (c *Columns) IfInt64() bool
- func (c *Columns) IfLocalDate() bool
- func (c *Columns) IfLocalDateInt() bool
- func (c *Columns) IfLocalTime() bool
- func (c *Columns) IfLocalTimeInt() bool
- func (c *Columns) IfLocalTimeUTCInt() bool
- func (c *Columns) IfNumeric() bool
- func (c *Columns) IfString() bool
- func (c *Columns) IfTime() bool
- func (cs *Columns) ReturnValue() (ReturnValue string)
- func (c *Columns) String() string
- func (c *Columns) ToString() string
- type DirFileC
- type MetadataContext
- type PkInfo
- type Tables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Columns ¶
type Columns struct { TableName string `gorm:"column:table_name"` TableSchema string `gorm:"column:table_schema"` ColumnName string `gorm:"column:column_name"` DataType string `gorm:"column:data_type"` ColumnType string `gorm:"column:column_type"` ColumnKey string `gorm:"column:column_key"` CharMaxLen string `gorm:"column:char_max_len"` ColumnComment string `gorm:"column:column_comment"` ColumnDefault string `gorm:"column:column_default"` }
@Title 文件名称: coulmns.go @Description 描述: 代码工厂元数据--表字段
@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)
func (*Columns) FindGoType ¶
func (*Columns) IfBitField ¶
func (*Columns) IfDateTime ¶
func (*Columns) IfLocalDate ¶
func (*Columns) IfLocalDateInt ¶
func (*Columns) IfLocalTime ¶
func (*Columns) IfLocalTimeInt ¶
func (*Columns) IfLocalTimeUTCInt ¶
func (*Columns) ReturnValue ¶
type DirFileC ¶
type DirFileC struct {
Dir, File, C string //目录, 文件, 内容
}
@Title 文件名称: dir_file_c.go @Description 描述: 代码工厂元数据--目录,文件,代码行
@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)
type MetadataContext ¶
type MetadataContext struct { DataTypeDB2GoMap map[string]string /*创建集合 */ DataTypeDB2ProtoMap map[string]string /*创建集合 */ // contains filtered or unexported fields }
var MetadataContextInst MetadataContext
@Title 文件名称: metadata_context.go @Description 描述: 代码工厂元数据--字典
@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)
func (*MetadataContext) FindGoType ¶
func (context *MetadataContext) FindGoType(fieldType string) (goType string)
func (*MetadataContext) FindProtoType ¶
func (context *MetadataContext) FindProtoType(fieldType string) (pbType string)
func (*MetadataContext) InitMap ¶
func (context *MetadataContext) InitMap(dbtype string)
func (*MetadataContext) IsMysql ¶
func (context *MetadataContext) IsMysql() bool
type PkInfo ¶
type PkInfo struct { PkName string `gorm:"column:pkname"` ColName string `gorm:"column:colname"` TypeName string `gorm:"column:typename"` }
@Title 文件名称: pk_info.go @Description 描述: 代码工厂元数据--主键 @Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)
for postgres
type Tables ¶
type Tables struct { TableSchema string `gorm:"column:table_schema"` TableName string `gorm:"column:table_name"` TableComment string `gorm:"column:table_comment"` }
@Title 文件名称: tables.go @Description 描述: 代码工厂元数据--表信息
@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)