Documentation ¶
Index ¶
- func ConnectToTestCockroachDB() (*sqlx.DB, error)
- func ConnectToTestCockroachDBPop(t testing.TB) *pop.Connection
- func ConnectToTestMySQL() (*sqlx.DB, error)
- func ConnectToTestMySQLPop(t testing.TB) *pop.Connection
- func ConnectToTestPostgreSQL() (*sqlx.DB, error)
- func ConnectToTestPostgreSQLPop(t testing.TB) *pop.Connection
- func DumpSchema(ctx context.Context, t *testing.T, db string) string
- func KillAllTestDatabases()
- func Parallel(fs []func())
- func RunCockroachDB() (string, error)
- func RunMySQL() (string, error)
- func RunPostgreSQL() (string, error)
- func RunTestCockroachDB(t testing.TB) string
- func RunTestMySQL(t testing.TB) string
- func RunTestPostgreSQL(t testing.TB) string
- func StripDump(d string) string
- type OnExit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToTestCockroachDB ¶ added in v0.0.57
ConnectToTestCockroachDB connects to a CockroachDB database.
func ConnectToTestCockroachDBPop ¶ added in v0.0.113
func ConnectToTestMySQL ¶
ConnectToTestMySQL connects to a MySQL database.
func ConnectToTestMySQLPop ¶ added in v0.0.113
func ConnectToTestPostgreSQL ¶
ConnectToTestPostgreSQL connects to a PostgreSQL database.
func ConnectToTestPostgreSQLPop ¶ added in v0.0.113
func DumpSchema ¶ added in v0.0.179
func KillAllTestDatabases ¶
func KillAllTestDatabases()
KillAllTestDatabases deletes all test databases.
func RunCockroachDB ¶ added in v0.0.131
RunCockroachDB runs a CockroachDB database and returns the URL to it.
func RunPostgreSQL ¶ added in v0.0.131
RunPostgreSQL runs a PostgreSQL database and returns the URL to it.
func RunTestCockroachDB ¶ added in v0.0.84
RunTestCockroachDB runs a CockroachDB database and returns the URL to it.
func RunTestMySQL ¶ added in v0.0.84
RunTestMySQL runs a MySQL database and returns the URL to it.
func RunTestPostgreSQL ¶ added in v0.0.84
RunTestPostgreSQL runs a PostgreSQL database and returns the URL to it.
Types ¶
Click to show internal directories.
Click to hide internal directories.