mysql

package
v0.0.0-...-71ba769 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DSN     string
	MinOpen int = 5
	MaxOpen int = 10
	DB      *sql.DB
)
View Source
var DefaultTimeout = 10 * time.Second

Functions

func Build

func Build()

Build build mysql

func Close

func Close() error

Close close mysql

Types

type Exec

type Exec interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

Exec exec mysql

Jump to

Keyboard shortcuts

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