okmodel 0.2.1 → 0.4.0

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 (148) hide show
  1. package/README.md +882 -48
  2. package/dist/contracts/catalog/document.d.ts +6 -2
  3. package/dist/contracts/catalog/enum.d.ts +31 -4
  4. package/dist/contracts/catalog/extension.d.ts +61 -0
  5. package/dist/contracts/catalog/privilege.d.ts +64 -0
  6. package/dist/contracts/catalog/routine.d.ts +56 -0
  7. package/dist/contracts/catalog/types.d.ts +164 -10
  8. package/dist/contracts/catalog/view.d.ts +73 -0
  9. package/dist/dialects/pg/column.d.ts +3 -1
  10. package/dist/dialects/pg/ddl.d.ts +65 -1
  11. package/dist/dialects/pg/enum.d.ts +10 -8
  12. package/dist/dialects/pg/ext/citext.d.ts +14 -0
  13. package/dist/dialects/pg/ext/citext.js +11 -0
  14. package/dist/dialects/pg/ext/index.d.ts +52 -0
  15. package/dist/dialects/pg/ext/index.js +6 -0
  16. package/dist/dialects/pg/ext/pg-trgm.d.ts +53 -0
  17. package/dist/dialects/pg/ext/pg-trgm.js +42 -0
  18. package/dist/dialects/pg/fn/index.d.ts +107 -0
  19. package/dist/dialects/pg/fn/index.js +175 -0
  20. package/dist/dialects/pg/fn/touch.d.ts +14 -0
  21. package/dist/dialects/pg/index.js +104 -19
  22. package/dist/dialects/pg/introspect.d.ts +10 -1
  23. package/dist/dialects/pg/operators.d.ts +8 -1
  24. package/dist/dialects/pg/role/check.d.ts +45 -0
  25. package/dist/dialects/pg/role/index.d.ts +50 -0
  26. package/dist/dialects/pg/role/sql.d.ts +51 -0
  27. package/dist/dialects/pg/table.d.ts +24 -1
  28. package/dist/dialects/pg/tenancy.d.ts +9 -0
  29. package/dist/dialects/pg/view/client.d.ts +30 -0
  30. package/dist/dialects/pg/view/depend.d.ts +35 -0
  31. package/dist/dialects/pg/view/index.d.ts +114 -0
  32. package/dist/dialects/pg/view/index.js +289 -0
  33. package/dist/dialects/pg/view/scratch.d.ts +22 -0
  34. package/dist/dialects/pg/where.d.ts +2 -2
  35. package/dist/runtime/catalog-cache.d.ts +17 -0
  36. package/dist/runtime/compat-words.d.ts +23 -0
  37. package/dist/runtime/drift-detail.d.ts +20 -4
  38. package/dist/runtime/drift.d.ts +4 -2
  39. package/dist/runtime/pg/bun.js +3 -3
  40. package/dist/runtime/pg/pg.js +3 -3
  41. package/dist/runtime/pg/pglite.js +3 -3
  42. package/dist/runtime/pg/postgresjs.js +3 -3
  43. package/dist/runtime/tenancy/index.js +6 -3
  44. package/dist/runtime/traits/index.d.ts +7 -2
  45. package/dist/runtime/traits/index.js +151 -13
  46. package/dist/runtime/types.d.ts +2 -0
  47. package/dist/runtime/validate/index.js +4 -4
  48. package/dist/shared/{xkz8g6by.js → 1g0drakv.js} +2 -2
  49. package/dist/shared/2321avmn.js +418 -0
  50. package/dist/shared/{7mht49yd.js → 3p4b1fg0.js} +57 -18
  51. package/dist/shared/41kv2xdm.js +318 -0
  52. package/dist/shared/{97g2jnrw.js → 4ef7mmqf.js} +3 -3
  53. package/dist/shared/{sacqha1y.js → 4m9fn52z.js} +2 -2
  54. package/dist/shared/5mtf6cj3.js +94 -0
  55. package/dist/shared/{1dp5knt7.js → 5vdm4sgp.js} +2 -2
  56. package/dist/shared/{a1gdp7j9.js → 6693j9rs.js} +1 -1
  57. package/dist/shared/{38crxbgn.js → 6p5k20sm.js} +3 -3
  58. package/dist/shared/7nk68fj8.js +751 -0
  59. package/dist/shared/84ptn35q.js +71 -0
  60. package/dist/shared/{d2whjz4k.js → 8jb4ymh2.js} +581 -28
  61. package/dist/shared/8ktwd3rh.js +97 -0
  62. package/dist/shared/94ez8kzh.js +19 -0
  63. package/dist/shared/{3a5ne750.js → 9m80mkac.js} +2 -2
  64. package/dist/shared/9x25fxhc.js +150 -0
  65. package/dist/shared/9yn6a2vd.js +11 -0
  66. package/dist/shared/ady1ms74.js +72 -0
  67. package/dist/shared/{4jzzghr6.js → awrsqrn7.js} +6 -6
  68. package/dist/shared/{4b9da9d7.js → axhk06q1.js} +19 -1
  69. package/dist/shared/{d04j53v8.js → c5g81ngb.js} +82 -14
  70. package/dist/shared/{n47rd821.js → c8aghh05.js} +1 -1
  71. package/dist/shared/{dd4f8mnx.js → c9z5g0fm.js} +4 -2
  72. package/dist/shared/{ps43134h.js → dyj86cmj.js} +4 -4
  73. package/dist/shared/{0qkxbm1f.js → fa9vt245.js} +1 -1
  74. package/dist/shared/{qa5dsc7z.js → fb00y8fp.js} +3 -3
  75. package/dist/shared/{qxa0yb9j.js → g7ez901n.js} +30 -1
  76. package/dist/shared/{py3nh7jy.js → gdh9mrtp.js} +2 -2
  77. package/dist/shared/{yw5c610b.js → gjthds9j.js} +2 -2
  78. package/dist/shared/hcmdtwgh.js +102 -0
  79. package/dist/shared/hqjsxnz7.js +13 -0
  80. package/dist/shared/htnaj77v.js +17 -0
  81. package/dist/shared/{v18jva5b.js → jgxzjzcz.js} +1 -1
  82. package/dist/shared/{x9v1qgeb.js → jsd07prz.js} +3 -3
  83. package/dist/shared/{g9f0zqce.js → kafaa5zv.js} +1 -1
  84. package/dist/shared/kj680nxv.js +19 -0
  85. package/dist/shared/{mxmcdsh5.js → kkzwp3d2.js} +9 -9
  86. package/dist/shared/{g1b5zzj9.js → n0dgs0pb.js} +1 -1
  87. package/dist/shared/n5y9zyj1.js +2431 -0
  88. package/dist/shared/{zt8y0wzb.js → n7mcc1gk.js} +1 -1
  89. package/dist/shared/{ge03bfca.js → nxb42q7h.js} +2 -2
  90. package/dist/shared/q6zsyh31.js +2192 -0
  91. package/dist/shared/{sfh4pk75.js → q795afwa.js} +26 -21
  92. package/dist/shared/{10tjenmd.js → qn0srwwq.js} +1 -1
  93. package/dist/shared/s4mb6a4b.js +545 -0
  94. package/dist/shared/{ytg3xf9p.js → sf8m6tfy.js} +3 -3
  95. package/dist/shared/{zd93g3rq.js → sr5ms7b3.js} +1 -1
  96. package/dist/shared/{xatfg0gn.js → tmbdywx0.js} +4 -19
  97. package/dist/shared/tny2t3sm.js +100 -0
  98. package/dist/shared/{e7a268fy.js → v7tpnhnz.js} +1 -1
  99. package/dist/shared/{ecdzej21.js → wqem4jed.js} +7 -7
  100. package/dist/shared/xghkt7a9.js +1144 -0
  101. package/dist/shared/y005b761.js +112 -0
  102. package/dist/shared/ycatkxmq.js +84 -0
  103. package/dist/shared/ygem90rn.js +900 -0
  104. package/dist/shared/{eaxwrgby.js → yjw02enp.js} +6 -3
  105. package/dist/shared/{mrq77sgw.js → zg24x0hm.js} +1 -1
  106. package/dist/shared/{cstgkzdx.js → zvbjc949.js} +1 -1
  107. package/dist/tooling/cli.js +66 -13
  108. package/dist/tooling/migrate/apply.d.ts +75 -5
  109. package/dist/tooling/migrate/backfill.d.ts +136 -0
  110. package/dist/tooling/migrate/check.d.ts +65 -0
  111. package/dist/tooling/migrate/classify.d.ts +108 -0
  112. package/dist/tooling/migrate/commands.d.ts +2 -1
  113. package/dist/tooling/migrate/config.d.ts +30 -0
  114. package/dist/tooling/migrate/doctor.d.ts +28 -0
  115. package/dist/tooling/migrate/drift.d.ts +35 -0
  116. package/dist/tooling/migrate/estimate.d.ts +50 -0
  117. package/dist/tooling/migrate/ext.d.ts +17 -0
  118. package/dist/tooling/migrate/extensions.d.ts +53 -0
  119. package/dist/tooling/migrate/files.d.ts +12 -0
  120. package/dist/tooling/migrate/index.d.ts +3 -2
  121. package/dist/tooling/migrate/index.js +67 -1
  122. package/dist/tooling/migrate/lint-rules.d.ts +51 -0
  123. package/dist/tooling/migrate/lint.d.ts +71 -0
  124. package/dist/tooling/migrate/managed.d.ts +17 -0
  125. package/dist/tooling/migrate/plan.d.ts +78 -10
  126. package/dist/tooling/migrate/project.d.ts +64 -5
  127. package/dist/tooling/migrate/provision.d.ts +18 -0
  128. package/dist/tooling/migrate/reference.d.ts +40 -0
  129. package/dist/tooling/migrate/runner.d.ts +108 -0
  130. package/dist/tooling/migrate/safe.d.ts +77 -0
  131. package/dist/tooling/migrate/seed.d.ts +20 -0
  132. package/dist/tooling/migrate/snapshot.d.ts +78 -0
  133. package/dist/tooling/migrate/status.d.ts +25 -6
  134. package/dist/tooling/migrate/type-name.d.ts +19 -0
  135. package/dist/tooling/testing/factories.d.ts +117 -0
  136. package/dist/tooling/testing/facts.d.ts +72 -0
  137. package/dist/tooling/testing/index.d.ts +89 -0
  138. package/dist/tooling/testing/index.js +8 -0
  139. package/dist/tooling/testing/isolation.d.ts +30 -0
  140. package/dist/tooling/testing/random.d.ts +40 -0
  141. package/dist/tooling/testing/record.d.ts +38 -0
  142. package/package.json +26 -2
  143. package/dist/shared/5z4q2zda.js +0 -2073
  144. package/dist/shared/eqmtn1bj.js +0 -399
  145. package/dist/shared/rtnaqre0.js +0 -37
  146. package/dist/shared/zwmqxb0g.js +0 -79
  147. package/dist/shared/{m9tv7xn7.js → radd3z4g.js} +3 -3
  148. /package/dist/shared/{9k6vetvf.js → rrstp3kb.js} +0 -0
@@ -177,6 +177,35 @@ function enumType(input) {
177
177
  provenance: input.provenance
178
178
  };
179
179
  }
180
+ function domainType(input) {
181
+ assertNamespace2(input.namespace);
182
+ assertIdentifier2(input.name, "type");
183
+ assertProvenance(input.provenance);
184
+ if (input.base.length === 0) {
185
+ catalogError2("OKM1020", `Domain ${input.name} needs a base type.`);
186
+ }
187
+ assertStoredText(input.check, "domain check");
188
+ if (input.check.length === 0) {
189
+ catalogError2("OKM1020", `Domain ${input.name} needs a check.`);
190
+ }
191
+ const identity = {
192
+ kind: "type",
193
+ namespace: input.namespace,
194
+ name: input.name
195
+ };
196
+ const definition = { base: input.base, check: input.check };
197
+ return {
198
+ kind: "type",
199
+ identity,
200
+ owner: input.owner ?? "managed",
201
+ definition,
202
+ dependencies: normaliseEdges(input.dependencies ?? []),
203
+ provenance: input.provenance
204
+ };
205
+ }
206
+ function isDomain(definition) {
207
+ return "base" in definition;
208
+ }
180
209
  function sameEnumLabels(left, right) {
181
210
  if (left.length !== right.length)
182
211
  return false;
@@ -187,4 +216,4 @@ function sameEnumLabels(left, right) {
187
216
  return true;
188
217
  }
189
218
 
190
- export { dependencyOrder, catalog, enumType, sameEnumLabels };
219
+ export { dependencyOrder, catalog, enumType, domainType, isDomain, sameEnumLabels };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  open3
3
- } from "./0qkxbm1f.js";
3
+ } from "./fa9vt245.js";
4
4
  import {
5
5
  PGLITE_CAPABILITIES,
6
6
  readCapability2,
7
7
  hasCapability2
8
- } from "./9k6vetvf.js";
8
+ } from "./rrstp3kb.js";
9
9
  export {
10
10
  PGLITE_CAPABILITIES as capabilities,
11
11
  hasCapability2 as hasCapability,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  required
3
- } from "./dd4f8mnx.js";
3
+ } from "./c9z5g0fm.js";
4
4
  import {
5
5
  rejected
6
- } from "./xatfg0gn.js";
6
+ } from "./tmbdywx0.js";
7
7
 
8
8
  // src/dialects/pg/json.ts
9
9
  function jsonReplacer2(_key, value) {
@@ -0,0 +1,102 @@
1
+ import {
2
+ OkmError2
3
+ } from "./52szzakm.js";
4
+
5
+ // src/dialects/pg/role/check.ts
6
+ async function assertRoleHealth(runner, roles, objects) {
7
+ const managed = new Set((roles.managed ?? []).map((role) => role.name));
8
+ const named = [roles.migration, roles.app];
9
+ for (const name of named) {
10
+ if (managed.has(name))
11
+ continue;
12
+ if (!await roleExists(runner, name)) {
13
+ throw new OkmError2("not_found", `Role ${name} is named in roles and does not exist.`, {
14
+ kind: "not_found",
15
+ fix: { summary: "Create the role, or list it in roles.managed so the plan creates it." }
16
+ });
17
+ }
18
+ }
19
+ if (managed.size > 0)
20
+ await assertCreateRole(runner, await currentUser(runner));
21
+ for (const object of objects) {
22
+ if (object.kind !== "grant" || object.identity.role !== roles.app)
23
+ continue;
24
+ await assertGrant(runner, object);
25
+ }
26
+ }
27
+ async function assertCreateRole(runner, role) {
28
+ const result = await runner.execute("select rolcreaterole from pg_roles where rolname = $1", [
29
+ role
30
+ ]);
31
+ if (!truthy(result.rows[0]?.[0])) {
32
+ throw new OkmError2("forbidden", `Role ${role} lacks CREATEROLE. Nothing was changed.`, {
33
+ kind: "forbidden",
34
+ fix: { summary: "Grant CREATEROLE to the role that applies migrations." }
35
+ });
36
+ }
37
+ }
38
+ async function currentUser(runner) {
39
+ const result = await runner.execute("select current_user");
40
+ const name = result.rows[0]?.[0];
41
+ return typeof name === "string" ? name : "";
42
+ }
43
+ async function roleExists(runner, name) {
44
+ const result = await runner.execute("select 1 from pg_roles where rolname = $1", [name]);
45
+ return result.rows.length > 0;
46
+ }
47
+ async function assertGrant(runner, object) {
48
+ const target = object.identity.object;
49
+ const schema = target.namespace.form === "static" ? target.namespace.name : "public";
50
+ const privilege = object.identity.privilege;
51
+ if (target.kind === "function") {
52
+ const open = target.name.lastIndexOf("(");
53
+ const fn = open < 0 ? target.name : target.name.slice(0, open);
54
+ const args = open < 0 ? "" : target.name.slice(open + 1, -1);
55
+ if (!await functionExists(runner, schema, fn, args))
56
+ return;
57
+ const allowed = await runner.execute("select has_function_privilege($1, format('%I.%I(%s)', $2::text, $3::text, $4::text), $5)", [object.identity.role, schema, fn, args, privilege]);
58
+ if (!truthy(allowed.rows[0]?.[0]))
59
+ missing(object, `${schema}.${fn}`);
60
+ return;
61
+ }
62
+ if (target.kind === "namespace")
63
+ return;
64
+ const relkinds = target.kind === "sequence" ? "'S'" : target.kind === "view" ? "'v'" : target.kind === "materializedView" ? "'m'" : "'r', 'p'";
65
+ if (!await relationExists(runner, schema, target.name, relkinds))
66
+ return;
67
+ const probe = target.kind === "sequence" ? "select has_sequence_privilege($1, format('%I.%I', $2::text, $3::text), $4)" : "select has_table_privilege($1, format('%I.%I', $2::text, $3::text), $4)";
68
+ const allowed = await runner.execute(probe, [
69
+ object.identity.role,
70
+ schema,
71
+ target.name,
72
+ privilege
73
+ ]);
74
+ if (!truthy(allowed.rows[0]?.[0]))
75
+ missing(object, `${schema}.${target.name}`);
76
+ }
77
+ function missing(object, name) {
78
+ throw new OkmError2("OKM1825", `Role ${object.identity.role} lacks ${object.identity.privilege} on ${name}.`, {
79
+ kind: "forbidden",
80
+ fix: {
81
+ summary: "Grant the privilege, or change the role. okm doctor reports the object and the privilege."
82
+ }
83
+ });
84
+ }
85
+ async function relationExists(runner, schema, name, relkinds) {
86
+ const result = await runner.execute(`select 1 from pg_class c
87
+ join pg_namespace n on n.oid = c.relnamespace
88
+ where n.nspname = $1 and c.relname = $2 and c.relkind in (${relkinds})`, [schema, name]);
89
+ return result.rows.length > 0;
90
+ }
91
+ async function functionExists(runner, schema, name, args) {
92
+ const result = await runner.execute(`select 1 from pg_proc p
93
+ join pg_namespace n on n.oid = p.pronamespace
94
+ where n.nspname = $1 and p.proname = $2
95
+ and replace(pg_get_function_identity_arguments(p.oid), ' ', '') = $3`, [schema, name, args]);
96
+ return result.rows.length > 0;
97
+ }
98
+ function truthy(value) {
99
+ return value === true || value === "t" || value === "true";
100
+ }
101
+
102
+ export { assertRoleHealth, assertCreateRole, currentUser, roleExists };
@@ -0,0 +1,13 @@
1
+ import {
2
+ assertAuthorDrift2,
3
+ catalogQuery2,
4
+ managedRoleOptions2
5
+ } from "./xghkt7a9.js";
6
+ import"./n5y9zyj1.js";
7
+ import"./41kv2xdm.js";
8
+ import"./8jb4ymh2.js";
9
+ export {
10
+ assertAuthorDrift2 as assertAuthorDrift,
11
+ catalogQuery2 as catalogQuery,
12
+ managedRoleOptions2 as managedRoleOptions
13
+ };
@@ -0,0 +1,17 @@
1
+ // src/runtime/catalog-cache.ts
2
+ var inflight = new Map;
3
+ function loadOnce(key, load) {
4
+ const found = inflight.get(key);
5
+ if (found !== undefined)
6
+ return found;
7
+ const pending = Promise.resolve().then(load);
8
+ inflight.set(key, pending);
9
+ pending.catch(() => {
10
+ if (inflight.get(key) === pending)
11
+ inflight.delete(key);
12
+ });
13
+ return pending;
14
+ }
15
+ export {
16
+ loadOnce
17
+ };
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  withHttp,
6
6
  settleCall
7
- } from "./mxmcdsh5.js";
7
+ } from "./kkzwp3d2.js";
8
8
  import {
9
9
  rejectKeys,
10
10
  isRecord,
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  definition,
7
7
  unavailable
8
- } from "./xatfg0gn.js";
8
+ } from "./tmbdywx0.js";
9
9
  import {
10
10
  OkmError2,
11
11
  throwNamed2
@@ -60,6 +60,7 @@ var TABLE_KNOWN = new Set([
60
60
  "omitDefaults",
61
61
  "presets",
62
62
  "primaryKey",
63
+ "reference",
63
64
  "relations",
64
65
  "renamedFrom",
65
66
  "sqlName",
@@ -71,8 +72,7 @@ var TABLE_KNOWN = new Set([
71
72
  ]);
72
73
  var TABLE_LATER = {
73
74
  computed: "later",
74
- policies: "later",
75
- reference: "0.4"
75
+ policies: "later"
76
76
  };
77
77
  function table2(name, columns, options) {
78
78
  const source = callerLocation(1);
@@ -5,7 +5,7 @@ import {
5
5
  openClient,
6
6
  withHttp,
7
7
  settleCall
8
- } from "./mxmcdsh5.js";
8
+ } from "./kkzwp3d2.js";
9
9
  import {
10
10
  rejectKeys,
11
11
  isRecord,
@@ -0,0 +1,19 @@
1
+ import {
2
+ applyTarget2,
3
+ applyProject2,
4
+ pushProject2,
5
+ backfillTiming2
6
+ } from "./s4mb6a4b.js";
7
+ import"./7nk68fj8.js";
8
+ import"./q6zsyh31.js";
9
+ import"./n5y9zyj1.js";
10
+ import"./n442h54c.js";
11
+ import"./41kv2xdm.js";
12
+ import"./8jb4ymh2.js";
13
+ import"./wqem4jed.js";
14
+ export {
15
+ applyProject2 as applyProject,
16
+ applyTarget2 as applyTarget,
17
+ backfillTiming2 as backfillTiming,
18
+ pushProject2 as pushProject
19
+ };
@@ -72,7 +72,7 @@ function openClient(session) {
72
72
  },
73
73
  close,
74
74
  connected: session.connected,
75
- tx: (...args) => import("./g9f0zqce.js").then((mod) => mod.tx(session, args)),
75
+ tx: (...args) => import("./kafaa5zv.js").then((mod) => mod.tx(session, args)),
76
76
  batch: (ops, options) => batchHandle(session, ops, options),
77
77
  ...session.tx?.extras
78
78
  };
@@ -107,7 +107,7 @@ function tableApi(session, table, view, uses) {
107
107
  const api = {
108
108
  find(options = {}) {
109
109
  if ("lock" in options) {
110
- return lazyRead(session, () => import("./mrq77sgw.js"), table, options, base, view);
110
+ return lazyRead(session, () => import("./zg24x0hm.js"), table, options, base, view);
111
111
  }
112
112
  return start(session, "find", table, options, base, view);
113
113
  },
@@ -121,10 +121,10 @@ function tableApi(session, table, view, uses) {
121
121
  return start(session, "exists", table, options, base, view);
122
122
  },
123
123
  page(options) {
124
- return lazyRead(session, () => import("./e7a268fy.js"), table, options, base, view);
124
+ return lazyRead(session, () => import("./v7tpnhnz.js"), table, options, base, view);
125
125
  },
126
126
  aggregate(options = {}) {
127
- return lazyRead(session, () => import("./10tjenmd.js"), table, options, base, view);
127
+ return lazyRead(session, () => import("./qn0srwwq.js"), table, options, base, view);
128
128
  },
129
129
  insert(data, options = {}) {
130
130
  return writeHandle(session, "insert", table, data, options, mods);
@@ -154,13 +154,13 @@ function tableApi(session, table, view, uses) {
154
154
  return api;
155
155
  }
156
156
  function batchHandle(session, ops, options, replica) {
157
- return queryHandle(() => import("./v18jva5b.js").then((mod) => mod.batch(session, ops, options, replica)), {
157
+ return queryHandle(() => import("./jgxzjzcz.js").then((mod) => mod.batch(session, ops, options, replica)), {
158
158
  replica: () => batchHandle(session, ops, options, true)
159
159
  });
160
160
  }
161
161
  var writers;
162
162
  function loadWrite() {
163
- writers ??= import("./4jzzghr6.js");
163
+ writers ??= import("./awrsqrn7.js");
164
164
  return writers;
165
165
  }
166
166
  function queryHandle(run, extra) {
@@ -320,7 +320,7 @@ function readHandle(session, table, call, mods, decode, extra) {
320
320
  }
321
321
  function streamLazy(session, call, prepare) {
322
322
  return async function* () {
323
- const { streamRows } = await import("./zd93g3rq.js");
323
+ const { streamRows } = await import("./sr5ms7b3.js");
324
324
  yield* streamRows(session, call, prepare, (error) => logged(session, error));
325
325
  }();
326
326
  }
@@ -357,7 +357,7 @@ function readCall(op, table, options, all, scope, model, schema, view) {
357
357
  };
358
358
  }
359
359
  async function checkServer(pool, schema, http, requireMeta, options, source) {
360
- const server = await import("./ge03bfca.js");
360
+ const server = await import("./nxb42q7h.js");
361
361
  let rows;
362
362
  try {
363
363
  const result = await pool.execute(server.versionQuery, undefined, options);
@@ -386,7 +386,7 @@ function errorFields(error) {
386
386
  var includeHooks;
387
387
  var operatorSql;
388
388
  function loadOperatorSql() {
389
- operatorSql ??= import("./4b9da9d7.js").then(() => {
389
+ operatorSql ??= import("./axhk06q1.js").then(() => {
390
390
  return;
391
391
  });
392
392
  return operatorSql;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  definition,
3
3
  unavailable
4
- } from "./xatfg0gn.js";
4
+ } from "./tmbdywx0.js";
5
5
 
6
6
  // src/dialects/pg/trait.ts
7
7
  var TRAIT_KEYS = new Set(["fields", "name", "presets", "sealed", "touch"]);