func ConnectToTestCockroachDB() (*sqlx.DB, error)
ConnectToTestCockroachDB connects to a CockroachDB database.
func ConnectToTestCockroachDBPop(t testing.TB) *pop.Connection
func ConnectToTestMySQL() (*sqlx.DB, error)
ConnectToTestMySQL connects to a MySQL database.
func ConnectToTestMySQLPop(t testing.TB) *pop.Connection
func ConnectToTestPostgreSQL() (*sqlx.DB, error)
ConnectToTestPostgreSQL connects to a PostgreSQL database.
func ConnectToTestPostgreSQLPop(t testing.TB) *pop.Connection
func DumpSchema(ctx context.Context, t *testing.T, db string) string
func KillAllTestDatabases()
KillAllTestDatabases deletes all test databases.
func Parallel(fs []func())
Parallel runs tasks in parallel.
func RunCockroachDB() (string, error)
RunCockroachDB runs a CockroachDB database and returns the URL to it.
func RunCockroachDBWithVersion(version string) (string, error)
RunCockroachDB runs a CockroachDB database and returns the URL to it.
func RunMySQL() (string, error)
RunMySQL runs a RunMySQL database and returns the URL to it.
func RunPostgreSQL() (string, error)
RunPostgreSQL runs a PostgreSQL database and returns the URL to it.
func RunTestCockroachDB(t testing.TB) string
RunTestCockroachDB runs a CockroachDB database and returns the URL to it.
func RunTestCockroachDBWithVersion(t testing.TB, version string) string
RunTestCockroachDB runs a CockroachDB database and returns the URL to it.
func RunTestMySQL(t testing.TB) string
RunTestMySQL runs a MySQL database and returns the URL to it.
func RunTestPostgreSQL(t testing.TB) string
RunTestPostgreSQL runs a PostgreSQL database and returns the URL to it.
func StripDump(d string) string
OnExit helps with cleaning up docker test.
type OnExit struct { sync.Mutex // contains filtered or unexported fields }
func NewOnExit() *OnExit
NewOnExit create a new OnExit instance.
func Register() *OnExit
Register sets up OnExit.
func (at *OnExit) Add(f func())
Add adds a task that is executed on SIGINT, SIGKILL, SIGTERM.
func (at *OnExit) Exit(status int)
Exit wraps os.Exit