We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 523534b commit 9b10841Copy full SHA for 9b10841
frameworks/TypeScript/elysia/src/postgres.ts
@@ -1,12 +1,9 @@
1
-import postgres from "postgres";
+import { SQL } from "bun";
2
import { rand } from "./db-handlers";
3
import type { Fortune, World } from "./types";
4
5
-const sql = postgres({
6
- host: "tfb-database",
7
- user: "benchmarkdbuser",
8
- password: "benchmarkdbpass",
9
- database: "hello_world",
+const sql = new SQL({
+ url: "postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world",
10
max: 1,
11
});
12
0 commit comments