Documentation
¶
Overview ¶
Package sqlstub contains stub implementations of sql/driver interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { driver.Connector ConnectFunc func(context.Context) (driver.Conn, error) DriverFunc func() driver.Driver }
Connector is a test implementation of the driver.Connector interface.
type Driver ¶
Driver is a test implementation of the driver.Driver interface.
func RegisterDriver ¶
RegisterDriver creates a Driver stub and registers it with the sql package.
It returns the driver name that can be used with sql.Open() and the Driver stub itself.
Click to show internal directories.
Click to hide internal directories.