mysqlconn

package module
v0.0.0-...-77cc40d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Driver = "mysql"
)

Variables

This section is empty.

Functions

func MustNew

func MustNew(ctx context.Context, config *sqldb.Config) sqldb.Connection

MustNew creates a new sqldb.Connection using the passed sqldb.Config and github.com/go-sql-driver/mysql as driver implementation. The connection is pinged with the passed context, and only returned when there was no error from the ping. Errors are paniced.

func New

func New(ctx context.Context, config *sqldb.Config) (sqldb.Connection, error)

New creates a new sqldb.Connection using the passed sqldb.Config and github.com/go-sql-driver/mysql as driver implementation. The connection is pinged with the passed context, and only returned when there was no error from the ping.

Types

type Config

type Config = mysql.Config

func NewConfig

func NewConfig() *Config

NewConfig creates a new Config and sets default values.

Jump to

Keyboard shortcuts

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