# Functions
CreateTestMySQLDB returns a TestMySQLDB which can be used in tests as a clean mysql database.
CreateTestSqliteDB returns a TestSQLiteDB which can be used in tests as a clean sqlite database.
MySQLUniqueViolation returns true when the provided error matches the MySQL code for duplicate entries (violating a unique table constraint).
New establishes a database connection according to the type and environmental variables for that specific database.
SqliteUniqueViolation returns true when the provided error matches the SQLite error for duplicate entries (violating a unique table constraint).
UniqueViolation returns true when the provided error matches a database error for duplicate entries (violating a unique table constraint).
# Structs
TestMySQLDB is a wrapper around sql.DB for MySQL connections designed for tests to provide a clean database for each testcase.
TestSQLiteDB is a wrapper around sql.DB for SQLite connections designed for tests to provide a clean database for each testcase.