Documentation
¶
Overview ¶
Package drivertest contains a common test suite for all SQL drivers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DSN ¶ added in v0.3.2
DSN returns the DSN for the test database to use with the given database product and SQL driver.
The returned function must be used to cleanup any data created for the DSN, such as temporary on-disk databases.
Types ¶
type MockConnector ¶ added in v0.3.0
MockConnector is mock of the driver.Connector interface.
func (*MockConnector) Driver ¶ added in v0.3.0
func (*MockConnector) Driver() driver.Driver
Driver returns the connector's driver.
type MockDriver ¶ added in v0.3.0
MockDriver is mock of the driver.Driver interface.
type Product ¶ added in v0.5.1
type Product string
Product is an enumeration of supported database products.
const ( // MySQL is the product enumeration value for MariaDB. MySQL Product = "mysql" // MariaDB is the product enumeration value for MariaDB. MariaDB Product = "mariadb" // PostgreSQL is the product enumeration value for PostgreSQL. PostgreSQL Product = "postgresql" // SQLite is the product enumeration value for SQLite. SQLite Product = "sqlite" )
Click to show internal directories.
Click to hide internal directories.