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.
- package/dist/adapters/capabilities.d.ts +32 -0
- package/dist/adapters/failure.d.ts +1 -1
- package/dist/adapters/pg/bun-sql.d.ts +53 -0
- package/dist/adapters/pg/bunsql-extra.d.ts +1 -1
- package/dist/adapters/pg/bunsql.d.ts +1 -1
- package/dist/adapters/pg/neon-extra.d.ts +18 -0
- package/dist/adapters/pg/neon.d.ts +104 -0
- package/dist/adapters/pg/no-inflight-timeout.d.ts +1 -1
- package/dist/contracts/error.d.ts +1 -1
- package/dist/dialects/pg/fn/index.d.ts +39 -1
- package/dist/dialects/pg/fn/index.js +118 -26
- package/dist/dialects/pg/index.d.ts +2 -0
- package/dist/dialects/pg/index.js +393 -18
- package/dist/dialects/pg/introspect.d.ts +11 -0
- package/dist/dialects/pg/operators.d.ts +1 -1
- package/dist/dialects/pg/ops/fragment.d.ts +119 -0
- package/dist/dialects/pg/ops/lane.d.ts +49 -0
- package/dist/dialects/pg/view/client.d.ts +14 -6
- package/dist/dialects/pg/view/index.d.ts +73 -1
- package/dist/dialects/pg/view/index.js +156 -5
- package/dist/dialects/pg/view/scratch.d.ts +8 -5
- package/dist/runtime/otel.d.ts +105 -0
- package/dist/runtime/otel.js +97 -0
- package/dist/runtime/pg/bun.js +4 -4
- package/dist/runtime/pg/neon.d.ts +38 -0
- package/dist/runtime/pg/neon.js +64 -0
- package/dist/runtime/pg/pg.js +4 -4
- package/dist/runtime/pg/pglite.js +4 -4
- package/dist/runtime/pg/postgresjs.js +4 -4
- package/dist/runtime/plan.d.ts +1 -1
- package/dist/runtime/sql-fragment.d.ts +43 -0
- package/dist/runtime/tenancy/index.js +10 -10
- package/dist/runtime/topology.d.ts +1 -1
- package/dist/runtime/traits/index.js +15 -16
- package/dist/runtime/types.d.ts +15 -1
- package/dist/runtime/validate/index.js +4 -4
- package/dist/shared/{mtaszv5a.js → 0wrea3jq.js} +102 -4
- package/dist/shared/{qq3899ht.js → 12z7aznj.js} +243 -14
- package/dist/shared/{w79hsckn.js → 14x60fbf.js} +5 -5
- package/dist/shared/{ek2wt2dz.js → 16kvjebh.js} +4 -4
- package/dist/shared/{svncdeh5.js → 195pzzzz.js} +8 -8
- package/dist/shared/{gzaveazc.js → 1d9q9cv2.js} +29 -2
- package/dist/shared/{jvd0mqag.js → 3449rcae.js} +5 -5
- package/dist/shared/{14vx95q4.js → 35q0n9tz.js} +7 -7
- package/dist/shared/3bb7wsqt.js +99 -0
- package/dist/shared/{y6njgyda.js → 3t6kw83m.js} +2 -2
- package/dist/shared/{81ebdx9p.js → 4m6hskg8.js} +4 -4
- package/dist/shared/{xhfsfkgk.js → 4vbf83xx.js} +9 -2
- package/dist/shared/{bg3rym3g.js → 63f4ksbz.js} +2 -2
- package/dist/shared/{pt94kz7f.js → 6m78c8ss.js} +1 -1
- package/dist/shared/{5e3tf63j.js → 760ppr76.js} +14 -6
- package/dist/shared/{zm0ptry0.js → 7ghwamrf.js} +1 -1
- package/dist/shared/{xnxsed62.js → 9dr2qnx7.js} +14 -14
- package/dist/shared/{h15jx9bc.js → 9dvh1dr6.js} +1 -1
- package/dist/shared/{q5c6ngn3.js → a62rb2da.js} +1 -1
- package/dist/shared/{kb2sdhfb.js → ae4j5f42.js} +17 -1
- package/dist/shared/agsfb86s.js +233 -0
- package/dist/shared/{7k9grvf6.js → b6d6p0zc.js} +5 -5
- package/dist/shared/{tbrvgw6z.js → bah9nbg3.js} +17 -16
- package/dist/shared/{5fe3kbsh.js → bnby0esn.js} +1 -1
- package/dist/shared/bsek72fg.js +225 -0
- package/dist/shared/{1w508jbr.js → bxas03mq.js} +21 -17
- package/dist/shared/{dk8v79p3.js → d5nmj7vv.js} +1 -1
- package/dist/shared/{tsvww22q.js → dpc2r7rb.js} +7 -7
- package/dist/shared/{vb6qfyve.js → e8zyaqvj.js} +2 -2
- package/dist/shared/{hyh73qk6.js → ecn8mfdq.js} +5 -5
- package/dist/shared/{gs74dbj5.js → f4jy1j7x.js} +27 -14
- package/dist/shared/{ttsqgp4p.js → fjpnhqan.js} +2 -2
- package/dist/shared/{xjk7hnn5.js → g5yc06ka.js} +2 -2
- package/dist/shared/{w72kgg4q.js → hfqmpasr.js} +6 -6
- package/dist/shared/{kr0jzbw2.js → hm5f8jby.js} +7 -7
- package/dist/shared/{dkxgzaqd.js → hqpxf4a4.js} +1 -1
- package/dist/shared/{cn957f8d.js → jebgrkeq.js} +3 -3
- package/dist/shared/{wa07eas9.js → jp36k7dp.js} +11 -11
- package/dist/shared/jx2m62cs.js +96 -0
- package/dist/shared/{sfz1ksn6.js → k86n8vq3.js} +2 -2
- package/dist/shared/{67txcrcw.js → kgwp4jdd.js} +4 -4
- package/dist/shared/{8skf0cam.js → kj9d8maq.js} +1 -1
- package/dist/shared/{aytqh5y2.js → m4xff2a6.js} +2 -2
- package/dist/shared/{zp9fmend.js → mfedzr74.js} +4 -4
- package/dist/shared/{ax7qv55k.js → mkrn359n.js} +60 -11
- package/dist/shared/{m6p12kbr.js → mnvjvqyp.js} +10 -10
- package/dist/shared/{1qa0qajz.js → mtw6jz76.js} +1 -1
- package/dist/shared/{1est4ezg.js → n05z9nwz.js} +3 -3
- package/dist/shared/{pbp1ss85.js → n0jmpgj1.js} +2 -2
- package/dist/shared/{ktz42yez.js → n41w4fbz.js} +5 -5
- package/dist/shared/{n816peh1.js → n454kcnw.js} +1 -1
- package/dist/shared/n7kg8mmx.js +61 -0
- package/dist/shared/{g6evj1j3.js → needfe47.js} +1 -1
- package/dist/shared/{2shdbn8q.js → njga14v4.js} +9 -9
- package/dist/shared/{vqrjpcqn.js → nmnsgj7x.js} +1 -1
- package/dist/shared/{b5pftnn2.js → p3xbdcvt.js} +14 -18
- package/dist/shared/{te5as7z7.js → p5nh3r8q.js} +3 -3
- package/dist/shared/{p6qc5gcp.js → pan0370z.js} +6 -6
- package/dist/shared/{79dt02vc.js → q0cqt2sp.js} +1 -1
- package/dist/shared/{5v3xf80k.js → qd9hhd8f.js} +1 -1
- package/dist/shared/{bm22fvzr.js → qfw14tna.js} +2 -2
- package/dist/shared/{9s0ypp87.js → sjk86yrx.js} +1 -1
- package/dist/shared/{3v7t1yrv.js → th3be82n.js} +2 -2
- package/dist/shared/{ed0b8k4s.js → typ3vy7t.js} +1 -1
- package/dist/shared/{vczs8gd4.js → v1wad97q.js} +2 -2
- package/dist/shared/{9628a9xt.js → vk7rag46.js} +1 -1
- package/dist/shared/{ze4hxsmy.js → w9ejzaqf.js} +1 -1
- package/dist/shared/{bz84tkzm.js → wcrheftc.js} +2 -2
- package/dist/shared/{ab9gmbwy.js → wvdjznah.js} +5 -5
- package/dist/shared/{7mnme5tn.js → wz2a78mp.js} +1 -1
- package/dist/shared/{9y3mmmh1.js → xfhe73sb.js} +1 -1
- package/dist/shared/{je4axnm8.js → z581d7ny.js} +2 -2
- package/dist/shared/{x933k9a3.js → zbqbmmrp.js} +10 -10
- package/dist/shared/{rs73fca9.js → zgex00fd.js} +6 -6
- package/dist/shared/{jznfax0y.js → zq1he88x.js} +4 -4
- package/dist/tooling/cli.js +26 -13
- package/dist/tooling/driver-run.js +4971 -0
- package/dist/tooling/driver-test.d.ts +36 -0
- package/dist/tooling/migrate/commands.d.ts +2 -2
- package/dist/tooling/migrate/index.js +9 -9
- package/dist/tooling/migrate/project.d.ts +3 -0
- package/dist/tooling/shared/03k6res6.js +210 -0
- package/dist/tooling/shared/08kemxjd.js +10 -0
- package/dist/tooling/shared/2revefqt.js +209 -0
- package/dist/tooling/shared/2wtvc7rw.js +1425 -0
- package/dist/tooling/shared/345tbc2k.js +16 -0
- package/dist/tooling/shared/3m1hkg7z.js +344 -0
- package/dist/tooling/shared/3rrw5w8f.js +81 -0
- package/dist/tooling/shared/3tq8pnb8.js +131 -0
- package/dist/tooling/shared/417zdsk7.js +194 -0
- package/dist/tooling/shared/4d2w25vw.js +40 -0
- package/dist/tooling/shared/54tqkxja.js +51 -0
- package/dist/tooling/shared/5bvw2nev.js +12 -0
- package/dist/tooling/shared/6nyfyw70.js +231 -0
- package/dist/tooling/shared/72fyg4zv.js +160 -0
- package/dist/tooling/shared/733a1tq3.js +38 -0
- package/dist/tooling/shared/7ae7rjmn.js +20 -0
- package/dist/tooling/shared/7kms6fvj.js +20 -0
- package/dist/tooling/shared/8sqrsw3s.js +49 -0
- package/dist/tooling/shared/96ps4g1z.js +32 -0
- package/dist/tooling/shared/9kazs5p6.js +195 -0
- package/dist/tooling/shared/9xzm7hjg.js +38 -0
- package/dist/tooling/shared/a6pp9d12.js +49 -0
- package/dist/tooling/shared/a7q7t4n3.js +22 -0
- package/dist/tooling/shared/aftb2mwr.js +18 -0
- package/dist/tooling/shared/bz2dqhab.js +311 -0
- package/dist/tooling/shared/cmptmb4f.js +12 -0
- package/dist/tooling/shared/ddjtfgnx.js +177 -0
- package/dist/tooling/shared/djydjpqt.js +261 -0
- package/dist/tooling/shared/dw08f3m8.js +9 -0
- package/dist/tooling/shared/dy672fz6.js +16 -0
- package/dist/tooling/shared/dzx85q70.js +66 -0
- package/dist/tooling/shared/ec71zqgt.js +270 -0
- package/dist/tooling/shared/ep8zh3bk.js +6 -0
- package/dist/tooling/shared/f9mphxej.js +3789 -0
- package/dist/tooling/shared/fb9k2qwd.js +89 -0
- package/dist/tooling/shared/g9ad4n80.js +211 -0
- package/dist/tooling/shared/gfvtj6d0.js +94 -0
- package/dist/tooling/shared/gmcf9cxf.js +294 -0
- package/dist/tooling/shared/htnaj77v.js +17 -0
- package/dist/tooling/shared/j9t5s12a.js +7 -0
- package/dist/tooling/shared/jne7b93p.js +42 -0
- package/dist/tooling/shared/ma2340rx.js +118 -0
- package/dist/tooling/shared/mtrqn2hn.js +505 -0
- package/dist/tooling/shared/n4jqhpqz.js +27 -0
- package/dist/tooling/shared/nf7jmhfa.js +20 -0
- package/dist/tooling/shared/p7f08ktn.js +332 -0
- package/dist/tooling/shared/ppnnnvj8.js +13 -0
- package/dist/tooling/shared/pqy21k24.js +312 -0
- package/dist/tooling/shared/pw8fgahx.js +69 -0
- package/dist/tooling/shared/pwsytxm5.js +17 -0
- package/dist/tooling/shared/rf83gr2d.js +94 -0
- package/dist/tooling/shared/rq5kk8j6.js +401 -0
- package/dist/tooling/shared/rs1jb051.js +12 -0
- package/dist/tooling/shared/smn6kz1p.js +157 -0
- package/dist/tooling/shared/spk1jg3r.js +1696 -0
- package/dist/tooling/shared/tn8gay14.js +143 -0
- package/dist/tooling/shared/vraj6d74.js +42 -0
- package/dist/tooling/shared/vs0t6qt8.js +64 -0
- package/dist/tooling/shared/vx86qjv8.js +150 -0
- package/dist/tooling/shared/w7qe8sj1.js +140 -0
- package/dist/tooling/shared/wt7j7nf6.js +15 -0
- package/dist/tooling/shared/wwnekq5n.js +6 -0
- package/dist/tooling/shared/xhrnjch9.js +185 -0
- package/dist/tooling/shared/xjs6zqtc.js +190 -0
- package/dist/tooling/shared/y031jct9.js +16 -0
- package/dist/tooling/shared/y5656f0e.js +233 -0
- package/dist/tooling/shared/yfr8hzhm.js +604 -0
- package/dist/tooling/shared/yk9mp7vb.js +250 -0
- package/dist/tooling/shared/yw30vnq2.js +139 -0
- package/dist/tooling/shared/z8d7ptht.js +618 -0
- package/dist/tooling/shared/zhwnfyb2.js +9 -0
- package/dist/tooling/shared/zvnhh1n0.js +198 -0
- package/dist/tooling/testing/index.js +3 -3
- package/package.json +14 -2
- package/dist/shared/y34a8714.js +0 -150
- package/dist/shared/zy8r7qvz.js +0 -116
- package/dist/shared/{ywr8hmey.js → 606g0nbf.js} +3 -3
- package/dist/shared/{rpycarcr.js → gcefca6p.js} +4 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
identityColumn2
|
|
3
|
-
} from "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
3
|
+
} from "./35q0n9tz.js";
|
|
4
4
|
import {
|
|
5
5
|
startupHash2
|
|
6
|
-
} from "./
|
|
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 "./
|
|
17
|
+
} from "./mnvjvqyp.js";
|
|
18
18
|
import {
|
|
19
19
|
assertCreateRole,
|
|
20
20
|
currentUser,
|
|
21
21
|
roleExists
|
|
22
|
-
} from "./
|
|
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 "./
|
|
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 "./
|
|
44
|
+
} from "./dpc2r7rb.js";
|
|
45
45
|
import {
|
|
46
46
|
UUIDV7_POSTGRES,
|
|
47
47
|
uuidv7NeedsPostgres
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./mss6ctgv.js";
|
|
4
4
|
import {
|
|
5
5
|
effectivePredicate
|
|
6
|
-
} from "./
|
|
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 "./
|
|
20
|
+
} from "./kgwp4jdd.js";
|
|
21
21
|
import {
|
|
22
22
|
safetyInstalled,
|
|
23
23
|
runSafety
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
refusePrototypeKey
|
|
3
|
-
} from "./
|
|
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 "./
|
|
14
|
+
} from "./kgwp4jdd.js";
|
|
15
15
|
import {
|
|
16
16
|
throwNamed2
|
|
17
17
|
} from "./52szzakm.js";
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
openClient,
|
|
9
9
|
withHttp,
|
|
10
10
|
settleCall
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./bah9nbg3.js";
|
|
12
12
|
import {
|
|
13
13
|
rejectKeys,
|
|
14
14
|
isRecord,
|
|
15
15
|
fail2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./kgwp4jdd.js";
|
|
17
17
|
import {
|
|
18
18
|
OkmError2
|
|
19
19
|
} from "./52szzakm.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./cm3w0ywp.js";
|
|
5
5
|
import {
|
|
6
6
|
PgSession
|
|
7
|
-
} from "./
|
|
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 "./
|
|
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 "./
|
|
8
|
+
} from "./zbqbmmrp.js";
|
|
9
9
|
import {
|
|
10
10
|
resetSession2,
|
|
11
11
|
refuseWhenLost2
|
|
12
|
-
} from "./
|
|
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 "./
|
|
21
|
+
} from "./q0cqt2sp.js";
|
|
22
22
|
import {
|
|
23
23
|
WireSession
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./mtw6jz76.js";
|
|
25
25
|
import {
|
|
26
26
|
rejectClosed,
|
|
27
27
|
runCall
|
|
28
|
-
} from "./
|
|
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) {
|
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
} from "./cm3w0ywp.js";
|
|
4
4
|
import {
|
|
5
5
|
noTimeout
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./q0cqt2sp.js";
|
|
7
7
|
import {
|
|
8
8
|
noticeBuffer,
|
|
9
9
|
WireSession
|
|
10
|
-
} from "./
|
|
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 "./
|
|
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
|
|
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("./
|
|
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("./
|
|
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("./
|
|
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("./
|
|
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("./
|
|
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"./
|
|
1
|
+
import"./12z7aznj.js";
|
|
2
2
|
import"./n442h54c.js";
|
|
3
|
-
import"./
|
|
3
|
+
import"./35q0n9tz.js";
|
|
4
4
|
import {
|
|
5
5
|
projectPath,
|
|
6
6
|
loadConfig
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./f4jy1j7x.js";
|
|
8
8
|
import {
|
|
9
9
|
listTargets
|
|
10
|
-
} from "./
|
|
11
|
-
import"./
|
|
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("./
|
|
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 "./
|
|
13
|
+
} from "./kgwp4jdd.js";
|
|
14
14
|
import {
|
|
15
15
|
isOperator,
|
|
16
16
|
operatorName,
|
package/dist/tooling/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import"../shared/
|
|
1
|
+
import"../shared/12z7aznj.js";
|
|
2
2
|
import"../shared/n442h54c.js";
|
|
3
|
-
import"../shared/
|
|
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/
|
|
12
|
+
} from "../shared/f4jy1j7x.js";
|
|
13
13
|
import {
|
|
14
14
|
sessionFailure
|
|
15
|
-
} from "../shared/
|
|
16
|
-
import"../shared/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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."],
|