diff options
author | 2023-01-02 21:05:56 -0800 | |
---|---|---|
committer | 2023-01-02 21:05:56 -0800 | |
commit | ea2b65d4834d864029299809fb23f40ba2a56f90 (patch) | |
tree | b178b1c6327ed9b450b8764b0c13dea63112ee55 /src/bun.js/api/postgres.classes.ts | |
parent | 80c2da73ef59f0170f1c92551c948a1b285da17c (diff) | |
download | bun-jarred/pg.tar.gz bun-jarred/pg.tar.zst bun-jarred/pg.zip |
Draw the owljarred/pg
Diffstat (limited to '')
-rw-r--r-- | src/bun.js/api/postgres.classes.ts | 40 |
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", + }), +]; |