aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/postgres.classes.ts
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-02 21:05:56 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-02 21:05:56 -0800
commitea2b65d4834d864029299809fb23f40ba2a56f90 (patch)
treeb178b1c6327ed9b450b8764b0c13dea63112ee55 /src/bun.js/api/postgres.classes.ts
parent80c2da73ef59f0170f1c92551c948a1b285da17c (diff)
downloadbun-ea2b65d4834d864029299809fb23f40ba2a56f90.tar.gz
bun-ea2b65d4834d864029299809fb23f40ba2a56f90.tar.zst
bun-ea2b65d4834d864029299809fb23f40ba2a56f90.zip
Draw the owljarred/pg
Diffstat (limited to '')
-rw-r--r--src/bun.js/api/postgres.classes.ts40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/bun.js/api/postgres.classes.ts b/src/bun.js/api/postgres.classes.ts
new file mode 100644
index 000000000..309c9a0db
--- /dev/null
+++ b/src/bun.js/api/postgres.classes.ts
@@ -0,0 +1,40 @@
+import { define } from "../scripts/class-definitions" assert { type: "bun:pg" };
+
+export default [
+ define({
+ name: "PostgresSQLDatabase",
+ construct: false,
+ finalize: true,
+ hasPendingActivity: true,
+ noConstructor: true,
+ klass: {},
+ proto: {
+ close: {
+ fn: "close",
+ length: 0,
+ },
+ query: {
+ fn: "query",
+ length: 4,
+ },
+ // prepare: {
+ // fn: "prepare",
+ // length: 2,
+ // },
+ // run: {
+ // fn: "run",
+ // length: 2,
+ // },
+ ref: {
+ fn: "ref",
+ length: 0,
+ },
+ unref: {
+ fn: "unref",
+ length: 0,
+ },
+ },
+ values: ["onClose", "onNotice", "onOpen", "onTimeout", "onDrain"],
+ JSType: "0b11101110",
+ }),
+];