tests

package
v2.0.0-beta2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestMySQLDSN

func GetTestMySQLDSN(tb testing.TB) string

GetTestMySQLDSN returns DNS for MySQL test database.

func OpenTestMySQL

func OpenTestMySQL(tb testing.TB) *sql.DB

OpenTestMySQL opens connection to MySQL test database.

Types

type MySQLVendor

type MySQLVendor string

MySQLVendor represents MySQL vendor (Oracle, Percona).

const (
	OracleMySQL  MySQLVendor = "oracle"
	PerconaMySQL MySQLVendor = "percona"
	MariaDBMySQL MySQLVendor = "mariadb"
)

MySQL vendors.

func MySQLVersion

func MySQLVersion(tb testing.TB, db *sql.DB) (string, MySQLVendor)

MySQLVersion returns MAJOR.MINOR MySQL version (e.g. "5.6", "8.0", etc.) and vendor.

Jump to

Keyboard shortcuts

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