okmodel 0.7.0 → 0.8.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 (195) hide show
  1. package/dist/adapters/capabilities.d.ts +32 -0
  2. package/dist/adapters/failure.d.ts +1 -1
  3. package/dist/adapters/pg/bun-sql.d.ts +53 -0
  4. package/dist/adapters/pg/bunsql-extra.d.ts +1 -1
  5. package/dist/adapters/pg/bunsql.d.ts +1 -1
  6. package/dist/adapters/pg/neon-extra.d.ts +18 -0
  7. package/dist/adapters/pg/neon.d.ts +104 -0
  8. package/dist/adapters/pg/no-inflight-timeout.d.ts +1 -1
  9. package/dist/contracts/error.d.ts +1 -1
  10. package/dist/dialects/pg/fn/index.d.ts +39 -1
  11. package/dist/dialects/pg/fn/index.js +118 -26
  12. package/dist/dialects/pg/index.d.ts +2 -0
  13. package/dist/dialects/pg/index.js +393 -18
  14. package/dist/dialects/pg/introspect.d.ts +11 -0
  15. package/dist/dialects/pg/operators.d.ts +1 -1
  16. package/dist/dialects/pg/ops/fragment.d.ts +119 -0
  17. package/dist/dialects/pg/ops/lane.d.ts +49 -0
  18. package/dist/dialects/pg/view/client.d.ts +14 -6
  19. package/dist/dialects/pg/view/index.d.ts +73 -1
  20. package/dist/dialects/pg/view/index.js +156 -5
  21. package/dist/dialects/pg/view/scratch.d.ts +8 -5
  22. package/dist/runtime/otel.d.ts +105 -0
  23. package/dist/runtime/otel.js +97 -0
  24. package/dist/runtime/pg/bun.js +4 -4
  25. package/dist/runtime/pg/neon.d.ts +38 -0
  26. package/dist/runtime/pg/neon.js +64 -0
  27. package/dist/runtime/pg/pg.js +4 -4
  28. package/dist/runtime/pg/pglite.js +4 -4
  29. package/dist/runtime/pg/postgresjs.js +4 -4
  30. package/dist/runtime/plan.d.ts +1 -1
  31. package/dist/runtime/sql-fragment.d.ts +43 -0
  32. package/dist/runtime/tenancy/index.js +10 -10
  33. package/dist/runtime/topology.d.ts +1 -1
  34. package/dist/runtime/traits/index.js +15 -16
  35. package/dist/runtime/types.d.ts +15 -1
  36. package/dist/runtime/validate/index.js +4 -4
  37. package/dist/shared/{mtaszv5a.js → 0wrea3jq.js} +102 -4
  38. package/dist/shared/{qq3899ht.js → 12z7aznj.js} +243 -14
  39. package/dist/shared/{w79hsckn.js → 14x60fbf.js} +5 -5
  40. package/dist/shared/{ek2wt2dz.js → 16kvjebh.js} +4 -4
  41. package/dist/shared/{svncdeh5.js → 195pzzzz.js} +8 -8
  42. package/dist/shared/{gzaveazc.js → 1d9q9cv2.js} +29 -2
  43. package/dist/shared/{jvd0mqag.js → 3449rcae.js} +5 -5
  44. package/dist/shared/{14vx95q4.js → 35q0n9tz.js} +7 -7
  45. package/dist/shared/3bb7wsqt.js +99 -0
  46. package/dist/shared/{y6njgyda.js → 3t6kw83m.js} +2 -2
  47. package/dist/shared/{81ebdx9p.js → 4m6hskg8.js} +4 -4
  48. package/dist/shared/{xhfsfkgk.js → 4vbf83xx.js} +9 -2
  49. package/dist/shared/{bg3rym3g.js → 63f4ksbz.js} +2 -2
  50. package/dist/shared/{pt94kz7f.js → 6m78c8ss.js} +1 -1
  51. package/dist/shared/{5e3tf63j.js → 760ppr76.js} +14 -6
  52. package/dist/shared/{zm0ptry0.js → 7ghwamrf.js} +1 -1
  53. package/dist/shared/{xnxsed62.js → 9dr2qnx7.js} +14 -14
  54. package/dist/shared/{h15jx9bc.js → 9dvh1dr6.js} +1 -1
  55. package/dist/shared/{q5c6ngn3.js → a62rb2da.js} +1 -1
  56. package/dist/shared/{kb2sdhfb.js → ae4j5f42.js} +17 -1
  57. package/dist/shared/agsfb86s.js +233 -0
  58. package/dist/shared/{7k9grvf6.js → b6d6p0zc.js} +5 -5
  59. package/dist/shared/{tbrvgw6z.js → bah9nbg3.js} +17 -16
  60. package/dist/shared/{5fe3kbsh.js → bnby0esn.js} +1 -1
  61. package/dist/shared/bsek72fg.js +225 -0
  62. package/dist/shared/{1w508jbr.js → bxas03mq.js} +21 -17
  63. package/dist/shared/{dk8v79p3.js → d5nmj7vv.js} +1 -1
  64. package/dist/shared/{tsvww22q.js → dpc2r7rb.js} +7 -7
  65. package/dist/shared/{vb6qfyve.js → e8zyaqvj.js} +2 -2
  66. package/dist/shared/{hyh73qk6.js → ecn8mfdq.js} +5 -5
  67. package/dist/shared/{gs74dbj5.js → f4jy1j7x.js} +27 -14
  68. package/dist/shared/{ttsqgp4p.js → fjpnhqan.js} +2 -2
  69. package/dist/shared/{xjk7hnn5.js → g5yc06ka.js} +2 -2
  70. package/dist/shared/{w72kgg4q.js → hfqmpasr.js} +6 -6
  71. package/dist/shared/{kr0jzbw2.js → hm5f8jby.js} +7 -7
  72. package/dist/shared/{dkxgzaqd.js → hqpxf4a4.js} +1 -1
  73. package/dist/shared/{cn957f8d.js → jebgrkeq.js} +3 -3
  74. package/dist/shared/{wa07eas9.js → jp36k7dp.js} +11 -11
  75. package/dist/shared/jx2m62cs.js +96 -0
  76. package/dist/shared/{sfz1ksn6.js → k86n8vq3.js} +2 -2
  77. package/dist/shared/{67txcrcw.js → kgwp4jdd.js} +4 -4
  78. package/dist/shared/{8skf0cam.js → kj9d8maq.js} +1 -1
  79. package/dist/shared/{aytqh5y2.js → m4xff2a6.js} +2 -2
  80. package/dist/shared/{zp9fmend.js → mfedzr74.js} +4 -4
  81. package/dist/shared/{ax7qv55k.js → mkrn359n.js} +60 -11
  82. package/dist/shared/{m6p12kbr.js → mnvjvqyp.js} +10 -10
  83. package/dist/shared/{1qa0qajz.js → mtw6jz76.js} +1 -1
  84. package/dist/shared/{1est4ezg.js → n05z9nwz.js} +3 -3
  85. package/dist/shared/{pbp1ss85.js → n0jmpgj1.js} +2 -2
  86. package/dist/shared/{ktz42yez.js → n41w4fbz.js} +5 -5
  87. package/dist/shared/{n816peh1.js → n454kcnw.js} +1 -1
  88. package/dist/shared/n7kg8mmx.js +61 -0
  89. package/dist/shared/{g6evj1j3.js → needfe47.js} +1 -1
  90. package/dist/shared/{2shdbn8q.js → njga14v4.js} +9 -9
  91. package/dist/shared/{vqrjpcqn.js → nmnsgj7x.js} +1 -1
  92. package/dist/shared/{b5pftnn2.js → p3xbdcvt.js} +14 -18
  93. package/dist/shared/{te5as7z7.js → p5nh3r8q.js} +3 -3
  94. package/dist/shared/{p6qc5gcp.js → pan0370z.js} +6 -6
  95. package/dist/shared/{79dt02vc.js → q0cqt2sp.js} +1 -1
  96. package/dist/shared/{5v3xf80k.js → qd9hhd8f.js} +1 -1
  97. package/dist/shared/{bm22fvzr.js → qfw14tna.js} +2 -2
  98. package/dist/shared/{9s0ypp87.js → sjk86yrx.js} +1 -1
  99. package/dist/shared/{3v7t1yrv.js → th3be82n.js} +2 -2
  100. package/dist/shared/{ed0b8k4s.js → typ3vy7t.js} +1 -1
  101. package/dist/shared/{vczs8gd4.js → v1wad97q.js} +2 -2
  102. package/dist/shared/{9628a9xt.js → vk7rag46.js} +1 -1
  103. package/dist/shared/{ze4hxsmy.js → w9ejzaqf.js} +1 -1
  104. package/dist/shared/{bz84tkzm.js → wcrheftc.js} +2 -2
  105. package/dist/shared/{ab9gmbwy.js → wvdjznah.js} +5 -5
  106. package/dist/shared/{7mnme5tn.js → wz2a78mp.js} +1 -1
  107. package/dist/shared/{9y3mmmh1.js → xfhe73sb.js} +1 -1
  108. package/dist/shared/{je4axnm8.js → z581d7ny.js} +2 -2
  109. package/dist/shared/{x933k9a3.js → zbqbmmrp.js} +10 -10
  110. package/dist/shared/{rs73fca9.js → zgex00fd.js} +6 -6
  111. package/dist/shared/{jznfax0y.js → zq1he88x.js} +4 -4
  112. package/dist/tooling/cli.js +26 -13
  113. package/dist/tooling/driver-run.js +4971 -0
  114. package/dist/tooling/driver-test.d.ts +36 -0
  115. package/dist/tooling/migrate/commands.d.ts +2 -2
  116. package/dist/tooling/migrate/index.js +9 -9
  117. package/dist/tooling/migrate/project.d.ts +3 -0
  118. package/dist/tooling/shared/03k6res6.js +210 -0
  119. package/dist/tooling/shared/08kemxjd.js +10 -0
  120. package/dist/tooling/shared/2revefqt.js +209 -0
  121. package/dist/tooling/shared/2wtvc7rw.js +1425 -0
  122. package/dist/tooling/shared/345tbc2k.js +16 -0
  123. package/dist/tooling/shared/3m1hkg7z.js +344 -0
  124. package/dist/tooling/shared/3rrw5w8f.js +81 -0
  125. package/dist/tooling/shared/3tq8pnb8.js +131 -0
  126. package/dist/tooling/shared/417zdsk7.js +194 -0
  127. package/dist/tooling/shared/4d2w25vw.js +40 -0
  128. package/dist/tooling/shared/54tqkxja.js +51 -0
  129. package/dist/tooling/shared/5bvw2nev.js +12 -0
  130. package/dist/tooling/shared/6nyfyw70.js +231 -0
  131. package/dist/tooling/shared/72fyg4zv.js +160 -0
  132. package/dist/tooling/shared/733a1tq3.js +38 -0
  133. package/dist/tooling/shared/7ae7rjmn.js +20 -0
  134. package/dist/tooling/shared/7kms6fvj.js +20 -0
  135. package/dist/tooling/shared/8sqrsw3s.js +49 -0
  136. package/dist/tooling/shared/96ps4g1z.js +32 -0
  137. package/dist/tooling/shared/9kazs5p6.js +195 -0
  138. package/dist/tooling/shared/9xzm7hjg.js +38 -0
  139. package/dist/tooling/shared/a6pp9d12.js +49 -0
  140. package/dist/tooling/shared/a7q7t4n3.js +22 -0
  141. package/dist/tooling/shared/aftb2mwr.js +18 -0
  142. package/dist/tooling/shared/bz2dqhab.js +311 -0
  143. package/dist/tooling/shared/cmptmb4f.js +12 -0
  144. package/dist/tooling/shared/ddjtfgnx.js +177 -0
  145. package/dist/tooling/shared/djydjpqt.js +261 -0
  146. package/dist/tooling/shared/dw08f3m8.js +9 -0
  147. package/dist/tooling/shared/dy672fz6.js +16 -0
  148. package/dist/tooling/shared/dzx85q70.js +66 -0
  149. package/dist/tooling/shared/ec71zqgt.js +270 -0
  150. package/dist/tooling/shared/ep8zh3bk.js +6 -0
  151. package/dist/tooling/shared/f9mphxej.js +3789 -0
  152. package/dist/tooling/shared/fb9k2qwd.js +89 -0
  153. package/dist/tooling/shared/g9ad4n80.js +211 -0
  154. package/dist/tooling/shared/gfvtj6d0.js +94 -0
  155. package/dist/tooling/shared/gmcf9cxf.js +294 -0
  156. package/dist/tooling/shared/htnaj77v.js +17 -0
  157. package/dist/tooling/shared/j9t5s12a.js +7 -0
  158. package/dist/tooling/shared/jne7b93p.js +42 -0
  159. package/dist/tooling/shared/ma2340rx.js +118 -0
  160. package/dist/tooling/shared/mtrqn2hn.js +505 -0
  161. package/dist/tooling/shared/n4jqhpqz.js +27 -0
  162. package/dist/tooling/shared/nf7jmhfa.js +20 -0
  163. package/dist/tooling/shared/p7f08ktn.js +332 -0
  164. package/dist/tooling/shared/ppnnnvj8.js +13 -0
  165. package/dist/tooling/shared/pqy21k24.js +312 -0
  166. package/dist/tooling/shared/pw8fgahx.js +69 -0
  167. package/dist/tooling/shared/pwsytxm5.js +17 -0
  168. package/dist/tooling/shared/rf83gr2d.js +94 -0
  169. package/dist/tooling/shared/rq5kk8j6.js +401 -0
  170. package/dist/tooling/shared/rs1jb051.js +12 -0
  171. package/dist/tooling/shared/smn6kz1p.js +157 -0
  172. package/dist/tooling/shared/spk1jg3r.js +1696 -0
  173. package/dist/tooling/shared/tn8gay14.js +143 -0
  174. package/dist/tooling/shared/vraj6d74.js +42 -0
  175. package/dist/tooling/shared/vs0t6qt8.js +64 -0
  176. package/dist/tooling/shared/vx86qjv8.js +150 -0
  177. package/dist/tooling/shared/w7qe8sj1.js +140 -0
  178. package/dist/tooling/shared/wt7j7nf6.js +15 -0
  179. package/dist/tooling/shared/wwnekq5n.js +6 -0
  180. package/dist/tooling/shared/xhrnjch9.js +185 -0
  181. package/dist/tooling/shared/xjs6zqtc.js +190 -0
  182. package/dist/tooling/shared/y031jct9.js +16 -0
  183. package/dist/tooling/shared/y5656f0e.js +233 -0
  184. package/dist/tooling/shared/yfr8hzhm.js +604 -0
  185. package/dist/tooling/shared/yk9mp7vb.js +250 -0
  186. package/dist/tooling/shared/yw30vnq2.js +139 -0
  187. package/dist/tooling/shared/z8d7ptht.js +618 -0
  188. package/dist/tooling/shared/zhwnfyb2.js +9 -0
  189. package/dist/tooling/shared/zvnhh1n0.js +198 -0
  190. package/dist/tooling/testing/index.js +3 -3
  191. package/package.json +14 -2
  192. package/dist/shared/y34a8714.js +0 -150
  193. package/dist/shared/zy8r7qvz.js +0 -116
  194. package/dist/shared/{ywr8hmey.js → 606g0nbf.js} +3 -3
  195. package/dist/shared/{rpycarcr.js → gcefca6p.js} +4 -4
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  identityColumn2
3
- } from "./xjk7hnn5.js";
3
+ } from "./g5yc06ka.js";
4
4
  import {
5
5
  runWrite
6
6
  } from "./n4jqhpqz.js";
7
7
  import {
8
8
  queryHandle,
9
9
  settleCall
10
- } from "./tbrvgw6z.js";
10
+ } from "./bah9nbg3.js";
11
11
  import {
12
12
  withRowFilters,
13
13
  archiveRules,
@@ -18,7 +18,7 @@ import {
18
18
  list,
19
19
  isRecord,
20
20
  fail2
21
- } from "./67txcrcw.js";
21
+ } from "./kgwp4jdd.js";
22
22
  import {
23
23
  safetyInstalled,
24
24
  runSafety
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  open2
3
- } from "./14vx95q4.js";
3
+ } from "./35q0n9tz.js";
4
4
  import {
5
5
  startupHash2
6
- } from "./qq3899ht.js";
6
+ } from "./12z7aznj.js";
7
7
  import {
8
8
  runTarget,
9
9
  assumeRole,
@@ -14,12 +14,12 @@ import {
14
14
  provisionMark,
15
15
  expandProvisioned,
16
16
  installSnapshot
17
- } from "./m6p12kbr.js";
17
+ } from "./mnvjvqyp.js";
18
18
  import {
19
19
  assertCreateRole,
20
20
  currentUser,
21
21
  roleExists
22
- } from "./8skf0cam.js";
22
+ } from "./kj9d8maq.js";
23
23
  import {
24
24
  projectPath,
25
25
  loadMigrations,
@@ -30,7 +30,7 @@ import {
30
30
  projectHead,
31
31
  loadBuiltSchema,
32
32
  loadConfig
33
- } from "./gs74dbj5.js";
33
+ } from "./f4jy1j7x.js";
34
34
  import {
35
35
  changesRole,
36
36
  batchSizeField,
@@ -41,7 +41,7 @@ import {
41
41
  assertDirectConnection,
42
42
  assertStableBackend,
43
43
  selectTarget
44
- } from "./tsvww22q.js";
44
+ } from "./dpc2r7rb.js";
45
45
  import {
46
46
  UUIDV7_POSTGRES,
47
47
  uuidv7NeedsPostgres
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rejectUncancellable
3
- } from "./kb2sdhfb.js";
3
+ } from "./ae4j5f42.js";
4
4
 
5
5
  // src/adapters/pg/no-inflight-timeout.ts
6
6
  function noTimeout(options) {
@@ -15,7 +15,7 @@ import {
15
15
  expectOf2,
16
16
  allowSet2,
17
17
  noteGuarded2
18
- } from "./1w508jbr.js";
18
+ } from "./bxas03mq.js";
19
19
  import"./mss6ctgv.js";
20
20
  export {
21
21
  Sql2 as Sql,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./mss6ctgv.js";
4
4
  import {
5
5
  effectivePredicate
6
- } from "./n816peh1.js";
6
+ } from "./n454kcnw.js";
7
7
  import {
8
8
  runWrite
9
9
  } from "./n4jqhpqz.js";
@@ -17,7 +17,7 @@ import {
17
17
  isRecord,
18
18
  registerFailFix,
19
19
  fail2
20
- } from "./67txcrcw.js";
20
+ } from "./kgwp4jdd.js";
21
21
  import {
22
22
  safetyInstalled,
23
23
  runSafety
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  creationOrder2
3
- } from "./qq3899ht.js";
3
+ } from "./12z7aznj.js";
4
4
  import {
5
5
  isDomain
6
6
  } from "./ywspezzx.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  refusePrototypeKey
3
- } from "./q5c6ngn3.js";
3
+ } from "./a62rb2da.js";
4
4
  import {
5
5
  isBucket
6
6
  } from "./nbw1z4yd.js";
@@ -11,7 +11,7 @@ import {
11
11
  list,
12
12
  isRecord,
13
13
  fail2
14
- } from "./67txcrcw.js";
14
+ } from "./kgwp4jdd.js";
15
15
  import {
16
16
  throwNamed2
17
17
  } from "./52szzakm.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  required
3
- } from "./ywr8hmey.js";
3
+ } from "./606g0nbf.js";
4
4
  import {
5
5
  definition,
6
6
  rejected
@@ -8,12 +8,12 @@ import {
8
8
  openClient,
9
9
  withHttp,
10
10
  settleCall
11
- } from "./tbrvgw6z.js";
11
+ } from "./bah9nbg3.js";
12
12
  import {
13
13
  rejectKeys,
14
14
  isRecord,
15
15
  fail2
16
- } from "./67txcrcw.js";
16
+ } from "./kgwp4jdd.js";
17
17
  import {
18
18
  OkmError2
19
19
  } from "./52szzakm.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  required
3
- } from "./ywr8hmey.js";
3
+ } from "./606g0nbf.js";
4
4
  import {
5
5
  rejected
6
6
  } from "./tmbdywx0.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ColumnBuilder2
3
- } from "./ywr8hmey.js";
3
+ } from "./606g0nbf.js";
4
4
  import {
5
5
  definition
6
6
  } from "./tmbdywx0.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./cm3w0ywp.js";
5
5
  import {
6
6
  PgSession
7
- } from "./14vx95q4.js";
7
+ } from "./35q0n9tz.js";
8
8
  import {
9
9
  isConnectionLost
10
10
  } from "./cnkky55j.js";
@@ -15,7 +15,7 @@ import {
15
15
  runCall,
16
16
  rowsFrom,
17
17
  resultFrom
18
- } from "./kb2sdhfb.js";
18
+ } from "./ae4j5f42.js";
19
19
 
20
20
  // src/adapters/pg/postgres-extra.ts
21
21
  var RESET_ALL = "RESET ALL";
@@ -5,11 +5,11 @@ import {
5
5
  send2,
6
6
  reserve,
7
7
  park
8
- } from "./x933k9a3.js";
8
+ } from "./zbqbmmrp.js";
9
9
  import {
10
10
  resetSession2,
11
11
  refuseWhenLost2
12
- } from "./zm0ptry0.js";
12
+ } from "./7ghwamrf.js";
13
13
  import {
14
14
  cursorStream
15
15
  } from "./7kms6fvj.js";
@@ -18,14 +18,14 @@ import {
18
18
  } from "./cnkky55j.js";
19
19
  import {
20
20
  noTimeout
21
- } from "./79dt02vc.js";
21
+ } from "./q0cqt2sp.js";
22
22
  import {
23
23
  WireSession
24
- } from "./1qa0qajz.js";
24
+ } from "./mtw6jz76.js";
25
25
  import {
26
26
  rejectClosed,
27
27
  runCall
28
- } from "./kb2sdhfb.js";
28
+ } from "./ae4j5f42.js";
29
29
 
30
30
  // src/adapters/pg/bunsql-extra.ts
31
31
  async function recover(sql, error, text, depth, clientRead, closedDuring, again) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build2,
3
3
  identityColumn2
4
- } from "./xjk7hnn5.js";
4
+ } from "./g5yc06ka.js";
5
5
  export {
6
6
  build2 as build,
7
7
  identityColumn2 as identityColumn
@@ -8,7 +8,7 @@ import {
8
8
  quote,
9
9
  isRecord,
10
10
  fail2
11
- } from "./67txcrcw.js";
11
+ } from "./kgwp4jdd.js";
12
12
  import {
13
13
  OkmError2
14
14
  } from "./52szzakm.js";
@@ -7,8 +7,8 @@ import {
7
7
  holdCheckout2,
8
8
  holdListener2,
9
9
  watchQuery2
10
- } from "./bz84tkzm.js";
11
- import"./14vx95q4.js";
10
+ } from "./wcrheftc.js";
11
+ import"./35q0n9tz.js";
12
12
  import"./cm3w0ywp.js";
13
13
  export {
14
14
  checkout2 as checkout,
@@ -3,21 +3,21 @@ import {
3
3
  } from "./cm3w0ywp.js";
4
4
  import {
5
5
  noTimeout
6
- } from "./79dt02vc.js";
6
+ } from "./q0cqt2sp.js";
7
7
  import {
8
8
  noticeBuffer,
9
9
  WireSession
10
- } from "./1qa0qajz.js";
10
+ } from "./mtw6jz76.js";
11
11
  import {
12
12
  BUNSQL_CAPABILITIES,
13
13
  driverErrors,
14
14
  rejectClosed,
15
15
  mapFailure,
16
16
  runCall
17
- } from "./kb2sdhfb.js";
17
+ } from "./ae4j5f42.js";
18
18
 
19
19
  // src/adapters/pg/bunsql.ts
20
- import { SQL } from "bun";
20
+ import { SQL as BunSQL } from "bun";
21
21
  var clientPools = new WeakSet;
22
22
  function markClientPool(pool) {
23
23
  clientPools.add(pool);
@@ -33,7 +33,7 @@ function open5(config) {
33
33
  const parked = [];
34
34
  let dropped = 0;
35
35
  let closures = 0;
36
- const sql = new SQL(config.url, {
36
+ const sql = new BunSQL(config.url, {
37
37
  max,
38
38
  idleTimeout: 0,
39
39
  maxLifetime: 0,
@@ -66,19 +66,19 @@ function open5(config) {
66
66
  };
67
67
  const run = (text, params, watch) => {
68
68
  const sent = dropped;
69
- return root.query(text, params, watch).catch((error) => import("./ab9gmbwy.js").then((mod) => mod.recover(sql, error, text, root.depth(), clientPools.has(pool), dropped > sent, () => root.query(text, params, watch))));
69
+ return root.query(text, params, watch).catch((error) => import("./wvdjznah.js").then((mod) => mod.recover(sql, error, text, root.depth(), clientPools.has(pool), dropped > sent, () => root.query(text, params, watch))));
70
70
  };
71
71
  const afterDrop = (text, params, watch) => {
72
72
  if (dropped === 0)
73
73
  return run(text, params, watch);
74
74
  const seen = dropped;
75
- return import("./ab9gmbwy.js").then((mod) => mod.drainClosed(sql).then(() => {
75
+ return import("./wvdjznah.js").then((mod) => mod.drainClosed(sql).then(() => {
76
76
  if (dropped === seen)
77
77
  dropped = 0;
78
78
  return run(text, params, watch);
79
79
  }));
80
80
  };
81
- const checkout = () => closed ? rejectClosed() : import("./ab9gmbwy.js").then((mod) => mod.checkout(held));
81
+ const checkout = () => closed ? rejectClosed() : import("./wvdjznah.js").then((mod) => mod.checkout(held));
82
82
  const pool = {
83
83
  capabilities: BUNSQL_CAPABILITIES,
84
84
  execute(text, params, options) {
@@ -101,12 +101,12 @@ function open5(config) {
101
101
  reserve: () => checkout(),
102
102
  stream(text, params) {
103
103
  return async function* () {
104
- const { streamRows } = await import("./ab9gmbwy.js");
104
+ const { streamRows } = await import("./wvdjznah.js");
105
105
  yield* streamRows(checkout, text, params);
106
106
  }();
107
107
  },
108
108
  listen(channel, onNotify) {
109
- return import("./ab9gmbwy.js").then((mod) => mod.listen(sql, parked, closed, channel, onNotify));
109
+ return import("./wvdjznah.js").then((mod) => mod.listen(sql, parked, closed, channel, onNotify));
110
110
  },
111
111
  stats: () => statsOf(counters, max),
112
112
  async close() {
@@ -1,14 +1,14 @@
1
- import"./qq3899ht.js";
1
+ import"./12z7aznj.js";
2
2
  import"./n442h54c.js";
3
- import"./14vx95q4.js";
3
+ import"./35q0n9tz.js";
4
4
  import {
5
5
  projectPath,
6
6
  loadConfig
7
- } from "./gs74dbj5.js";
7
+ } from "./f4jy1j7x.js";
8
8
  import {
9
9
  listTargets
10
- } from "./tsvww22q.js";
11
- import"./9s0ypp87.js";
10
+ } from "./dpc2r7rb.js";
11
+ import"./sjk86yrx.js";
12
12
 
13
13
  // src/tooling/migrate/dev.ts
14
14
  import { mkdirSync } from "node:fs";
@@ -20,7 +20,7 @@ async function devProject(cwd) {
20
20
  `;
21
21
  const directory = projectPath(cwd, config.out ?? ".okm", "dev-db");
22
22
  mkdirSync(directory, { recursive: true });
23
- const { open } = await import("./aytqh5y2.js");
23
+ const { open } = await import("./m4xff2a6.js");
24
24
  const pool = await open({ dataDir: directory });
25
25
  try {
26
26
  await pool.execute("select 1");
@@ -1,16 +1,16 @@
1
- import {
2
- assertNoControl
3
- } from "./zchaghkf.js";
4
1
  import {
5
2
  searchValue
6
3
  } from "./dzj09cye.js";
4
+ import {
5
+ assertNoControl
6
+ } from "./zchaghkf.js";
7
7
  import {
8
8
  refuseHidden,
9
9
  indexes,
10
10
  list,
11
11
  isRecord,
12
12
  fail2
13
- } from "./67txcrcw.js";
13
+ } from "./kgwp4jdd.js";
14
14
  import {
15
15
  isOperator,
16
16
  operatorName,
@@ -1,6 +1,6 @@
1
- import"../shared/qq3899ht.js";
1
+ import"../shared/12z7aznj.js";
2
2
  import"../shared/n442h54c.js";
3
- import"../shared/14vx95q4.js";
3
+ import"../shared/35q0n9tz.js";
4
4
  import {
5
5
  formatFindings,
6
6
  hasError,
@@ -9,11 +9,11 @@ import {
9
9
  generateProject,
10
10
  planProject,
11
11
  checkProject
12
- } from "../shared/gs74dbj5.js";
12
+ } from "../shared/f4jy1j7x.js";
13
13
  import {
14
14
  sessionFailure
15
- } from "../shared/tsvww22q.js";
16
- import"../shared/9s0ypp87.js";
15
+ } from "../shared/dpc2r7rb.js";
16
+ import"../shared/sjk86yrx.js";
17
17
  import {
18
18
  OkmError2
19
19
  } from "../shared/52szzakm.js";
@@ -73,12 +73,12 @@ async function run(argv, io) {
73
73
  return;
74
74
  }
75
75
  if (command === "dev") {
76
- const { devProject } = await import("../shared/rs73fca9.js");
76
+ const { devProject } = await import("../shared/zgex00fd.js");
77
77
  stdout(await devProject(cwd));
78
78
  return;
79
79
  }
80
80
  if (command === "push") {
81
- const { pushProject } = await import("../shared/2shdbn8q.js");
81
+ const { pushProject } = await import("../shared/njga14v4.js");
82
82
  stdout(await pushProject(cwd, invoke(splitFlags(rest))));
83
83
  return;
84
84
  }
@@ -97,17 +97,17 @@ async function run(argv, io) {
97
97
  return;
98
98
  }
99
99
  if (sub === "apply") {
100
- const { applyProject } = await import("../shared/2shdbn8q.js");
100
+ const { applyProject } = await import("../shared/njga14v4.js");
101
101
  stdout(await applyProject(cwd, invoke(parsed), stdout));
102
102
  return;
103
103
  }
104
104
  if (sub === "status") {
105
- const { statusProject } = await import("../shared/svncdeh5.js");
105
+ const { statusProject } = await import("../shared/195pzzzz.js");
106
106
  stdout(await statusProject(cwd, invoke(parsed)));
107
107
  return;
108
108
  }
109
109
  if (sub === "check") {
110
- const { checkMigrations } = await import("../shared/wa07eas9.js");
110
+ const { checkMigrations } = await import("../shared/jp36k7dp.js");
111
111
  const provision = parsed.flags.includes("--provision") || rest.slice(1).includes("--provision");
112
112
  stdout(await checkMigrations(cwd, invoke(parsed), { provision }));
113
113
  return;
@@ -120,16 +120,28 @@ async function run(argv, io) {
120
120
  fix: { summary: "Pass okm seed <file>." }
121
121
  });
122
122
  }
123
- const { seedProject } = await import("../shared/w72kgg4q.js");
123
+ const { seedProject } = await import("../shared/hfqmpasr.js");
124
124
  stdout(await seedProject(cwd, parsed.name, invoke(parsed)));
125
125
  return;
126
126
  }
127
127
  if (command === "doctor") {
128
128
  const parsed = splitFlags(rest);
129
- const { doctorProject } = await import("../shared/kr0jzbw2.js");
129
+ const { doctorProject } = await import("../shared/hm5f8jby.js");
130
130
  stdout(await doctorProject(cwd, parsed.name, invoke(parsed)));
131
131
  return;
132
132
  }
133
+ if (command === "driver") {
134
+ const sub = rest[0];
135
+ if (sub !== "test") {
136
+ const message = sub === undefined ? "Unknown command driver." : `Unknown command driver ${sub}.`;
137
+ throw new OkmError2("invalid", message, {
138
+ fix: { summary: "Use okm driver test <driver>." }
139
+ });
140
+ }
141
+ const { driverTest } = await import("../shared/n7kg8mmx.js");
142
+ await driverTest(rest.slice(1), stdout);
143
+ return;
144
+ }
133
145
  if (command === "ext") {
134
146
  const sub = rest[0];
135
147
  if (sub === "test" || sub === "scaffold") {
@@ -138,7 +150,7 @@ async function run(argv, io) {
138
150
  });
139
151
  }
140
152
  if (sub === "list" || sub === "check") {
141
- const { extProject } = await import("../shared/ktz42yez.js");
153
+ const { extProject } = await import("../shared/n41w4fbz.js");
142
154
  stdout(await extProject(cwd, sub, invoke(splitFlags(rest.slice(1)))));
143
155
  return;
144
156
  }
@@ -231,6 +243,7 @@ var COMMANDS = [
231
243
  ["check", "Lint the schema and compare it with one target."],
232
244
  ["dev", "Watch the schema and reload."],
233
245
  ["doctor [code]", "Print a target report, or one error code."],
246
+ ["driver test <driver>", "Run conformance against one driver."],
234
247
  ["ext list", "List extensions the server can install."],
235
248
  ["ext check", "Compare declared extensions with the server."],
236
249
  ["generate [name]", "Write the next migration."],