db

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbConnectPool

type DbConnectPool interface {
	Init(len int, dbConfig map[string]string) error // 连接池初始化,len:链接缓存个数
	Push(*gorm.DB) error                            // 往连接池中添加连接
	Pop() (*gorm.DB, error)                         // 获取链接
}

* 数据库连接池

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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