Documentation ¶
Overview ¶
Package sqltest contains utilities for connecting to SQL test databases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DSN ¶
DSN returns the DSN for the test database to use with the given SQL driver.
The returned function must be used to cleanup any data created for the DSN, such as temporary on-disk databases.
func MockDriverName ¶
func MockDriverName() string
MockDriverName returns the mock driver name for use with sql.Open().
Types ¶
type MockConnector ¶
MockConnector is mock of the driver.Connector interface.
func (*MockConnector) Driver ¶
func (*MockConnector) Driver() driver.Driver
Driver returns the connector's driver.
type MockDriver ¶
MockDriver is mock of the driver.Driver interface.
Click to show internal directories.
Click to hide internal directories.