package
0.11.0
Repository: https://github.com/joshsziegler/zgo.git
Documentation: pkg.go.dev

# Functions

GetTxOrFailTesting creates and returns a database transaction, or will end the unit test by calling t.Fatal().
MustConnect connects and returns a database connection, or calls os.Exit(1).
SetupBenchmarkDatabase creates and returns an empty database, using the the database name foo_test, where 'foo' is the name in the config.
SetupTestingDatabase creates and returns an empty database, using the the database name foo_test, where 'foo' is the name in the config.

# Constants

ErrDuplicateEntry indicates a 'unique' constraint violation on insert.
ErrNoResults indicates the MySQL query returned no rows.

# Structs

Config holds the database configuration, required for connecting to and using the database.