Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGormLogger ¶
Types ¶
type ClientManager ¶
type ClientManager interface {
GetClient(string) *gorm.DB
GetGormClient(string) *gorm.DB
GetSqlxClient(string) *mssqlx.DBs
}
func NewClientManager ¶
func NewClientManager(configs []Config, opts ...Option) (ClientManager, error)
type GormClient ¶
type GormClient struct {
// contains filtered or unexported fields
}
func (*GormClient) DB ¶
func (c *GormClient) DB() *gorm.DB
type MssqlxClient ¶
type MssqlxClient struct {
// contains filtered or unexported fields
}
func (*MssqlxClient) DB ¶
func (c *MssqlxClient) DB() *mssqlx.DBs
Click to show internal directories.
Click to hide internal directories.