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 RunTestMySQLWithVersion(t testing.TB, version string) string
- func RunTestPostgreSQL(t testing.TB) string
- func RunTestPostgreSQLWithVersion(t testing.TB, version string) string
- func StripDump(d string) string
- type OnExit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectPop ¶
func ConnectPop(t require.TestingT, url string) (c *pop.Connection)
func ConnectToTestCockroachDB ¶
ConnectToTestCockroachDB connects to a CockroachDB database.
func ConnectToTestCockroachDBPop ¶
func ConnectToTestCockroachDBPop(t testing.TB) *pop.Connection
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 ¶
func ConnectToTestMySQLPop(t testing.TB) *pop.Connection
func ConnectToTestPostgreSQL ¶
ConnectToTestPostgreSQL connects to a PostgreSQL database.
func ConnectToTestPostgreSQLPop ¶
func ConnectToTestPostgreSQLPop(t testing.TB) *pop.Connection
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 KillAllTestDatabases ¶
func KillAllTestDatabases()
KillAllTestDatabases deletes all test databases.
func NewLocalTestCRDBServer ¶
func RunCockroachDB ¶
RunCockroachDB runs a CockroachDB database and returns the URL to it.
func RunCockroachDBWithVersion ¶
RunCockroachDBWithVersion runs a CockroachDB database with the specified version and returns the URL to it.
func RunPostgreSQL ¶
RunPostgreSQL runs a PostgreSQL database and returns the URL to it.
func RunTestCockroachDB ¶
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 ¶
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 ¶
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 RunTestMySQLWithVersion ¶
RunTestMySQLWithVersion runs a MySQL database in the specified version 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 ¶
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.
func RunTestPostgreSQLWithVersion ¶
RunTestPostgreSQLWithVersion connects to a PostgreSQL database .