metadatafactroy

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DefineFactors

type DefineFactors struct {
	Columns *[]ichubmetadata.MetadataColumn
	Models  *list.List
}

type FacatroyMysql

type FacatroyMysql struct {
	DbClientDto *baseconfig.DbClientDto

	DB           *gorm.DB `json:"-"`
	Table        string
	TableComment *string

	Pkey            string
	PkeyType        string
	StringFieldName string `json:"-"`
	StringFieldLen  string `json:"-"`
	// contains filtered or unexported fields
}

@Title 文件名称: db_factroy.go @Description 描述: 础数据库工厂

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

func NewFactroyMysql

func NewFactroyMysql() *FacatroyMysql

func (*FacatroyMysql) BuildModel

func (this *FacatroyMysql) BuildModel() *DefineFactors

func (*FacatroyMysql) FindColumns

func (this *FacatroyMysql) FindColumns() *[]ichubmetadata.MetadataColumn

func (*FacatroyMysql) FindFields

func (this *FacatroyMysql) FindFields(table string, fields string) string

func (*FacatroyMysql) FindGoType

func (this *FacatroyMysql) FindGoType(fieldType string) (goType string)

func (*FacatroyMysql) FindMetadata

func (this *FacatroyMysql) FindMetadata(table string) *ichubmetadata.MetadataTable

func (*FacatroyMysql) FindPgPkey

func (this *FacatroyMysql) FindPgPkey(table string) []ichubmetadata.MetadataPkInfo

func (*FacatroyMysql) FindProtoType

func (this *FacatroyMysql) FindProtoType(fieldType string) (pbType string)

func (*FacatroyMysql) FindTableComment

func (this *FacatroyMysql) FindTableComment()

func (*FacatroyMysql) FindTables

func (this *FacatroyMysql) FindTables() []ichubmetadata.MetadataTable

func (*FacatroyMysql) IniDb

func (this *FacatroyMysql) IniDb(conn string) (dbinst *gorm.DB)

func (*FacatroyMysql) MakeModelProto

func (this *FacatroyMysql) MakeModelProto() *list.List

func (*FacatroyMysql) MakeModelProtoBody

func (this *FacatroyMysql) MakeModelProtoBody(columns *[]ichubmetadata.MetadataColumn) *list.List

func (*FacatroyMysql) String

func (this *FacatroyMysql) String() string

func (*FacatroyMysql) ToString

func (this *FacatroyMysql) ToString() string

type FactroyPostgres

type FactroyPostgres struct {
	DbClientDto *baseconfig.DbClientDto

	Table        string
	TableComment *string

	Pkey            string
	PkeyType        string
	StringFieldName string `json:"-"`
	StringFieldLen  string `json:"-"`
	// contains filtered or unexported fields
}

@Title 文件名称: db_factroy.go @Description 描述: 础数据库工厂

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

func NewFactroyPostgres

func NewFactroyPostgres() *FactroyPostgres

func (*FactroyPostgres) BuildModel

func (this *FactroyPostgres) BuildModel() *DefineFactors

func (*FactroyPostgres) FindColumns

func (this *FactroyPostgres) FindColumns() *[]ichubmetadata.MetadataColumn

func (*FactroyPostgres) FindFields

func (this *FactroyPostgres) FindFields(table string, fields string) string

func (*FactroyPostgres) FindGoType

func (this *FactroyPostgres) FindGoType(fieldType string) (goType string)

func (*FactroyPostgres) FindMetadata

func (this *FactroyPostgres) FindMetadata(table string) *ichubmetadata.MetadataTable

func (*FactroyPostgres) FindPgPkey

func (this *FactroyPostgres) FindPgPkey(table string) []ichubmetadata.MetadataPkInfo

func (*FactroyPostgres) FindProtoType

func (this *FactroyPostgres) FindProtoType(fieldType string) (pbType string)

func (*FactroyPostgres) FindTableComment

func (this *FactroyPostgres) FindTableComment()

func (*FactroyPostgres) FindTables

func (this *FactroyPostgres) FindTables() []ichubmetadata.MetadataTable

func (*FactroyPostgres) IniDb

func (this *FactroyPostgres) IniDb(conn string) (dbinst *gorm.DB)

func (*FactroyPostgres) IsMysql

func (this *FactroyPostgres) IsMysql() bool

func (*FactroyPostgres) MakeModelProto

func (this *FactroyPostgres) MakeModelProto() *list.List

func (*FactroyPostgres) MakeModelProtoBody

func (this *FactroyPostgres) MakeModelProtoBody(columns *[]ichubmetadata.MetadataColumn) *list.List

func (*FactroyPostgres) String

func (this *FactroyPostgres) String() string

func (*FactroyPostgres) ToString

func (this *FactroyPostgres) ToString() string

type ImetadataFactroy

type ImetadataFactroy interface {
	FindMetadata(table string) *ichubmetadata.MetadataTable
	FindFields(table string, fields string) string
}

type MetadataFactroy

type MetadataFactroy struct {
	DbClientDto *baseconfig.DbClientDto

	Table        string
	TableComment *string

	Pkey            string
	PkeyType        string
	StringFieldName string `json:"-"`
	StringFieldLen  string `json:"-"`
	// contains filtered or unexported fields
}

@Title 文件名称: db_factroy.go @Description 描述: 础数据库工厂

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

func NewMetadataFactroy

func NewMetadataFactroy() *MetadataFactroy

func (*MetadataFactroy) FindFields

func (this *MetadataFactroy) FindFields(table string, fieldsName string) *ichubmetadata.MetadataTable

func (*MetadataFactroy) FindGoType

func (this *MetadataFactroy) FindGoType(fieldType string) (goType string)

func (*MetadataFactroy) FindMetadata

func (this *MetadataFactroy) FindMetadata(table string) *ichubmetadata.MetadataTable

func (*MetadataFactroy) FindPgPkey

func (this *MetadataFactroy) FindPgPkey(table string) []ichubmetadata.MetadataPkInfo

func (*MetadataFactroy) FindProtoType

func (this *MetadataFactroy) FindProtoType(fieldType string) (pbType string)

func (*MetadataFactroy) FindTableComment

func (this *MetadataFactroy) FindTableComment()

func (*MetadataFactroy) FindTables

func (this *MetadataFactroy) FindTables() []ichubmetadata.MetadataTable

func (*MetadataFactroy) IsMysql

func (this *MetadataFactroy) IsMysql() bool

Jump to

Keyboard shortcuts

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