metadata

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 (c *Columns) FindGoType(fieldType string) (goType string)

func (*Columns) IfBitField

func (c *Columns) IfBitField() bool

func (*Columns) IfBool

func (c *Columns) IfBool() bool

func (*Columns) IfDate

func (c *Columns) IfDate() bool

func (*Columns) IfDateTime

func (c *Columns) IfDateTime() bool

func (*Columns) IfInt

func (c *Columns) IfInt() bool

func (*Columns) IfInt64

func (c *Columns) IfInt64() bool

func (*Columns) IfLocalDate

func (c *Columns) IfLocalDate() bool

func (*Columns) IfLocalDateInt

func (c *Columns) IfLocalDateInt() bool

func (*Columns) IfLocalTime

func (c *Columns) IfLocalTime() bool

func (*Columns) IfLocalTimeInt

func (c *Columns) IfLocalTimeInt() bool

func (*Columns) IfLocalTimeUTCInt

func (c *Columns) IfLocalTimeUTCInt() bool

func (*Columns) IfNumeric

func (c *Columns) IfNumeric() bool

func (*Columns) IfString

func (c *Columns) IfString() bool

func (*Columns) IfTime

func (c *Columns) IfTime() bool

func (*Columns) ReturnValue

func (cs *Columns) ReturnValue() (ReturnValue string)

func (*Columns) String

func (c *Columns) String() string

func (*Columns) ToString

func (c *Columns) ToString() string

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

func (*PkInfo) String

func (pkInfo *PkInfo) String() string

func (*PkInfo) ToString

func (pkInfo *PkInfo) ToString() string

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)

func (*Tables) ToString

func (tables *Tables) ToString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL