Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMysqlDb ¶
Types ¶
type MysqlConnectPool ¶
type MysqlConnectPool struct { }
* MysqlConnectiPool * 数据库连接操作库 * 基于gorm封装开发
func GetMysqlInstance ¶
func GetMysqlInstance() *MysqlConnectPool
func (*MysqlConnectPool) GetMysqlPool ¶
func (m *MysqlConnectPool) GetMysqlPool() *gorm.DB
* @fuc 对外获取数据库连接对象db
func (*MysqlConnectPool) InitMysqlPool ¶
func (m *MysqlConnectPool) InitMysqlPool() (issucc bool)
* @fuc 初始化数据库连接(可在mail()适当位置调用)
Click to show internal directories.
Click to hide internal directories.