aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/postgres.classes.ts
blob: 309c9a0dbaf3fdd88b6ba096a9215ffa86cc9cdb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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",
  }),
];