mysql

package
v0.0.0-...-c5bb8df Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_OPEN_CONNECTIONS = 20
	MAX_IDLE_CONNEXTIONS = 10
	MAX_LIFE             = time.Minute * 3
)

Variables

View Source
var (
	Conn *sql.DB
)

Functions

func NewClient

func NewClient(ctx context.Context, opt Options) *sql.DB

func Stop

func Stop(ctx context.Context)

Types

type Options

type Options struct {
	Host     string
	Port     string
	User     string
	Password string
	Db       string
}

Jump to

Keyboard shortcuts

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