# 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).
No description provided by the author
No description provided by the author
No description provided by the author
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.