okmodel 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +95 -12
  2. package/dist/contracts/catalog/document.d.ts +20 -0
  3. package/dist/contracts/driver.d.ts +7 -0
  4. package/dist/dialects/pg/filter-parse.d.ts +8 -2
  5. package/dist/dialects/pg/fn/index.js +8 -0
  6. package/dist/dialects/pg/index.js +8 -2
  7. package/dist/dialects/pg/introspect.d.ts +6 -0
  8. package/dist/dialects/pg/ops/or.d.ts +1 -1
  9. package/dist/dialects/pg/role/sql.d.ts +10 -0
  10. package/dist/dialects/pg/schema.d.ts +15 -6
  11. package/dist/dialects/pg/temporal.d.ts +5 -76
  12. package/dist/dialects/pg/view/index.d.ts +20 -6
  13. package/dist/dialects/pg/view/index.js +1 -1
  14. package/dist/dialects/pg/view/scratch.d.ts +2 -2
  15. package/dist/runtime/client.d.ts +6 -1
  16. package/dist/runtime/conflict.d.ts +2 -1
  17. package/dist/runtime/pg/bun.d.ts +12 -7
  18. package/dist/runtime/pg/bun.js +7 -4
  19. package/dist/runtime/pg/pg.d.ts +12 -6
  20. package/dist/runtime/pg/pg.js +7 -4
  21. package/dist/runtime/pg/pglite.d.ts +11 -3
  22. package/dist/runtime/pg/pglite.js +7 -4
  23. package/dist/runtime/pg/postgresjs.d.ts +12 -6
  24. package/dist/runtime/pg/postgresjs.js +7 -4
  25. package/dist/runtime/plan.d.ts +16 -1
  26. package/dist/runtime/tenancy/index.js +1 -1
  27. package/dist/runtime/topology.d.ts +191 -0
  28. package/dist/runtime/traits/index.js +7 -7
  29. package/dist/runtime/types.d.ts +57 -2
  30. package/dist/runtime/validate/index.js +3 -3
  31. package/dist/shared/{radd3z4g.js → 0t22wwh1.js} +5 -9
  32. package/dist/shared/{ady1ms74.js → 2pqx26h8.js} +25 -10
  33. package/dist/shared/{kyxb62mc.js → 31vm914h.js} +9 -1
  34. package/dist/shared/{jns2wx4t.js → 32zqc1dw.js} +18 -7
  35. package/dist/shared/{nxb42q7h.js → 47x8x9ze.js} +2 -2
  36. package/dist/shared/{zvbjc949.js → 4az561fn.js} +1 -1
  37. package/dist/shared/{s6gqfn5j.js → 51mvgj8w.js} +27 -3
  38. package/dist/shared/{k3ted12y.js → 54tqkxja.js} +20 -2
  39. package/dist/shared/{3p4b1fg0.js → 5enne4ma.js} +1 -1
  40. package/dist/shared/{6693j9rs.js → 5fqx9yh4.js} +6 -2
  41. package/dist/shared/{c5g81ngb.js → 6mnp99hx.js} +11 -8
  42. package/dist/shared/{hqjsxnz7.js → 6qd27mx0.js} +5 -4
  43. package/dist/shared/{v7tpnhnz.js → 6rk2gen5.js} +5 -3
  44. package/dist/shared/{2321avmn.js → 7zwwyh0v.js} +46 -16
  45. package/dist/shared/{fa9vt245.js → 87jvvhnt.js} +2 -2
  46. package/dist/shared/{8jb4ymh2.js → 8bwbwy8h.js} +12 -1
  47. package/dist/shared/{c8aghh05.js → 8rsy3hxz.js} +7 -1
  48. package/dist/shared/{41kv2xdm.js → 8xsbagad.js} +1 -1
  49. package/dist/shared/{6p5k20sm.js → 96qcj21c.js} +3 -3
  50. package/dist/shared/{jgxzjzcz.js → aj2qxyhj.js} +2 -2
  51. package/dist/shared/{5vdm4sgp.js → caw8b9d8.js} +4 -4
  52. package/dist/shared/{s4mb6a4b.js → cctw17hj.js} +74 -15
  53. package/dist/shared/{rrstp3kb.js → cgbamx3e.js} +2 -2
  54. package/dist/shared/{axhk06q1.js → cr74e96e.js} +1 -1
  55. package/dist/shared/{b066g80h.js → efmy2gcg.js} +2 -2
  56. package/dist/shared/{gdh9mrtp.js → f5cw5q5r.js} +2 -2
  57. package/dist/shared/{xghkt7a9.js → fancm5pt.js} +6 -233
  58. package/dist/shared/{n5y9zyj1.js → ga3sfy93.js} +369 -14
  59. package/dist/shared/{xrfnq5k8.js → gbtcc2d7.js} +55 -5
  60. package/dist/shared/{7nk68fj8.js → gde73es6.js} +20 -15
  61. package/dist/shared/{kkzwp3d2.js → hf22e0wt.js} +55 -19
  62. package/dist/shared/{tny2t3sm.js → janx09m5.js} +8 -7
  63. package/dist/shared/{4ef7mmqf.js → jwtxdj06.js} +5 -5
  64. package/dist/shared/{sf8m6tfy.js → k8v5v5wj.js} +3 -3
  65. package/dist/shared/{qn0srwwq.js → kfjp0gck.js} +5 -3
  66. package/dist/shared/{wqem4jed.js → krxx77g0.js} +7 -7
  67. package/dist/shared/{edwqqryd.js → nkaxvt9q.js} +1 -1
  68. package/dist/shared/{jsd07prz.js → ntneex2a.js} +1 -1
  69. package/dist/shared/nxdp2ze3.js +1197 -0
  70. package/dist/shared/{tbszx8mz.js → pf0d8f77.js} +1 -1
  71. package/dist/shared/{84ptn35q.js → ps7a6h14.js} +10 -9
  72. package/dist/shared/{kj680nxv.js → q58y17hy.js} +9 -7
  73. package/dist/shared/{awrsqrn7.js → qm7cdtvr.js} +22 -9
  74. package/dist/shared/{q6zsyh31.js → qv2ydck9.js} +156 -205
  75. package/dist/shared/{kafaa5zv.js → r2sp8hrc.js} +28 -8
  76. package/dist/shared/{fb00y8fp.js → r8x5qhd7.js} +5 -5
  77. package/dist/shared/{yjw02enp.js → sdc7r2ww.js} +8 -7
  78. package/dist/shared/sycnx8gt.js +289 -0
  79. package/dist/shared/{hcmdtwgh.js → szm0cksa.js} +4 -1
  80. package/dist/shared/{zg24x0hm.js → tm5ab8we.js} +10 -2
  81. package/dist/shared/{ygem90rn.js → v36c5g6p.js} +85 -21
  82. package/dist/shared/wq9n6pwr.js +139 -0
  83. package/dist/shared/{7p2wbz7f.js → x72jb7ad.js} +1 -1
  84. package/dist/shared/{q795afwa.js → z2rnngj4.js} +3 -3
  85. package/dist/shared/{sr5ms7b3.js → zqrnhwsq.js} +3 -3
  86. package/dist/tooling/cli.js +70 -23
  87. package/dist/tooling/migrate/apply.d.ts +2 -0
  88. package/dist/tooling/migrate/commands.d.ts +1 -2
  89. package/dist/tooling/migrate/drift.d.ts +1 -1
  90. package/dist/tooling/migrate/estimate.d.ts +14 -1
  91. package/dist/tooling/migrate/files.d.ts +7 -0
  92. package/dist/tooling/migrate/index.js +12 -9
  93. package/dist/tooling/migrate/lint.d.ts +3 -3
  94. package/dist/tooling/migrate/plan.d.ts +7 -3
  95. package/dist/tooling/migrate/policy.d.ts +11 -0
  96. package/dist/tooling/migrate/sql-lex.d.ts +22 -0
  97. package/dist/tooling/testing/factories.d.ts +10 -0
  98. package/dist/tooling/testing/facts.d.ts +3 -0
  99. package/dist/tooling/testing/index.js +3 -3
  100. package/dist/tooling/testing/isolation.d.ts +4 -3
  101. package/package.json +6 -5
  102. package/dist/shared/0v1g424p.js +0 -26
@@ -7,7 +7,7 @@ import {
7
7
  decodeResult,
8
8
  logicalIntent,
9
9
  appliedRules
10
- } from "./xrfnq5k8.js";
10
+ } from "./gbtcc2d7.js";
11
11
  import {
12
12
  OkmError2,
13
13
  safe2,
@@ -22,10 +22,22 @@ var SINGLE_ENDPOINT = {
22
22
  reason: "single-endpoint"
23
23
  };
24
24
  function createClient(schema, pool, options) {
25
- const connected = checkServer(pool, schema, options.http, options.requireMeta === true, callOptions(options), {
25
+ const closing = {
26
+ current: undefined,
27
+ early: false
28
+ };
29
+ const checked = checkServer(pool, schema, options.http, options.requireMeta === true, callOptions(options), {
26
30
  ...options.catalog !== undefined ? { catalog: options.catalog } : {},
27
31
  ...options.catalogDir !== undefined ? { catalogDir: options.catalogDir } : {}
28
32
  });
33
+ const connected = checked.catch((error) => {
34
+ if (!closing.early)
35
+ throw error;
36
+ throw new OkmError2("unavailable", "The client was closed before it connected. Await connected before close(), or do not close it before use.", { kind: "unavailable", fix: { summary: "Await client.connected before calling close()." } });
37
+ });
38
+ connected.catch(() => {
39
+ return;
40
+ });
29
41
  const session = {
30
42
  schema,
31
43
  pool,
@@ -38,7 +50,7 @@ function createClient(schema, pool, options) {
38
50
  generators: options.generators,
39
51
  timeouts: options.timeouts,
40
52
  hookm: options.hookm,
41
- closing: { current: undefined }
53
+ closing
42
54
  };
43
55
  return openClient(session);
44
56
  }
@@ -50,6 +62,7 @@ function openClient(session) {
50
62
  const close = () => {
51
63
  if (!session.ownsPool)
52
64
  return Promise.resolve();
65
+ session.closing.early = true;
53
66
  session.closing.current ??= session.pool.close();
54
67
  return session.closing.current;
55
68
  };
@@ -72,7 +85,7 @@ function openClient(session) {
72
85
  },
73
86
  close,
74
87
  connected: session.connected,
75
- tx: (...args) => import("./kafaa5zv.js").then((mod) => mod.tx(session, args)),
88
+ tx: (...args) => import("./r2sp8hrc.js").then((mod) => mod.tx(session, args)),
76
89
  batch: (ops, options) => batchHandle(session, ops, options),
77
90
  ...session.tx?.extras
78
91
  };
@@ -107,7 +120,7 @@ function tableApi(session, table, view, uses) {
107
120
  const api = {
108
121
  find(options = {}) {
109
122
  if ("lock" in options) {
110
- return lazyRead(session, () => import("./zg24x0hm.js"), table, options, base, view);
123
+ return lazyRead(session, () => import("./tm5ab8we.js"), table, options, base, view);
111
124
  }
112
125
  return start(session, "find", table, options, base, view);
113
126
  },
@@ -121,10 +134,10 @@ function tableApi(session, table, view, uses) {
121
134
  return start(session, "exists", table, options, base, view);
122
135
  },
123
136
  page(options) {
124
- return lazyRead(session, () => import("./v7tpnhnz.js"), table, options, base, view);
137
+ return lazyRead(session, () => import("./6rk2gen5.js"), table, options, base, view);
125
138
  },
126
139
  aggregate(options = {}) {
127
- return lazyRead(session, () => import("./qn0srwwq.js"), table, options, base, view);
140
+ return lazyRead(session, () => import("./kfjp0gck.js"), table, options, base, view);
128
141
  },
129
142
  insert(data, options = {}) {
130
143
  return writeHandle(session, "insert", table, data, options, mods);
@@ -154,13 +167,13 @@ function tableApi(session, table, view, uses) {
154
167
  return api;
155
168
  }
156
169
  function batchHandle(session, ops, options, replica) {
157
- return queryHandle(() => import("./jgxzjzcz.js").then((mod) => mod.batch(session, ops, options, replica)), {
170
+ return queryHandle(() => import("./aj2qxyhj.js").then((mod) => mod.batch(session, ops, options, replica)), {
158
171
  replica: () => batchHandle(session, ops, options, true)
159
172
  });
160
173
  }
161
174
  var writers;
162
175
  function loadWrite() {
163
- writers ??= import("./awrsqrn7.js");
176
+ writers ??= import("./qm7cdtvr.js");
164
177
  return writers;
165
178
  }
166
179
  function queryHandle(run, extra) {
@@ -215,9 +228,30 @@ async function runWrite(session, op, table, input, options, mods, plan) {
215
228
  throw logged(session, await mapError(session, error));
216
229
  }
217
230
  }
231
+ function rejectedRead(error) {
232
+ const fail = () => Promise.reject(error);
233
+ return queryHandle(fail, {
234
+ all: () => rejectedRead(error),
235
+ required: () => rejectedRead(error),
236
+ inspect: fail,
237
+ sql: fail,
238
+ stream() {
239
+ return {
240
+ [Symbol.asyncIterator]() {
241
+ return { next: fail };
242
+ }
243
+ };
244
+ }
245
+ });
246
+ }
218
247
  function start(session, op, table, options, mods, view) {
219
248
  const model = session.schema.model[table];
220
- const call = readCall(op, table, options, mods.all, session.scope, model, session.schema, view);
249
+ let call;
250
+ try {
251
+ call = readCall(op, table, options, mods.all, session.scope, model, session.schema, view);
252
+ } catch (error) {
253
+ return rejectedRead(error instanceof OkmError2 ? attachHttp(session.http, error) : error);
254
+ }
221
255
  return readHandle(session, table, call, mods, async (plan, rows) => {
222
256
  const value = await decodeRows(plan, rows, table);
223
257
  if (mods.required === true && value === null) {
@@ -245,7 +279,7 @@ function lazyRead(session, load, table, options, mods, view) {
245
279
  });
246
280
  }
247
281
  async function decodeRows(plan, rows, table) {
248
- return plan.outputs.includes.length === 0 ? decodeResult(plan, rows, table) : (await import("./edwqqryd.js")).decodeIncluded(plan, rows, table);
282
+ return plan.outputs.includes.length === 0 ? decodeResult(plan, rows, table) : (await import("./nkaxvt9q.js")).decodeIncluded(plan, rows, table);
249
283
  }
250
284
  function readHandle(session, table, call, mods, decode, extra) {
251
285
  let prepared;
@@ -320,7 +354,7 @@ function readHandle(session, table, call, mods, decode, extra) {
320
354
  }
321
355
  function streamLazy(session, call, prepare) {
322
356
  return async function* () {
323
- const { streamRows } = await import("./sr5ms7b3.js");
357
+ const { streamRows } = await import("./zqrnhwsq.js");
324
358
  yield* streamRows(session, call, prepare, (error) => logged(session, error));
325
359
  }();
326
360
  }
@@ -357,13 +391,13 @@ function readCall(op, table, options, all, scope, model, schema, view) {
357
391
  };
358
392
  }
359
393
  async function checkServer(pool, schema, http, requireMeta, options, source) {
360
- const server = await import("./nxb42q7h.js");
394
+ const server = await import("./47x8x9ze.js");
361
395
  let rows;
362
396
  try {
363
397
  const result = await pool.execute(server.versionQuery, undefined, options);
364
398
  rows = result.rows;
365
399
  } catch (error) {
366
- const { mapPostgresError } = await import("./s6gqfn5j.js");
400
+ const { mapPostgresError } = await import("./51mvgj8w.js");
367
401
  throw mapPostgresError(error, mapOptions(http, false));
368
402
  }
369
403
  await server.acceptServer(pool, schema, rows, http, requireMeta, options, source);
@@ -372,7 +406,7 @@ async function mapError(session, error) {
372
406
  if (error instanceof OkmError2) {
373
407
  return session.http === undefined ? error : new OkmError2(error.code, error.message, { ...errorFields(error), http: session.http });
374
408
  }
375
- const { mapPostgresError } = await import("./s6gqfn5j.js");
409
+ const { mapPostgresError } = await import("./51mvgj8w.js");
376
410
  return mapPostgresError(error, mapOptions(session.http, session.includeValues));
377
411
  }
378
412
  function errorFields(error) {
@@ -386,7 +420,7 @@ function errorFields(error) {
386
420
  var includeHooks;
387
421
  var operatorSql;
388
422
  function loadOperatorSql() {
389
- operatorSql ??= import("./axhk06q1.js").then(() => {
423
+ operatorSql ??= import("./cr74e96e.js").then(() => {
390
424
  return;
391
425
  });
392
426
  return operatorSql;
@@ -394,7 +428,7 @@ function loadOperatorSql() {
394
428
  function hooksFor(call) {
395
429
  if (call.include === undefined)
396
430
  return Promise.resolve(undefined);
397
- includeHooks ??= import("./edwqqryd.js").then((mod) => mod.includeHooks);
431
+ includeHooks ??= import("./nkaxvt9q.js").then((mod) => mod.includeHooks);
398
432
  return includeHooks;
399
433
  }
400
434
  function bindNow(schema, call) {
@@ -426,11 +460,13 @@ function attachHttp(http, error) {
426
460
  }
427
461
  function callOptions(input, statement) {
428
462
  const timeout = input.timeout ?? statement;
429
- if (input.signal === undefined && timeout === undefined)
463
+ const route = input.route;
464
+ if (input.signal === undefined && timeout === undefined && route === undefined)
430
465
  return;
431
466
  return {
432
467
  ...input.signal !== undefined ? { signal: input.signal } : {},
433
- ...timeout !== undefined ? { timeout } : {}
468
+ ...timeout !== undefined ? { timeout } : {},
469
+ ...route !== undefined ? { route } : {}
434
470
  };
435
471
  }
436
472
  function mapOptions(http, includeValues) {
@@ -1,15 +1,16 @@
1
1
  import {
2
2
  open2
3
- } from "./wqem4jed.js";
4
- import"./8jb4ymh2.js";
3
+ } from "./krxx77g0.js";
4
+ import"./8bwbwy8h.js";
5
5
  import"./n442h54c.js";
6
6
  import {
7
- assertTargetPolicy,
8
- selectTarget,
9
7
  openProject
10
- } from "./q6zsyh31.js";
11
- import"./n5y9zyj1.js";
12
- import"./41kv2xdm.js";
8
+ } from "./qv2ydck9.js";
9
+ import {
10
+ assertTargetPolicy,
11
+ selectTarget
12
+ } from "./ga3sfy93.js";
13
+ import"./8xsbagad.js";
13
14
  import {
14
15
  isExactVersion,
15
16
  compareExtensionVersions
@@ -2,17 +2,17 @@ import {
2
2
  send2,
3
3
  reserve,
4
4
  park
5
- } from "./sf8m6tfy.js";
5
+ } from "./k8v5v5wj.js";
6
6
  import {
7
7
  isConnectionLost
8
- } from "./tbszx8mz.js";
8
+ } from "./pf0d8f77.js";
9
9
  import {
10
10
  WireSession
11
- } from "./zvbjc949.js";
11
+ } from "./4az561fn.js";
12
12
  import {
13
13
  rejectClosed,
14
14
  runCall
15
- } from "./rrstp3kb.js";
15
+ } from "./cgbamx3e.js";
16
16
 
17
17
  // src/adapters/pg/bunsql-extra.ts
18
18
  async function checkout(held) {
@@ -36,7 +36,7 @@ async function checkout(held) {
36
36
  return {
37
37
  execute: (text, params, options) => guard(() => runCall(isClosed(), options, (watch) => session.query(text, params, watch))),
38
38
  batch: (statements, options) => guard(() => runCall(isClosed(), options, async (watch) => {
39
- const { runAtomicBatch } = await import("./b066g80h.js");
39
+ const { runAtomicBatch } = await import("./efmy2gcg.js");
40
40
  return runAtomicBatch(session, statements, watch);
41
41
  })),
42
42
  async release() {
@@ -2,14 +2,14 @@ import {
2
2
  noticeBuffer,
3
3
  WireSession,
4
4
  cursorStream
5
- } from "./zvbjc949.js";
5
+ } from "./4az561fn.js";
6
6
  import {
7
7
  BUNSQL_CAPABILITIES,
8
8
  driverErrors,
9
9
  rejectClosed,
10
10
  mapFailure,
11
11
  runCall
12
- } from "./rrstp3kb.js";
12
+ } from "./cgbamx3e.js";
13
13
 
14
14
  // src/adapters/pg/bunsql.ts
15
15
  import { SQL } from "bun";
@@ -41,7 +41,7 @@ function open5(config) {
41
41
  counters.busy = Math.max(0, counters.busy - 1);
42
42
  });
43
43
  const held = { sql, parked, acquireMs, counters, notices, isClosed };
44
- const checkout = () => closed ? rejectClosed() : import("./4ef7mmqf.js").then((mod) => mod.checkout(held));
44
+ const checkout = () => closed ? rejectClosed() : import("./jwtxdj06.js").then((mod) => mod.checkout(held));
45
45
  return {
46
46
  capabilities: BUNSQL_CAPABILITIES,
47
47
  execute(text, params, options) {
@@ -2,7 +2,7 @@ import {
2
2
  readHandle,
3
3
  readCall,
4
4
  attachHttp
5
- } from "./kkzwp3d2.js";
5
+ } from "./hf22e0wt.js";
6
6
  import {
7
7
  emitWhere,
8
8
  emitOrder,
@@ -15,7 +15,7 @@ import {
15
15
  list,
16
16
  isRecord,
17
17
  fail
18
- } from "./xrfnq5k8.js";
18
+ } from "./gbtcc2d7.js";
19
19
  import {
20
20
  OkmError2,
21
21
  throwNamed2
@@ -32,6 +32,7 @@ var OPTIONS = [
32
32
  "max",
33
33
  "orderBy",
34
34
  "limit",
35
+ "route",
35
36
  "signal",
36
37
  "timeout"
37
38
  ];
@@ -79,7 +80,8 @@ function plan(session, table, options, mods, view) {
79
80
  orderBy,
80
81
  limit: record.limit,
81
82
  signal: record.signal,
82
- timeout: record.timeout
83
+ timeout: record.timeout,
84
+ route: record.route
83
85
  }, mods.all, session.scope, session.schema.model[table], session.schema, view);
84
86
  const call = { ...base, op: "aggregate", build: statement(spec) };
85
87
  return readHandle(session, table, call, mods, (compiled, rows) => decode(compiled, rows));
@@ -6,7 +6,7 @@ import {
6
6
  runCall,
7
7
  EMPTY_NOTICES,
8
8
  resultFrom
9
- } from "./rrstp3kb.js";
9
+ } from "./cgbamx3e.js";
10
10
 
11
11
  // src/adapters/pg/postgresjs.ts
12
12
  import net from "node:net";
@@ -117,7 +117,7 @@ function open2(config) {
117
117
  },
118
118
  async batch(statements, options) {
119
119
  return sockets.occupy(async () => {
120
- const { checkout } = await import("./5vdm4sgp.js");
120
+ const { checkout } = await import("./caw8b9d8.js");
121
121
  const connection = await checkout(held);
122
122
  try {
123
123
  return await connection.batch(statements, options);
@@ -129,12 +129,12 @@ function open2(config) {
129
129
  reserve() {
130
130
  const gate = sockets.busyGate();
131
131
  gate.enter();
132
- return import("./5vdm4sgp.js").then((mod) => mod.holdCheckout(gate, () => mod.checkout(held)), (error) => {
132
+ return import("./caw8b9d8.js").then((mod) => mod.holdCheckout(gate, () => mod.checkout(held)), (error) => {
133
133
  gate.leave();
134
134
  throw error;
135
135
  });
136
136
  },
137
- describe: (text, params) => sockets.occupy(() => import("./5vdm4sgp.js").then((mod) => mod.describe(sql, text, params))),
137
+ describe: (text, params) => sockets.occupy(() => import("./caw8b9d8.js").then((mod) => mod.describe(sql, text, params))),
138
138
  stream(text, params) {
139
139
  const gate = sockets.busyGate();
140
140
  return async function* () {
@@ -149,7 +149,7 @@ function open2(config) {
149
149
  listen(channel, onNotify) {
150
150
  const gate = sockets.listenerGate();
151
151
  gate.enter();
152
- return import("./5vdm4sgp.js").then((mod) => mod.holdListener(gate, async () => {
152
+ return import("./caw8b9d8.js").then((mod) => mod.holdListener(gate, async () => {
153
153
  const listening = await sql.listen(channel, onNotify);
154
154
  return async () => {
155
155
  await listening.unlisten();
@@ -219,7 +219,7 @@ class PgSession {
219
219
  onAbort();
220
220
  else
221
221
  watch.signal.addEventListener("abort", onAbort, { once: true });
222
- return import("./5vdm4sgp.js").then((mod) => mod.watchQuery(pending, watch, onAbort, {
222
+ return import("./caw8b9d8.js").then((mod) => mod.watchQuery(pending, watch, onAbort, {
223
223
  start,
224
224
  text,
225
225
  notices: this.notices,
@@ -271,7 +271,7 @@ class PgSession {
271
271
  }
272
272
  }
273
273
  async function* loadStream(sql, text, params) {
274
- const { stream } = await import("./5vdm4sgp.js");
274
+ const { stream } = await import("./caw8b9d8.js");
275
275
  yield* stream(sql, text, params);
276
276
  }
277
277
  function send(sql, text, params, named) {
@@ -17,7 +17,7 @@ import {
17
17
  isRecord,
18
18
  registerFailFix,
19
19
  fail
20
- } from "./xrfnq5k8.js";
20
+ } from "./gbtcc2d7.js";
21
21
  import {
22
22
  throwNamed2
23
23
  } from "./52szzakm.js";
@@ -29,7 +29,7 @@ function openFilters(table, relations, spec, hiddenFields) {
29
29
  }
30
30
  return {
31
31
  parse(query) {
32
- return import("./0v1g424p.js").then((mod) => mod.parseQuery(allow, sort, query));
32
+ return import("./wq9n6pwr.js").then((mod) => mod.parseQuery(allow, sort, query));
33
33
  }
34
34
  };
35
35
  }