mysql

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMysqlDB

func GetMysqlDB() *gorm.DB

获取mysql连接池

func InitMysqlConnPool

func InitMysqlConnPool() *gorm.DB

初始化mysql连接池

func SetDBConns

func SetDBConns(db *sql.DB)

设置连接池

Types

type MysqlDatabase

type MysqlDatabase struct {
	Mysql *gorm.DB
}
var DB *MysqlDatabase

func (*MysqlDatabase) InitConn

func (db *MysqlDatabase) InitConn()

初始化mysql连接

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL