Documentation
¶
Index ¶
- func GetDB() (*gorm.DB, error)
- func Ini() (*gorm.DB, error)
- func LoadIchubDbClient() baseiface.ISingleton
- type DbClient
- func (this *DbClient) DbDebug() *gorm.DB
- func (this *DbClient) GetDb() *gorm.DB
- func (this *DbClient) IfMysql() bool
- func (this *DbClient) IniDb() error
- func (this *DbClient) InitDbMysql(conn string) (*gorm.DB, error)
- func (this *DbClient) InitDbPostgres(conn string) (db *gorm.DB, err error)
- func (this *DbClient) Log() (dburl string)
- func (this *DbClient) MakeDbUrl() (dburl string)
- func (this *DbClient) MakeDbUrlCockRoach() string
- func (this *DbClient) MakeDbUrlMysql() string
- func (this *DbClient) MakeDbUrlPostgres() string
- func (this *DbClient) MakeDbUrlSsl() (dburl string)
- func (this *DbClient) ValueOf(dto *baseconfig.DbClientDto)
- func (this *DbClient) Valueof(ds *baseconfig.DbClientDto)
- type FuncGetDb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadIchubDbClient ¶
func LoadIchubDbClient() baseiface.ISingleton
Types ¶
type DbClient ¶
type DbClient struct {
basedto.BaseEntity
Db *gorm.DB `json:"-"`
*baseconfig.DbClientDto
}
func FindBeanDbClient ¶
func FindBeanDbClient() *DbClient
func FindDbClient ¶
func FindDbClient(dto *baseconfig.DbClientDto) *DbClient
@Title 文件名称: ichubclient.go @Description 描述: 代码工厂数据库配置信息 @Author 作者: leijianming@163.com 时间(2024-03-13 22:38:21) @Update 作者: leijianming@163.com 时间(2024-03-13 22:38:21)
func NewIchubDbClient ¶
func NewIchubDbClient() *DbClient
func (*DbClient) InitDbPostgres ¶
func (*DbClient) MakeDbUrl ¶
DbUrl:"host=192.168.13.235 port=26257 user=code password=123456 dbname=" + configdto.ModuleDefineInst.Dbname + " sslmode=require",
func (*DbClient) MakeDbUrlCockRoach ¶
func (*DbClient) MakeDbUrlMysql ¶
func (*DbClient) MakeDbUrlPostgres ¶
func (*DbClient) MakeDbUrlSsl ¶
func (*DbClient) ValueOf ¶
func (this *DbClient) ValueOf(dto *baseconfig.DbClientDto)
func (*DbClient) Valueof ¶
func (this *DbClient) Valueof(ds *baseconfig.DbClientDto)
Click to show internal directories.
Click to hide internal directories.