mysql_client

package
v0.0.0-...-e41513e Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 6

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() sync.Map

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