pool

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetGlobalConnectionPool

func SetGlobalConnectionPool(pool *ConnectionPool)

Types

type ConnectionPool

type ConnectionPool struct {
	sqlx.DB

	Type dbtype.Type
}

func ConnectionPoolFromDb added in v0.2.0

func ConnectionPoolFromDb(db *sql.DB, dbType dbtype.Type) *ConnectionPool

func ConnectionPoolFromDbx added in v0.2.0

func ConnectionPoolFromDbx(db *sqlx.DB) *ConnectionPool

func GlobalConnectionPool

func GlobalConnectionPool() (*ConnectionPool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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