factrydb

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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 FindBeanMetaColService

func FindBeanMetaColService() *MetaColService

FindBeanMetaColService

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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