refactor: expose additional kysely postgres options

This commit is contained in:
dswbx
2025-11-05 10:47:47 +01:00
parent a333d537b0
commit 40bbdb904f
4 changed files with 28 additions and 21 deletions

View File

@@ -222,9 +222,11 @@ import { pg } from "bknd";
import { Pool } from "pg";
serve({
connection: pg(new Pool({
connectionString: "postgresql://user:password@localhost:5432/database",
})),
connection: pg({
pool: new Pool({
connectionString: "postgresql://user:password@localhost:5432/database",
}),
}),
});
```
@@ -238,7 +240,9 @@ import { postgresJs } from "bknd";
import postgres from 'postgres'
serve({
connection: postgresJs(postgres("postgresql://user:password@localhost:5432/database")),
connection: postgresJs({
postgres: postgres("postgresql://user:password@localhost:5432/database"),
}),
});
```