mysql

package
v0.0.0-...-7c5fa43 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDBInContext      = errors.New("mysql: no db in context")
	ErrNoDBAndTxInContext = errors.New("mysql: no db and tx in context")
)

Functions

func Conn

func Conn(ctx context.Context) (*sql.Conn, error)

func ConnOrTx

func ConnOrTx(ctx context.Context) (*sql.Conn, *sql.Tx, error)

func New

func New(options ...func(*mysql)) *sql.DB

func WithDB

func WithDB(db string) func(*mysql)

func WithHost

func WithHost(host string) func(*mysql)

func WithPassword

func WithPassword(password string) func(*mysql)

func WithPort

func WithPort(port string) func(*mysql)

func WithUser

func WithUser(user string) func(*mysql)

Types

This section is empty.

Jump to

Keyboard shortcuts

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