mysql

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(param ConnectParam) (*sql.DB, error)

Connect connects to MySQL database.

func ConnectMock added in v1.3.1

func ConnectMock() (*sql.DB, sqlmock.Sqlmock, error)

ConnectMock mocks the MySQL database connection.

Types

type ConnectParam added in v1.2.0

type ConnectParam struct {
	Host   string
	Port   string
	User   string
	Pass   string
	DBName string
	Option string
}

Jump to

Keyboard shortcuts

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