open

package
v0.0.0-...-e46c3b8 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(conn DB) (*sql.DB, error)

Open opens a MySQL database.

func Ping

func Ping(ctx context.Context, db *sql.DB) error

Ping pings the given db.

Types

type DB

type DB struct {
	User string
	Pass string
	Name string
}

DB represents information for the database to be opened.

Jump to

Keyboard shortcuts

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