mysqlpool

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 7 Imported by: 0

README

go-mysql-pool

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("mysqlpool: pool is closed")

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// MySQLConfig is the configuration for the MySQL connection.
	MySQLConfig *mysql.Config

	// DDL is Data Definition.
	DDL string
	// contains filtered or unexported fields
}

func (*Pool) Close

func (p *Pool) Close() error

func (*Pool) Get

func (p *Pool) Get(ctx context.Context) (*sql.DB, error)

func (*Pool) Put

func (p *Pool) Put(db *sql.DB)

Jump to

Keyboard shortcuts

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