Documentation ¶
Index ¶
- func InitDbMysql(conn string) (*gorm.DB, error)
- func InitDbPostgres(conn string) (dbinst *gorm.DB, err error)
- type FuncGetDb
- type IchubDbClient
- func (this *IchubDbClient) DbDebug() *gorm.DB
- func (this *IchubDbClient) GetDb() *gorm.DB
- func (this *IchubDbClient) IniDb() 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 ¶
Types ¶
type IchubDbClient ¶
type IchubDbClient struct { basedto.BaseEntity Db *gorm.DB `json:"-"` baseconfig.DbClientDto }
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) 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=" + base.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.