(ctx context.Context, db *pgx.Conn, name string)
| 130 | } |
| 131 | |
| 132 | func createDatabase(ctx context.Context, db *pgx.Conn, name string) error { |
| 133 | _, err := db.Exec(ctx, `CREATE DATABASE `+sanitizeDatabaseName(name)+`;`) |
| 134 | return err |
| 135 | } |
| 136 | |
| 137 | func dropDatabase(ctx context.Context, db *pgx.Conn, name string) error { |
| 138 | _, err := db.Exec(ctx, `DROP DATABASE `+sanitizeDatabaseName(name)+`;`) |
no test coverage detected