mysql

package
Version: v0.0.0-...-2f48102 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Image to use for the box.
	Image = "mysql:latest"
	// Port used for connect to MySQL.
	Port = "3306"

	// MySQLUpWaitTime dictates how long we should wait for post MySQL to accept connections on {{Port}}.
	MySQLUpWaitTime = 15 * time.Second
)

Functions

func Box

func Box(t testing.TB, config *Config) (*sql.DB, conex.Container)

Box returns a MySQL client.

Types

type Config

type Config struct {
	User     string // leave blank for root, otherwise provide a password
	Password string // can be blank for root user
	Database string // defaults to `test`
	// contains filtered or unexported fields
}

Config used to connect to the database.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL