Documentation ¶
Index ¶
- func GetDB() (*gorm.DB, error)
- func Ini() (*gorm.DB, error)
- func LoadIchubDbClient() baseiface.ISingleton
- type FuncGetDb
- type IchubDbClient
- func (this *IchubDbClient) DbDebug() *gorm.DB
- func (this *IchubDbClient) GetDb() *gorm.DB
- func (this *IchubDbClient) IniDb() error
- func (this *IchubDbClient) InitDbMysql(conn string) (*gorm.DB, error)
- func (this *IchubDbClient) InitDbPostgres(conn string) (db *gorm.DB, err error)
- func (this *IchubDbClient) Log() (dburl string)
- func (this *IchubDbClient) MakeDbUrl() (dburl string)
- func (this *IchubDbClient) MakeDbUrlCockRoach() string
- func (this *IchubDbClient) MakeDbUrlMysql() string
- func (this *IchubDbClient) MakeDbUrlPostgres() string
- func (this *IchubDbClient) MakeDbUrlSsl() (dburl string)
- func (this *IchubDbClient) ValueOf(dto *baseconfig.DbClientDto)
- func (this *IchubDbClient) Valueof(ds *baseconfig.DbClientDto)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadIchubDbClient ¶ added in v1.0.61
func LoadIchubDbClient() baseiface.ISingleton
Types ¶
type IchubDbClient ¶
type IchubDbClient struct { basedto.BaseEntity Db *gorm.DB `json:"-"` *baseconfig.DbClientDto }
func DbCli ¶ added in v1.4.102
func DbCli() *IchubDbClient
func Default ¶ added in v1.4.102
func Default() *IchubDbClient
func FindBeanIchubDbClient ¶ added in v1.0.61
func FindBeanIchubDbClient() *IchubDbClient
func FindDbClient ¶ added in v1.4.102
func FindDbClient(dto *baseconfig.DbClientDto) *IchubDbClient
@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() *IchubDbClient
func (*IchubDbClient) DbDebug ¶
func (this *IchubDbClient) DbDebug() *gorm.DB
func (*IchubDbClient) GetDb ¶
func (this *IchubDbClient) GetDb() *gorm.DB
func (*IchubDbClient) IniDb ¶
func (this *IchubDbClient) IniDb() error
func (*IchubDbClient) InitDbMysql ¶
func (this *IchubDbClient) InitDbMysql(conn string) (*gorm.DB, error)
func (*IchubDbClient) InitDbPostgres ¶
func (this *IchubDbClient) InitDbPostgres(conn string) (db *gorm.DB, err error)
func (*IchubDbClient) Log ¶
func (this *IchubDbClient) Log() (dburl string)
func (*IchubDbClient) MakeDbUrl ¶
func (this *IchubDbClient) MakeDbUrl() (dburl string)
DbUrl:"host=192.168.13.235 port=26257 user=code password=123456 dbname=" + configdto.ModuleDefineInst.Dbname + " sslmode=require",
func (*IchubDbClient) MakeDbUrlCockRoach ¶
func (this *IchubDbClient) MakeDbUrlCockRoach() string
func (*IchubDbClient) MakeDbUrlMysql ¶
func (this *IchubDbClient) MakeDbUrlMysql() string
func (*IchubDbClient) MakeDbUrlPostgres ¶
func (this *IchubDbClient) MakeDbUrlPostgres() string
func (*IchubDbClient) MakeDbUrlSsl ¶
func (this *IchubDbClient) MakeDbUrlSsl() (dburl string)
func (*IchubDbClient) ValueOf ¶
func (this *IchubDbClient) ValueOf(dto *baseconfig.DbClientDto)
func (*IchubDbClient) Valueof ¶
func (this *IchubDbClient) Valueof(ds *baseconfig.DbClientDto)
Click to show internal directories.
Click to hide internal directories.