Bun
#221
Replies: 1 comment 1 reply
-
@kneth mentioned today:
import { SQL } from "bun";
const db = new SQL({
url: "postgres://crate@localhost:5432/doc",
tls: false,
onconnect: client => {
console.log("Connected to database");
},
onclose: client => {
console.log("Connection closed");
},
});
const rows = await db`SELECT version();`;
console.log(rows); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
About
Resources
Beta Was this translation helpful? Give feedback.
All reactions