Documentation ¶
Index ¶
- func InjectMetaColService(s *MetaColService)
- func InjectMetaTableService(s *MetaTableService)
- func LoadMetaColService() baseiface.ISingleton
- func LoadMetaTableService() baseiface.ISingleton
- type FacatroyDb
- func (this *FacatroyDb) BuildGoFields(tbl *dto2.MetaTableDto)
- func (this *FacatroyDb) CacheKey(tablename string) string
- func (this *FacatroyDb) FindFactryDto() *dto2.FacatroyDto
- func (this *FacatroyDb) FindGoType(fieldType string) string
- func (this *FacatroyDb) FindMetaCtx() iface.ImetaCtx
- func (this *FacatroyDb) FindProtoType(fieldType string) string
- func (this *FacatroyDb) GetDbFunc() *gorm.DB
- func (this *FacatroyDb) IfCockdb() bool
- func (this *FacatroyDb) IfMedusa() bool
- func (this *FacatroyDb) IfMysql() bool
- func (this *FacatroyDb) IfPostgres() bool
- func (this *FacatroyDb) ImetaCtx() iface.ImetaCtx
- func (this *FacatroyDb) Init(tablename string, dto *baseconfig.DbClientDto) *FacatroyDb
- func (this *FacatroyDb) IsMysql() bool
- func (this *FacatroyDb) Parse2EsIndex(tbl *dto2.MetaTableDto)
- func (this *FacatroyDb) SetDbClientDto(dto *baseconfig.DbClientDto)
- func (this *FacatroyDb) SetImetaCtx(imetaCtx iface.ImetaCtx)
- func (this *FacatroyDb) SetTableName(tablename string)
- type MetaColService
- func (this *MetaColService) FindColEsType() (goType string)
- func (this *MetaColService) FindGoType(datatype string) (goType string)
- func (this *MetaColService) IfBitField() bool
- func (this *MetaColService) IfBool() bool
- func (this *MetaColService) IfDate() bool
- func (this *MetaColService) IfDateTime() bool
- func (this *MetaColService) IfInt() bool
- func (this *MetaColService) IfInt64() bool
- func (this *MetaColService) IfLocalDate() bool
- func (this *MetaColService) IfLocalDateInt() bool
- func (this *MetaColService) IfLocalTime() bool
- func (this *MetaColService) IfLocalTimeInt() bool
- func (this *MetaColService) IfLocalTimeUTCInt() bool
- func (this *MetaColService) IfNumeric() bool
- func (this *MetaColService) IfString() bool
- func (this *MetaColService) IfTime() bool
- func (this *MetaColService) ReturnValue() (ReturnValue string)
- type MetaTableService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectMetaColService ¶
func InjectMetaColService(s *MetaColService)
func InjectMetaTableService ¶
func InjectMetaTableService(s *MetaTableService)
func LoadMetaColService ¶
func LoadMetaColService() baseiface.ISingleton
func LoadMetaTableService ¶
func LoadMetaTableService() baseiface.ISingleton
Types ¶
type FacatroyDb ¶
type FacatroyDb struct { DbClientDto *baseconfig.DbClientDto *dto2.FacatroyDto Cfg *ichubconfig.IchubConfig `json:"-"` // contains filtered or unexported fields }
func NewFacatroyDb ¶
func NewFacatroyDb() *FacatroyDb
func (*FacatroyDb) BuildGoFields ¶
func (this *FacatroyDb) BuildGoFields(tbl *dto2.MetaTableDto)
func (*FacatroyDb) CacheKey ¶
func (this *FacatroyDb) CacheKey(tablename string) string
func (*FacatroyDb) FindFactryDto ¶
func (this *FacatroyDb) FindFactryDto() *dto2.FacatroyDto
func (*FacatroyDb) FindGoType ¶
func (this *FacatroyDb) FindGoType(fieldType string) string
func (*FacatroyDb) FindMetaCtx ¶
func (this *FacatroyDb) FindMetaCtx() iface.ImetaCtx
func (*FacatroyDb) FindProtoType ¶
func (this *FacatroyDb) FindProtoType(fieldType string) string
func (*FacatroyDb) GetDbFunc ¶
func (this *FacatroyDb) GetDbFunc() *gorm.DB
func (*FacatroyDb) IfCockdb ¶
func (this *FacatroyDb) IfCockdb() bool
func (*FacatroyDb) IfMedusa ¶
func (this *FacatroyDb) IfMedusa() bool
func (*FacatroyDb) IfMysql ¶
func (this *FacatroyDb) IfMysql() bool
func (*FacatroyDb) IfPostgres ¶
func (this *FacatroyDb) IfPostgres() bool
func (*FacatroyDb) ImetaCtx ¶
func (this *FacatroyDb) ImetaCtx() iface.ImetaCtx
func (*FacatroyDb) Init ¶
func (this *FacatroyDb) Init(tablename string, dto *baseconfig.DbClientDto) *FacatroyDb
func (*FacatroyDb) IsMysql ¶
func (this *FacatroyDb) IsMysql() bool
func (*FacatroyDb) Parse2EsIndex ¶
func (this *FacatroyDb) Parse2EsIndex(tbl *dto2.MetaTableDto)
func (*FacatroyDb) SetDbClientDto ¶
func (this *FacatroyDb) SetDbClientDto(dto *baseconfig.DbClientDto)
func (*FacatroyDb) SetImetaCtx ¶
func (this *FacatroyDb) SetImetaCtx(imetaCtx iface.ImetaCtx)
func (*FacatroyDb) SetTableName ¶
func (this *FacatroyDb) SetTableName(tablename string)
type MetaColService ¶
type MetaColService struct { basedto.BaseEntity *baseconfig.DbClientDto `json:"-"` *dto.MetaColDto }
@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 DefaultMetaCol ¶
func DefaultMetaCol() *MetaColService
func MakeColService ¶
func MakeColService(dto *dto.MetaColDto, clidto *baseconfig.DbClientDto) *MetaColService
func NewColService ¶
func NewColService(dto *dto.MetaColDto, dbclientdto *baseconfig.DbClientDto) *MetaColService
func (*MetaColService) FindColEsType ¶
func (this *MetaColService) FindColEsType() (goType string)
func (*MetaColService) FindGoType ¶
func (this *MetaColService) FindGoType(datatype string) (goType string)
func (*MetaColService) IfBitField ¶
func (this *MetaColService) IfBitField() bool
func (*MetaColService) IfBool ¶
func (this *MetaColService) IfBool() bool
func (*MetaColService) IfDate ¶
func (this *MetaColService) IfDate() bool
func (*MetaColService) IfDateTime ¶
func (this *MetaColService) IfDateTime() bool
func (*MetaColService) IfInt ¶
func (this *MetaColService) IfInt() bool
func (*MetaColService) IfInt64 ¶
func (this *MetaColService) IfInt64() bool
func (*MetaColService) IfLocalDate ¶
func (this *MetaColService) IfLocalDate() bool
func (*MetaColService) IfLocalDateInt ¶
func (this *MetaColService) IfLocalDateInt() bool
func (*MetaColService) IfLocalTime ¶
func (this *MetaColService) IfLocalTime() bool
func (*MetaColService) IfLocalTimeInt ¶
func (this *MetaColService) IfLocalTimeInt() bool
func (*MetaColService) IfLocalTimeUTCInt ¶
func (this *MetaColService) IfLocalTimeUTCInt() bool
func (*MetaColService) IfNumeric ¶
func (this *MetaColService) IfNumeric() bool
func (*MetaColService) IfString ¶
func (this *MetaColService) IfString() bool
func (*MetaColService) IfTime ¶
func (this *MetaColService) IfTime() bool
func (*MetaColService) ReturnValue ¶
func (this *MetaColService) ReturnValue() (ReturnValue string)
type MetaTableService ¶
type MetaTableService struct { basedto.BaseEntity *dto2.MetaTableDto *baseconfig.DbClientDto }
@Title 文件名称: meta_table_service.go @Description 描述: 元数据--表信息
@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)
func FindBeanMetaTableService ¶
func FindBeanMetaTableService() *MetaTableService
FindBeanMetaTableService
func NewMetaTableService ¶
func NewMetaTableService() *MetaTableService
func (*MetaTableService) BuildGoFields ¶
func (this *MetaTableService) BuildGoFields()
func (*MetaTableService) Parse2EsIndex ¶
func (this *MetaTableService) Parse2EsIndex()
func (*MetaTableService) ToMapping ¶
func (this *MetaTableService) ToMapping() map[string]any
func (*MetaTableService) ToMappingProp ¶
func (this *MetaTableService) ToMappingProp() string
func (*MetaTableService) ToString ¶
func (this *MetaTableService) ToString() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.