mysql

package
v0.0.0-...-df00f50 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlConnectPool

type MysqlConnectPool struct {
	db.DbConnectPool

	sync.RWMutex
	// contains filtered or unexported fields
}

func NewConnectPool

func NewConnectPool(len int, dbConfig map[string]string) *MysqlConnectPool

* 生成连接池

func (*MysqlConnectPool) Init

func (pool *MysqlConnectPool) Init(len int, dbConfig map[string]string) error

func (*MysqlConnectPool) Pop

func (pool *MysqlConnectPool) Pop() (*gorm.DB, error)

func (*MysqlConnectPool) Push

func (pool *MysqlConnectPool) Push(db *gorm.DB) error

Jump to

Keyboard shortcuts

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