mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
76 lines
1.4 KiB
TypeScript
76 lines
1.4 KiB
TypeScript
import { define } from "../../codegen/class-definitions";
|
|
|
|
export default [
|
|
define({
|
|
name: "PostgresSQLConnection",
|
|
construct: true,
|
|
finalize: true,
|
|
configurable: false,
|
|
hasPendingActivity: true,
|
|
klass: {
|
|
// escapeString: {
|
|
// fn: "escapeString",
|
|
// },
|
|
// escapeIdentifier: {
|
|
// fn: "escapeIdentifier",
|
|
// },
|
|
},
|
|
JSType: "0b11101110",
|
|
proto: {
|
|
close: {
|
|
fn: "doClose",
|
|
},
|
|
connected: {
|
|
getter: "getConnected",
|
|
},
|
|
ref: {
|
|
fn: "doRef",
|
|
},
|
|
unref: {
|
|
fn: "doUnref",
|
|
},
|
|
|
|
queries: {
|
|
getter: "getQueries",
|
|
this: true,
|
|
},
|
|
onconnect: {
|
|
getter: "getOnConnect",
|
|
setter: "setOnConnect",
|
|
this: true,
|
|
},
|
|
onclose: {
|
|
getter: "getOnClose",
|
|
setter: "setOnClose",
|
|
this: true,
|
|
},
|
|
},
|
|
values: ["onconnect", "onclose", "queries"],
|
|
}),
|
|
define({
|
|
name: "PostgresSQLQuery",
|
|
construct: true,
|
|
finalize: true,
|
|
configurable: false,
|
|
|
|
JSType: "0b11101110",
|
|
klass: {},
|
|
proto: {
|
|
run: {
|
|
fn: "doRun",
|
|
length: 2,
|
|
},
|
|
cancel: {
|
|
fn: "doCancel",
|
|
length: 0,
|
|
},
|
|
done: {
|
|
fn: "doDone",
|
|
length: 0,
|
|
},
|
|
},
|
|
values: ["pendingValue", "target", "columns", "binding"],
|
|
estimatedSize: true,
|
|
}),
|
|
];
|