Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseDbProvider ¶
type BaseDbProvider struct { Default *sqlx.DB // 缺省的数据库连接 Main *sqlx.DB // 主数据库连接,可读写 Slaves []*sqlx.DB // 只读从数据库列表,只可读 Items map[string]*sqlx.DB // 额外数据库 }
func (*BaseDbProvider) Master ¶
func (c *BaseDbProvider) Master() *sqlx.DB
func (*BaseDbProvider) My ¶
func (c *BaseDbProvider) My() *sqlx.DB
Directories ¶
Path | Synopsis |
---|---|
Package mysql @Title log capability of zerolog @Description zerolog implementation of log capability @Author Ryan Fan 2021-06-09 @Update Ryan Fan 2021-06-09
|
Package mysql @Title log capability of zerolog @Description zerolog implementation of log capability @Author Ryan Fan 2021-06-09 @Update Ryan Fan 2021-06-09 |
Click to show internal directories.
Click to hide internal directories.