(t *testing.T, migrations []string)
| 29 | } |
| 30 | |
| 31 | func PostgreSQL(t *testing.T, migrations []string) (*sql.DB, func()) { |
| 32 | t.Helper() |
| 33 | |
| 34 | // For each test, pick a new schema name at random. |
| 35 | schema := "sqltest_postgresql_" + id() |
| 36 | return CreatePostgreSQLDatabase(t, schema, true, migrations) |
| 37 | } |
| 38 | |
| 39 | func CreatePostgreSQLDatabase(t *testing.T, name string, schema bool, migrations []string) (*sql.DB, func()) { |
| 40 | t.Helper() |
nothing calls this directly
no test coverage detected