Documentation
¶
Overview ¶
Package psqltest is a similar package to net/http/http test This package provides utilities for testing psql services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransactionDB ¶
NewTransactionDB returns a new transaction DB connection.
func NewTransactionTestingDB ¶
NewTransactionTestingDB returns a new transaction DB connection. It acts as a test helper and also takes care of closing the DB connection.
func Register ¶
func Register(dsn string)
Register is a wrapper over txdb.Register. Used to register the txdb txDBDriver.
func RegisterWithPSQLDriver ¶ added in v1.2.0
func RegisterWithPSQLDriver(dsn, psqlDriver string)
RegisterWithPSQLDriver is a wrapper over txdb.Register.q Used to register the txdb driver with a custom psql driver.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.