Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupDB ¶
func SetupDB(tb testing.TB, db *sql.DB, setupFixtures models.SetupFixturesMode, migrationVersion *int)
SetupDB runs PostgreSQL database migrations and optionally adds initial data for testing DB. Please use Open method to recreate DB for each test if you don't need to control migrations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.