Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatabaseURL ¶
func DatabaseURL() string
DatabaseURL returns the test database connection string.
func EnsureDatabase ¶
EnsureDatabase creates databaseURL's database if it does not exist.
func InitSchema ¶
func InitSchema() error
InitSchema drops all tables and applies schema.sql. Refuses the local/dev database name so `go test` cannot wipe it.
func PackageDatabaseURL ¶
PackageDatabaseURL returns a DATABASE_URL with an isolated database name for the given package suffix (e.g. partspile -> partspile_backup).
Types ¶
This section is empty.