meta

package
v0.0.0-...-c47cd45 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectMetaTable

func InjectMetaTable(s *MetaTable)

func LoadMetaTable

func LoadMetaTable() baseiface.ISingleton

Types

type MetaColumn

type MetaColumn 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 NewMetadataColumns

func NewMetadataColumns() *MetaColumn

func (*MetaColumn) FindDtoGoType

func (c *MetaColumn) FindDtoGoType(fieldType string) (goType string)

func (*MetaColumn) FindGoType

func (c *MetaColumn) FindGoType(fieldType string) (goType string)

func (*MetaColumn) IfBitField

func (c *MetaColumn) IfBitField() bool

func (*MetaColumn) IfBool

func (c *MetaColumn) IfBool() bool

func (*MetaColumn) IfDate

func (c *MetaColumn) IfDate() bool

func (*MetaColumn) IfDateTime

func (c *MetaColumn) IfDateTime() bool

func (*MetaColumn) IfInt

func (c *MetaColumn) IfInt() bool

func (*MetaColumn) IfInt64

func (c *MetaColumn) IfInt64() bool

func (*MetaColumn) IfLocalDate

func (c *MetaColumn) IfLocalDate() bool

func (*MetaColumn) IfLocalDateInt

func (c *MetaColumn) IfLocalDateInt() bool

func (*MetaColumn) IfLocalTime

func (c *MetaColumn) IfLocalTime() bool

func (*MetaColumn) IfLocalTimeInt

func (c *MetaColumn) IfLocalTimeInt() bool

func (*MetaColumn) IfLocalTimeUTCInt

func (c *MetaColumn) IfLocalTimeUTCInt() bool

func (*MetaColumn) IfNumeric

func (c *MetaColumn) IfNumeric() bool

func (*MetaColumn) IfString

func (c *MetaColumn) IfString() bool

func (*MetaColumn) IfTime

func (c *MetaColumn) IfTime() bool

func (*MetaColumn) ReturnValue

func (cs *MetaColumn) ReturnValue() (ReturnValue string)

func (*MetaColumn) String

func (c *MetaColumn) String() string

func (*MetaColumn) ToString

func (c *MetaColumn) ToString() string

type MetaPkinfo

type MetaPkinfo struct {
	Pkey      string
	PkeyField string
	PkeyType  string

	StrPkey    string `json:"-"`
	StrPkeyLen string `json:"-"`
}
@Title    文件名称: meta_pkinfo.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 (*MetaPkinfo) FindGoPkeyType

func (this *MetaPkinfo) FindGoPkeyType() string

func (*MetaPkinfo) String

func (pkInfo *MetaPkinfo) String() string

func (*MetaPkinfo) ToString

func (pkInfo *MetaPkinfo) ToString() string

type MetaTable

type MetaTable struct {
	basedto.BaseEntity

	TableSchema  string `gorm:"column:table_schema"`
	TableName    string `gorm:"column:table_name"`
	TableComment string `gorm:"column:table_comment"`

	Columns *[]MetaColumn `json:"columns,omitempty"`
	PkInfo  MetaPkinfo    `json:"pk_info"`
}

@Title 文件名称: meta_table.go @Description 描述: 代码工厂元数据--表信息

@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)

func FindBeanMetaTable

func FindBeanMetaTable() *MetaTable

func NewMetadataTable

func NewMetadataTable() *MetaTable

func (*MetaTable) FindColString

func (self *MetaTable) FindColString() *MetaColumn

func (*MetaTable) FindPkInfo

func (self *MetaTable) FindPkInfo() *MetaPkinfo

func (*MetaTable) SetPkInfo

func (self *MetaTable) SetPkInfo() *MetaTable

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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