Documentation ¶
Index ¶
- func ConnectPop(t require.TestingT, url string) (c *pop.Connection)
- 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 NewLocalTestCRDBServer(t testing.TB) string
- func Parallel(fs []func())
- func RunCockroachDB() (string, error)
- func RunCockroachDBWithVersion(version string) (string, error)
- func RunMySQL() (string, error)
- func RunPostgreSQL() (string, error)
- func RunTestCockroachDB(t testing.TB) string
- func RunTestCockroachDBWithVersion(t testing.TB, version string) 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 ConnectPop ¶ added in v0.0.401
func ConnectToTestCockroachDB ¶ added in v0.0.57
ConnectToTestCockroachDB connects to a CockroachDB database.
func ConnectToTestCockroachDBPop ¶ added in v0.0.113
ConnectToTestCockroachDBPop connects to a test CockroachDB database. If a docker container is started for the database, the container be removed at the end of the test.
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
ConnectToTestPostgreSQLPop connects to a test PostgreSQL database. If a docker container is started for the database, the container be removed at the end of the test.
func DumpSchema ¶ added in v0.0.179
func KillAllTestDatabases ¶
func KillAllTestDatabases()
KillAllTestDatabases deletes all test databases.
func NewLocalTestCRDBServer ¶ added in v0.0.351
func RunCockroachDB ¶ added in v0.0.131
RunCockroachDB runs a CockroachDB database and returns the URL to it.
func RunCockroachDBWithVersion ¶ added in v0.0.187
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. If a docker container is started for the database, the container be removed at the end of the test.
func RunTestCockroachDBWithVersion ¶ added in v0.0.187
RunTestCockroachDB runs a CockroachDB database and returns the URL to it. If a docker container is started for the database, the container be removed at the end of the test.
func RunTestMySQL ¶ added in v0.0.84
RunTestMySQL runs a MySQL database and returns the URL to it. If a docker container is started for the database, the container be removed at the end of the test.
func RunTestPostgreSQL ¶ added in v0.0.84
RunTestPostgreSQL runs a PostgreSQL database and returns the URL to it. If a docker container is started for the database, the container be removed at the end of the test.