Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestDatabase ¶
CreateTestDatabase recreates the test database and runs migrations and fixtures as passed in, returning a pointer to the database
func CreateTestDatabasePostgres ¶
func CreateTestDatabasePostgres(dbHost, dbUser, dbName string, migrationFunctions []func(*bun.DB) error, fixtureFiles []string) (*bun.DB, error)
CreateTestDatabasePostgres is similar to CreateTestDatabase but it uses Postgres instead of sqlite, this is needed for testing packages that rely on some Postgres specifuc features (such as table inheritance)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.