mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
66 lines
1.2 KiB
TypeScript
66 lines
1.2 KiB
TypeScript
import { define } from "../scripts/class-definitions";
|
|
|
|
export default [
|
|
define({
|
|
name: "PostgresSQLConnection",
|
|
construct: true,
|
|
finalize: true,
|
|
hasPendingActivity: true,
|
|
configurable: false,
|
|
klass: {
|
|
// escapeString: {
|
|
// fn: "escapeString",
|
|
// },
|
|
// escapeIdentifier: {
|
|
// fn: "escapeIdentifier",
|
|
// },
|
|
},
|
|
JSType: "0b11101110",
|
|
proto: {
|
|
close: {
|
|
fn: "doClose",
|
|
},
|
|
flush: {
|
|
fn: "doFlush",
|
|
},
|
|
connected: {
|
|
getter: "getConnected",
|
|
},
|
|
ref: {
|
|
fn: "doRef",
|
|
},
|
|
unref: {
|
|
fn: "doUnref",
|
|
},
|
|
query: {
|
|
fn: "createQuery",
|
|
},
|
|
},
|
|
}),
|
|
define({
|
|
name: "PostgresSQLQuery",
|
|
construct: true,
|
|
finalize: true,
|
|
configurable: false,
|
|
hasPendingActivity: true,
|
|
JSType: "0b11101110",
|
|
klass: {},
|
|
proto: {
|
|
run: {
|
|
fn: "doRun",
|
|
length: 2,
|
|
},
|
|
cancel: {
|
|
fn: "doCancel",
|
|
length: 0,
|
|
},
|
|
done: {
|
|
fn: "doDone",
|
|
length: 0,
|
|
},
|
|
},
|
|
values: ["pendingValue", "binding"],
|
|
estimatedSize: true,
|
|
}),
|
|
];
|