mysql

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DB is the connection handle
	DB *sql.DB
)

Functions

func Delete

func Delete(query string, args ...interface{}) (int64, error)

Delete request

func Insert

func Insert(query string, args ...interface{}) (int64, error)

Insert request

func Open

func Open(user, password, host, port, name, timezone, charset string, maxOpenConns, maxIdleConns int, maxLifetime time.Duration) error

Open opens database connection

func Select

func Select(query string, args ...interface{}) (*sql.Rows, error)

Select request

func Update

func Update(query string, args ...interface{}) (int64, error)

Update request

Types

This section is empty.

Jump to

Keyboard shortcuts

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