mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
refactor: expose additional kysely postgres options
This commit is contained in:
@@ -28,7 +28,7 @@ async function cleanDatabase(connection: InstanceType<typeof PostgresConnection>
|
||||
async function isPostgresRunning() {
|
||||
try {
|
||||
// Try to actually connect to PostgreSQL
|
||||
const conn = pg(new Pool(credentials));
|
||||
const conn = pg({ pool: new Pool(credentials) });
|
||||
await conn.ping();
|
||||
await conn.close();
|
||||
return true;
|
||||
@@ -58,8 +58,8 @@ describe("postgres", () => {
|
||||
});
|
||||
|
||||
describe.serial.each([
|
||||
["pg", () => pg(new Pool(credentials))],
|
||||
["postgresjs", () => postgresJs(postgres(credentials))],
|
||||
["pg", () => pg({ pool: new Pool(credentials) })],
|
||||
["postgresjs", () => postgresJs({ postgres: postgres(credentials) })],
|
||||
])("%s", (name, createConnection) => {
|
||||
connectionTestSuite(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user