mysql_client

package
v0.0.0-...-d9af017 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMysqlClient

func GetMysqlClient(dbName string) (client *sqlx.DB)

func GetMysqlClientManager

func GetMysqlClientManager() map[string]*sqlx.DB

func InstallMysqlClientManager

func InstallMysqlClientManager(configs []MySQLConfig)

func NewSqlxDB

func NewSqlxDB(c *MySQLConfig) (db *sqlx.DB)

Types

type MySQLConfig

type MySQLConfig struct {
	Name   string // for trace
	DSN    string // data source name
	Active int    // pool
	Idle   int    // pool
}

type MysqlClientManager

type MysqlClientManager struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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