pool

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 7 Imported by: 0

README

pool

Database pooler

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	Get() *sql.DB
}

type Pool

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

func New

func New(connectionStr string) *Pool

func (*Pool) Close

func (p *Pool) Close() error

func (*Pool) Get

func (p *Pool) Get() *sql.DB

func (*Pool) Health

func (p *Pool) Health(ctx context.Context) error

func (*Pool) SetDriverName

func (p *Pool) SetDriverName(driverName string)

Jump to

Keyboard shortcuts

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