Documentation
¶
Overview ¶
Package datastoretest provides testing helper functions for the datastore package. I am intentionally repeating functions that are in datastore here as I want different versions as helpers with less logging
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDB ¶ added in v0.23.0
NewDB provides a sql.DB and cleanup function for testing. The following environment variables must be set to connect to the DB.
DB Host = DB_HOST Port = DB_PORT DB Name = DB_NAME DB User = DB_USER DB Password = DB_PASSWORD
func NewDefaultDatastore ¶ added in v0.25.0
NewDefaultDatastore provides a datastore.DefaultDatastore struct initialized with a sql.DB and cleanup function for testing. The following environment variables must be set to connect to the DB.
DB Host = DB_HOST Port = DB_PORT DB Name = DB_NAME DB User = DB_USER DB Password = DB_PASSWORD
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.