Documentation ¶
Index ¶
- Variables
- type DefineFactors
- type FacatroyMysql
- func (this *FacatroyMysql) BuildModel() *DefineFactors
- func (this *FacatroyMysql) FindColumns() *[]ichubmetadata.MetadataColumn
- func (this *FacatroyMysql) FindFields(table string, fields string) string
- func (this *FacatroyMysql) FindGoType(fieldType string) (goType string)
- func (this *FacatroyMysql) FindMetadata(table string) *ichubmetadata.MetadataTable
- func (this *FacatroyMysql) FindPgPkey(table string) []ichubmetadata.MetadataPkInfo
- func (this *FacatroyMysql) FindProtoType(fieldType string) (pbType string)
- func (this *FacatroyMysql) FindTableComment()
- func (this *FacatroyMysql) FindTables() []ichubmetadata.MetadataTable
- func (this *FacatroyMysql) IniDb(conn string) (dbinst *gorm.DB)
- func (this *FacatroyMysql) MakeModelProto() *list.List
- func (this *FacatroyMysql) MakeModelProtoBody(columns *[]ichubmetadata.MetadataColumn) *list.List
- func (this *FacatroyMysql) String() string
- func (this *FacatroyMysql) ToString() string
- type FactroyPostgres
- func (this *FactroyPostgres) BuildModel() *DefineFactors
- func (this *FactroyPostgres) FindColumns() *[]ichubmetadata.MetadataColumn
- func (this *FactroyPostgres) FindFields(table string, fields string) string
- func (this *FactroyPostgres) FindGoType(fieldType string) (goType string)
- func (this *FactroyPostgres) FindMetadata(table string) *ichubmetadata.MetadataTable
- func (this *FactroyPostgres) FindPgPkey(table string) []ichubmetadata.MetadataPkInfo
- func (this *FactroyPostgres) FindProtoType(fieldType string) (pbType string)
- func (this *FactroyPostgres) FindTableComment()
- func (this *FactroyPostgres) FindTables() []ichubmetadata.MetadataTable
- func (this *FactroyPostgres) IniDb(conn string) (dbinst *gorm.DB)
- func (this *FactroyPostgres) IsMysql() bool
- func (this *FactroyPostgres) MakeModelProto() *list.List
- func (this *FactroyPostgres) MakeModelProtoBody(columns *[]ichubmetadata.MetadataColumn) *list.List
- func (this *FactroyPostgres) String() string
- func (this *FactroyPostgres) ToString() string
- type ImetadataFactroy
- type MetadataFactroy
- func (this *MetadataFactroy) FindFields(table string, fieldsName string) *ichubmetadata.MetadataTable
- func (this *MetadataFactroy) FindGoType(fieldType string) (goType string)
- func (this *MetadataFactroy) FindMetadata(table string) *ichubmetadata.MetadataTable
- func (this *MetadataFactroy) FindPgPkey(table string) []ichubmetadata.MetadataPkInfo
- func (this *MetadataFactroy) FindProtoType(fieldType string) (pbType string)
- func (this *MetadataFactroy) FindTableComment()
- func (this *MetadataFactroy) FindTables() []ichubmetadata.MetadataTable
- func (this *MetadataFactroy) IsMysql() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Cfg = ichubconfig.NewConfig()
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) 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) 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
Click to show internal directories.
Click to hide internal directories.