Documentation ¶
Index ¶
- type MetadataFactroy
- func (this *MetadataFactroy) CacheKey() string
- func (self *MetadataFactroy) CreateDbTableStru(meta *dbpkgdto.MetaTableDto) reflect.Value
- func (self *MetadataFactroy) CreateTableRecord(table string) (any, error)
- func (self *MetadataFactroy) CreateTableStru(TableName string) (reflect.Value, error)
- func (this *MetadataFactroy) FindEsType(fieldType string) string
- func (this *MetadataFactroy) FindFields(table string, fieldsName string) *dbpkgdto.MetaTableDto
- func (this *MetadataFactroy) FindGoType(fieldType string) string
- func (this *MetadataFactroy) FindIFactroyDb() iface.IFactroyDb
- func (this *MetadataFactroy) FindMetaPkey(tableName string) *dbpkgdto.MetaPkInfo
- func (this *MetadataFactroy) FindMetaTable(tableName string) *dbpkgdto.MetaTableDto
- func (this *MetadataFactroy) FindPgPkey(table string) []dbpkgdto.MetaPkInfo
- func (self *MetadataFactroy) FindPkName() string
- func (this *MetadataFactroy) FindProtoType(fieldType string) string
- func (this *MetadataFactroy) FindTableComment()
- func (this *MetadataFactroy) FindTables() []dbpkgdto.MetaTableDto
- func (self *MetadataFactroy) IfExistField(FieldsName, field string) bool
- func (this *MetadataFactroy) Init() *MetadataFactroy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataFactroy ¶
type MetadataFactroy struct { *factrydb.FacatroyDb iface.IFactroyDb // contains filtered or unexported fields }
func Default ¶
func Default() *MetadataFactroy
func FindMetadataFactroy ¶
func FindMetadataFactroy(dto *baseconfig.DbClientDto) *MetadataFactroy
func NewMetaFactroy ¶
func NewMetaFactroy() *MetadataFactroy
func NewMetadataFactroy ¶
func NewMetadataFactroy(dto *baseconfig.DbClientDto) *MetadataFactroy
func (*MetadataFactroy) CacheKey ¶
func (this *MetadataFactroy) CacheKey() string
func (*MetadataFactroy) CreateDbTableStru ¶
func (self *MetadataFactroy) CreateDbTableStru(meta *dbpkgdto.MetaTableDto) reflect.Value
func (*MetadataFactroy) CreateTableRecord ¶
func (self *MetadataFactroy) CreateTableRecord(table string) (any, error)
func (*MetadataFactroy) CreateTableStru ¶
func (self *MetadataFactroy) CreateTableStru(TableName string) (reflect.Value, error)
func (*MetadataFactroy) FindEsType ¶
func (this *MetadataFactroy) FindEsType(fieldType string) string
func (*MetadataFactroy) FindFields ¶
func (this *MetadataFactroy) FindFields(table string, fieldsName string) *dbpkgdto.MetaTableDto
func (*MetadataFactroy) FindGoType ¶
func (this *MetadataFactroy) FindGoType(fieldType string) string
func (*MetadataFactroy) FindIFactroyDb ¶
func (this *MetadataFactroy) FindIFactroyDb() iface.IFactroyDb
func (*MetadataFactroy) FindMetaPkey ¶
func (this *MetadataFactroy) FindMetaPkey(tableName string) *dbpkgdto.MetaPkInfo
find by gocache
func (*MetadataFactroy) FindMetaTable ¶
func (this *MetadataFactroy) FindMetaTable(tableName string) *dbpkgdto.MetaTableDto
find by gocache
func (*MetadataFactroy) FindPgPkey ¶
func (this *MetadataFactroy) FindPgPkey(table string) []dbpkgdto.MetaPkInfo
dbcontent type->go type
func (*MetadataFactroy) FindPkName ¶
func (self *MetadataFactroy) FindPkName() string
func (*MetadataFactroy) FindProtoType ¶
func (this *MetadataFactroy) FindProtoType(fieldType string) string
func (*MetadataFactroy) FindTableComment ¶
func (this *MetadataFactroy) FindTableComment()
func (*MetadataFactroy) FindTables ¶
func (this *MetadataFactroy) FindTables() []dbpkgdto.MetaTableDto
func (*MetadataFactroy) IfExistField ¶
func (self *MetadataFactroy) IfExistField(FieldsName, field string) bool
func (*MetadataFactroy) Init ¶
func (this *MetadataFactroy) Init() *MetadataFactroy
Click to show internal directories.
Click to hide internal directories.