@nicia-ai/typegraph 0.65.0 → 0.66.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/CHANGELOG.md +17 -0
- package/dist/{atomic-mutation-program-BznZQ06C.d.ts → atomic-mutation-program-BhP75Qn0.d.ts} +1 -1
- package/dist/{atomic-mutation-program-Bfu5z-je.d.cts → atomic-mutation-program-DMdmc4s0.d.cts} +1 -1
- package/dist/backend/drizzle/engine/index.cjs +13 -13
- package/dist/backend/drizzle/engine/index.d.cts +9 -9
- package/dist/backend/drizzle/engine/index.d.ts +9 -9
- package/dist/backend/drizzle/engine/index.js +8 -8
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/index.cjs +91 -91
- package/dist/backend/index.d.cts +7 -7
- package/dist/backend/index.d.ts +7 -7
- package/dist/backend/index.js +8 -8
- package/dist/backend/postgres/index.cjs +23 -23
- package/dist/backend/postgres/index.d.cts +8 -8
- package/dist/backend/postgres/index.d.ts +8 -8
- package/dist/backend/postgres/index.js +8 -8
- package/dist/backend/postgres/pglite-store.cjs +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +6 -6
- package/dist/backend/postgres/pglite-store.d.ts +6 -6
- package/dist/backend/postgres/pglite-store.js +1 -1
- package/dist/backend/postgres/pglite.cjs +10 -10
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +9 -9
- package/dist/backend/sqlite/index.cjs +21 -21
- package/dist/backend/sqlite/index.d.cts +7 -7
- package/dist/backend/sqlite/index.d.ts +7 -7
- package/dist/backend/sqlite/index.js +8 -8
- package/dist/backend/sqlite/libsql.cjs +14 -14
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +8 -8
- package/dist/backend/sqlite/local-store.cjs +1 -1
- package/dist/backend/sqlite/local-store.d.cts +6 -6
- package/dist/backend/sqlite/local-store.d.ts +6 -6
- package/dist/backend/sqlite/local-store.js +1 -1
- package/dist/backend/sqlite/local.cjs +10 -10
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +9 -9
- package/dist/{chunk-337ONI2I.js → chunk-3SUZXB5X.js} +146 -80
- package/dist/chunk-3SUZXB5X.js.map +1 -0
- package/dist/{chunk-4VTCIEK3.js → chunk-4TQOIBWH.js} +3 -3
- package/dist/{chunk-4VTCIEK3.js.map → chunk-4TQOIBWH.js.map} +1 -1
- package/dist/{chunk-JRWKRBI5.cjs → chunk-5JOCIMQ3.cjs} +6 -6
- package/dist/{chunk-JRWKRBI5.cjs.map → chunk-5JOCIMQ3.cjs.map} +1 -1
- package/dist/{chunk-BWQA3POT.cjs → chunk-6B3LQUYG.cjs} +206 -138
- package/dist/chunk-6B3LQUYG.cjs.map +1 -0
- package/dist/{chunk-RQPCUHIH.js → chunk-6ECNYQDW.js} +3 -3
- package/dist/{chunk-RQPCUHIH.js.map → chunk-6ECNYQDW.js.map} +1 -1
- package/dist/{chunk-OLB75LRQ.js → chunk-6GKKAQMW.js} +5 -5
- package/dist/{chunk-OLB75LRQ.js.map → chunk-6GKKAQMW.js.map} +1 -1
- package/dist/{chunk-OC5ROP7V.cjs → chunk-6JRVV2SS.cjs} +8 -2
- package/dist/chunk-6JRVV2SS.cjs.map +1 -0
- package/dist/{chunk-JERQGJKG.cjs → chunk-732VS5PW.cjs} +18 -18
- package/dist/{chunk-JERQGJKG.cjs.map → chunk-732VS5PW.cjs.map} +1 -1
- package/dist/{chunk-DSX3P4S5.cjs → chunk-76OB5RSH.cjs} +6 -6
- package/dist/{chunk-DSX3P4S5.cjs.map → chunk-76OB5RSH.cjs.map} +1 -1
- package/dist/{chunk-DHRLOQLQ.cjs → chunk-7LQTDGV5.cjs} +11 -11
- package/dist/{chunk-DHRLOQLQ.cjs.map → chunk-7LQTDGV5.cjs.map} +1 -1
- package/dist/{chunk-Q25QYSOH.js → chunk-7YJHUY4T.js} +9 -9
- package/dist/{chunk-Q25QYSOH.js.map → chunk-7YJHUY4T.js.map} +1 -1
- package/dist/{chunk-BBOMNH44.js → chunk-BABP4D5B.js} +3 -3
- package/dist/{chunk-BBOMNH44.js.map → chunk-BABP4D5B.js.map} +1 -1
- package/dist/{chunk-EVGZ2TRQ.js → chunk-BE75G3M5.js} +3 -3
- package/dist/{chunk-EVGZ2TRQ.js.map → chunk-BE75G3M5.js.map} +1 -1
- package/dist/{chunk-FXGZT3WO.cjs → chunk-BX42F7IJ.cjs} +41 -41
- package/dist/{chunk-FXGZT3WO.cjs.map → chunk-BX42F7IJ.cjs.map} +1 -1
- package/dist/{chunk-VROJKWZ7.js → chunk-C3HNC3S6.js} +5 -5
- package/dist/{chunk-VROJKWZ7.js.map → chunk-C3HNC3S6.js.map} +1 -1
- package/dist/{chunk-G6T23JU7.js → chunk-CDKNGCE7.js} +3 -3
- package/dist/{chunk-G6T23JU7.js.map → chunk-CDKNGCE7.js.map} +1 -1
- package/dist/{chunk-BNTJ5YFO.cjs → chunk-EACDHXJL.cjs} +4 -4
- package/dist/{chunk-BNTJ5YFO.cjs.map → chunk-EACDHXJL.cjs.map} +1 -1
- package/dist/{chunk-SNDJUTMB.cjs → chunk-EBQX7MYL.cjs} +72 -72
- package/dist/{chunk-SNDJUTMB.cjs.map → chunk-EBQX7MYL.cjs.map} +1 -1
- package/dist/{chunk-GKSAEUX6.js → chunk-FXOFJ4FS.js} +7 -7
- package/dist/{chunk-GKSAEUX6.js.map → chunk-FXOFJ4FS.js.map} +1 -1
- package/dist/{chunk-ZOWRACZQ.cjs → chunk-G7OKJDMG.cjs} +5 -5
- package/dist/{chunk-ZOWRACZQ.cjs.map → chunk-G7OKJDMG.cjs.map} +1 -1
- package/dist/{chunk-VZRXXABW.js → chunk-HSLP6CVG.js} +5 -5
- package/dist/{chunk-VZRXXABW.js.map → chunk-HSLP6CVG.js.map} +1 -1
- package/dist/{chunk-MKJPBSID.cjs → chunk-I7SBZJI2.cjs} +4 -4
- package/dist/{chunk-MKJPBSID.cjs.map → chunk-I7SBZJI2.cjs.map} +1 -1
- package/dist/{chunk-H346QK3V.cjs → chunk-K7YACILO.cjs} +9 -9
- package/dist/{chunk-H346QK3V.cjs.map → chunk-K7YACILO.cjs.map} +1 -1
- package/dist/{chunk-L2GBVYRU.cjs → chunk-MGCPSR4C.cjs} +11 -11
- package/dist/{chunk-L2GBVYRU.cjs.map → chunk-MGCPSR4C.cjs.map} +1 -1
- package/dist/{chunk-KDNRACRG.cjs → chunk-MRUOOAIQ.cjs} +4 -4
- package/dist/{chunk-KDNRACRG.cjs.map → chunk-MRUOOAIQ.cjs.map} +1 -1
- package/dist/{chunk-PFXNQFFY.js → chunk-MUEPEWMQ.js} +67 -8
- package/dist/chunk-MUEPEWMQ.js.map +1 -0
- package/dist/{chunk-HTSJTWUT.js → chunk-OF63ZHSD.js} +4 -4
- package/dist/{chunk-HTSJTWUT.js.map → chunk-OF63ZHSD.js.map} +1 -1
- package/dist/{chunk-NGA3THGU.cjs → chunk-QR7W37HG.cjs} +14 -14
- package/dist/{chunk-NGA3THGU.cjs.map → chunk-QR7W37HG.cjs.map} +1 -1
- package/dist/{chunk-QFEO4M5W.js → chunk-RTPMG6LQ.js} +11 -11
- package/dist/{chunk-QFEO4M5W.js.map → chunk-RTPMG6LQ.js.map} +1 -1
- package/dist/{chunk-PFD4NUYV.js → chunk-SSDHR2C2.js} +3 -3
- package/dist/{chunk-PFD4NUYV.js.map → chunk-SSDHR2C2.js.map} +1 -1
- package/dist/{chunk-THK3SCQA.js → chunk-SYXTWPX6.js} +5 -5
- package/dist/{chunk-THK3SCQA.js.map → chunk-SYXTWPX6.js.map} +1 -1
- package/dist/{chunk-XSLQYGNR.cjs → chunk-T3VU3YRQ.cjs} +69 -69
- package/dist/{chunk-XSLQYGNR.cjs.map → chunk-T3VU3YRQ.cjs.map} +1 -1
- package/dist/{chunk-MIBWA6HX.js → chunk-TR7QTODF.js} +213 -33
- package/dist/chunk-TR7QTODF.js.map +1 -0
- package/dist/{chunk-AD3NLSV5.js → chunk-TU22BFMP.js} +8 -2
- package/dist/chunk-TU22BFMP.js.map +1 -0
- package/dist/{chunk-WTMSUIRO.js → chunk-UFKYMQJ5.js} +3 -3
- package/dist/{chunk-WTMSUIRO.js.map → chunk-UFKYMQJ5.js.map} +1 -1
- package/dist/{chunk-35LDKSMM.cjs → chunk-VNJMM2QQ.cjs} +30 -30
- package/dist/{chunk-35LDKSMM.cjs.map → chunk-VNJMM2QQ.cjs.map} +1 -1
- package/dist/{chunk-53ZEBIMD.js → chunk-WB55URNM.js} +6 -6
- package/dist/{chunk-53ZEBIMD.js.map → chunk-WB55URNM.js.map} +1 -1
- package/dist/{chunk-D2JPOFRZ.cjs → chunk-WY3IFEKV.cjs} +191 -191
- package/dist/{chunk-D2JPOFRZ.cjs.map → chunk-WY3IFEKV.cjs.map} +1 -1
- package/dist/{chunk-3KWF25MF.cjs → chunk-XQNKN3UF.cjs} +305 -246
- package/dist/chunk-XQNKN3UF.cjs.map +1 -0
- package/dist/{chunk-3RSFLZ7A.cjs → chunk-Y4X6ODVY.cjs} +943 -763
- package/dist/chunk-Y4X6ODVY.cjs.map +1 -0
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/{ddl-DvW9aobX.d.ts → ddl-2q7xLM1X.d.ts} +3 -3
- package/dist/{ddl-BjuXbPfw.d.cts → ddl-D_09BfbN.d.cts} +3 -3
- package/dist/graph-extension/index.d.cts +2 -2
- package/dist/graph-extension/index.d.ts +2 -2
- package/dist/graph-merge/index.cjs +156 -156
- package/dist/graph-merge/index.d.cts +7 -7
- package/dist/graph-merge/index.d.ts +7 -7
- package/dist/graph-merge/index.js +14 -14
- package/dist/{graph-templates-1vMqlPsu.d.cts → graph-templates-B5Q7oYAA.d.cts} +2 -2
- package/dist/{graph-templates-Y52w16dH.d.ts → graph-templates-D9N-Z9kw.d.ts} +2 -2
- package/dist/index.cjs +99 -99
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +18 -18
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/{ingestion-import-target-CCKeXZbW.d.ts → ingestion-import-target-B8EU6ug2.d.ts} +1 -1
- package/dist/{ingestion-import-target-774QRgkF.d.cts → ingestion-import-target-C5sHNFJF.d.cts} +1 -1
- package/dist/interchange/index.cjs +34 -34
- package/dist/interchange/index.d.cts +7 -7
- package/dist/interchange/index.d.ts +7 -7
- package/dist/interchange/index.js +11 -11
- package/dist/{local-store-impl-3E4VLFCI.cjs → local-store-impl-J6TJG45N.cjs} +22 -22
- package/dist/{local-store-impl-3E4VLFCI.cjs.map → local-store-impl-J6TJG45N.cjs.map} +1 -1
- package/dist/{local-store-impl-DFKS7QTV.js → local-store-impl-XKWR46WQ.js} +18 -18
- package/dist/{local-store-impl-DFKS7QTV.js.map → local-store-impl-XKWR46WQ.js.map} +1 -1
- package/dist/{pglite-store-impl-T75O3LVQ.cjs → pglite-store-impl-KXD5VWC5.cjs} +22 -22
- package/dist/{pglite-store-impl-T75O3LVQ.cjs.map → pglite-store-impl-KXD5VWC5.cjs.map} +1 -1
- package/dist/{pglite-store-impl-N63GGBU2.js → pglite-store-impl-LRZ4TO3H.js} +18 -18
- package/dist/{pglite-store-impl-N63GGBU2.js.map → pglite-store-impl-LRZ4TO3H.js.map} +1 -1
- package/dist/{postgres-2FYdVYCm.d.cts → postgres-BIm6TDfF.d.cts} +3 -3
- package/dist/{postgres-C9gitL71.d.ts → postgres-CRRB2qzy.d.ts} +3 -3
- package/dist/{postgres-BONrXHb4.d.cts → postgres-DOBXcZVg.d.cts} +1 -1
- package/dist/{postgres-DAFRdnTr.d.ts → postgres-DhZixg92.d.ts} +1 -1
- package/dist/{profile-Bmcg07Ki.d.cts → profile-CjAffcQt.d.cts} +2 -2
- package/dist/{profile-CAD65CqS.d.ts → profile-DVd70NA-.d.ts} +2 -2
- package/dist/profiler/index.d.cts +8 -8
- package/dist/profiler/index.d.ts +8 -8
- package/dist/provenance/index.cjs +22 -22
- package/dist/provenance/index.d.cts +6 -6
- package/dist/provenance/index.d.ts +6 -6
- package/dist/provenance/index.js +6 -6
- package/dist/{repair-validity-windows-CinP91t7.d.cts → repair-validity-windows-CpP_GpIx.d.cts} +1 -1
- package/dist/{repair-validity-windows-BJz4nffP.d.ts → repair-validity-windows-lfe275bY.d.ts} +1 -1
- package/dist/{resolve-DgOSlXx_.d.ts → resolve-CoYqHqno.d.cts} +7 -2
- package/dist/{resolve-DQXSEN_A.d.cts → resolve-DV0Iposp.d.ts} +7 -2
- package/dist/schema/index.cjs +37 -37
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +7 -7
- package/dist/{searchable-DMdCwkXO.d.cts → searchable-C7Xt6g45.d.cts} +1 -1
- package/dist/{searchable-BPRF0Bah.d.ts → searchable-KKXrPet3.d.ts} +1 -1
- package/dist/{sqlite-DcDAAYow.d.ts → sqlite-BNwQ5pd7.d.ts} +3 -3
- package/dist/{sqlite-DgbYa-1Y.d.cts → sqlite-BkQM9ZeI.d.cts} +1 -1
- package/dist/{sqlite-UlG5prJQ.d.ts → sqlite-CcCSeXGg.d.ts} +1 -1
- package/dist/{sqlite-Co_uIpfs.d.cts → sqlite-DX9H3L7z.d.cts} +3 -3
- package/dist/{store-HxoFyQMu.d.cts → store-3nfPQK5j.d.cts} +30 -7
- package/dist/{store-C9T1c9Az.d.ts → store-C8ZPl7OW.d.ts} +30 -7
- package/dist/{types-CRCyg1fJ.d.cts → types-BynPp5kU.d.cts} +18 -2
- package/dist/{types-CRCyg1fJ.d.ts → types-BynPp5kU.d.ts} +18 -2
- package/dist/{types-Dg_prBqC.d.ts → types-C9YwrkSe.d.ts} +1 -1
- package/dist/{types-B5AUesS1.d.cts → types-JG-4CG6P.d.cts} +1 -1
- package/dist/{where-gRyc3jj_.d.cts → where-D1gBDqQ_.d.cts} +1 -1
- package/dist/{where-D-NDKMPw.d.ts → where-D2GqMFp-.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-337ONI2I.js.map +0 -1
- package/dist/chunk-3KWF25MF.cjs.map +0 -1
- package/dist/chunk-3RSFLZ7A.cjs.map +0 -1
- package/dist/chunk-AD3NLSV5.js.map +0 -1
- package/dist/chunk-BWQA3POT.cjs.map +0 -1
- package/dist/chunk-MIBWA6HX.js.map +0 -1
- package/dist/chunk-OC5ROP7V.cjs.map +0 -1
- package/dist/chunk-PFXNQFFY.js.map +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk732VS5PW_cjs = require('./chunk-732VS5PW.cjs');
|
|
4
4
|
require('./chunk-QCD5JKU4.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkXQNKN3UF_cjs = require('./chunk-XQNKN3UF.cjs');
|
|
6
6
|
require('./chunk-DCYIUKIM.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkY4X6ODVY_cjs = require('./chunk-Y4X6ODVY.cjs');
|
|
8
8
|
require('./chunk-CBHZX3G5.cjs');
|
|
9
9
|
require('./chunk-FZKXBPTS.cjs');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-76OB5RSH.cjs');
|
|
11
11
|
require('./chunk-2XQYRCPM.cjs');
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-EACDHXJL.cjs');
|
|
13
|
+
require('./chunk-WY3IFEKV.cjs');
|
|
14
|
+
require('./chunk-VNJMM2QQ.cjs');
|
|
15
|
+
require('./chunk-I7SBZJI2.cjs');
|
|
16
|
+
require('./chunk-G7OKJDMG.cjs');
|
|
17
17
|
require('./chunk-R255UE5U.cjs');
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-MRUOOAIQ.cjs');
|
|
19
|
+
require('./chunk-BX42F7IJ.cjs');
|
|
20
20
|
require('./chunk-6YKISECL.cjs');
|
|
21
21
|
require('./chunk-ICOTLZBV.cjs');
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
26
|
-
var
|
|
22
|
+
require('./chunk-EBQX7MYL.cjs');
|
|
23
|
+
require('./chunk-6B3LQUYG.cjs');
|
|
24
|
+
require('./chunk-5JOCIMQ3.cjs');
|
|
25
|
+
require('./chunk-7LQTDGV5.cjs');
|
|
26
|
+
var chunk6JRVV2SS_cjs = require('./chunk-6JRVV2SS.cjs');
|
|
27
27
|
require('./chunk-7D2ZLF4O.cjs');
|
|
28
28
|
require('./chunk-5ICDVLI3.cjs');
|
|
29
29
|
require('./chunk-L4L4AV6F.cjs');
|
|
@@ -58,8 +58,8 @@ function withoutSchemaOverride(schemaManagement) {
|
|
|
58
58
|
return rest;
|
|
59
59
|
}
|
|
60
60
|
async function createLocalSqliteStoreImpl(graph, options) {
|
|
61
|
-
const tables = options.store?.schema === void 0 ? void 0 :
|
|
62
|
-
const { backend } =
|
|
61
|
+
const tables = options.store?.schema === void 0 ? void 0 : chunkXQNKN3UF_cjs.createSqliteTables(options.store.schema.tables);
|
|
62
|
+
const { backend } = chunk732VS5PW_cjs.createLocalSqliteBackend({
|
|
63
63
|
...options.path === void 0 ? {} : { path: options.path },
|
|
64
64
|
...options.pragmas === void 0 ? {} : { pragmas: options.pragmas },
|
|
65
65
|
...options.capabilities === void 0 ? {} : { capabilities: options.capabilities },
|
|
@@ -67,7 +67,7 @@ async function createLocalSqliteStoreImpl(graph, options) {
|
|
|
67
67
|
...tables === void 0 ? {} : { tables }
|
|
68
68
|
});
|
|
69
69
|
try {
|
|
70
|
-
const [store] = await
|
|
70
|
+
const [store] = await chunkY4X6ODVY_cjs.createStoreWithSchema(graph, backend, {
|
|
71
71
|
...options.store,
|
|
72
72
|
// The type already excludes `schema` here; the runtime strip guards
|
|
73
73
|
// untyped callers, so the provisioned schema (or the default tables)
|
|
@@ -76,10 +76,10 @@ async function createLocalSqliteStoreImpl(graph, options) {
|
|
|
76
76
|
});
|
|
77
77
|
return store;
|
|
78
78
|
} catch (error) {
|
|
79
|
-
return
|
|
79
|
+
return chunk6JRVV2SS_cjs.closeAfterFailure(backend, error);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
exports.createLocalSqliteStoreImpl = createLocalSqliteStoreImpl;
|
|
84
|
-
//# sourceMappingURL=local-store-impl-
|
|
85
|
-
//# sourceMappingURL=local-store-impl-
|
|
84
|
+
//# sourceMappingURL=local-store-impl-J6TJG45N.cjs.map
|
|
85
|
+
//# sourceMappingURL=local-store-impl-J6TJG45N.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":["createSqliteTables","createLocalSqliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,oCAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAIC,0CAAA,CAAyB;AAAA,IAC3C,GAAI,QAAQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAC3B,EAAC,GACD,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACvC,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-
|
|
1
|
+
{"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":["createSqliteTables","createLocalSqliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,g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.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(options.fulltext === undefined ? {} : { fulltext: options.fulltext }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { createLocalSqliteBackend } from './chunk-
|
|
1
|
+
import { createLocalSqliteBackend } from './chunk-HSLP6CVG.js';
|
|
2
2
|
import './chunk-H4FY6OZK.js';
|
|
3
|
-
import { createSqliteTables } from './chunk-
|
|
3
|
+
import { createSqliteTables } from './chunk-MUEPEWMQ.js';
|
|
4
4
|
import './chunk-DX6DIU2S.js';
|
|
5
|
-
import { createStoreWithSchema } from './chunk-
|
|
5
|
+
import { createStoreWithSchema } from './chunk-TR7QTODF.js';
|
|
6
6
|
import './chunk-JVWXWAV5.js';
|
|
7
7
|
import './chunk-D2DMFIH2.js';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-OF63ZHSD.js';
|
|
9
9
|
import './chunk-XELE7ZOX.js';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
10
|
+
import './chunk-BABP4D5B.js';
|
|
11
|
+
import './chunk-RTPMG6LQ.js';
|
|
12
|
+
import './chunk-FXOFJ4FS.js';
|
|
13
|
+
import './chunk-6ECNYQDW.js';
|
|
14
|
+
import './chunk-CDKNGCE7.js';
|
|
15
15
|
import './chunk-N535PWMA.js';
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
16
|
+
import './chunk-UFKYMQJ5.js';
|
|
17
|
+
import './chunk-WB55URNM.js';
|
|
18
18
|
import './chunk-RFMSZ7CF.js';
|
|
19
19
|
import './chunk-Q2SPDS3B.js';
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
24
|
-
import { closeAfterFailure } from './chunk-
|
|
20
|
+
import './chunk-SYXTWPX6.js';
|
|
21
|
+
import './chunk-3SUZXB5X.js';
|
|
22
|
+
import './chunk-4TQOIBWH.js';
|
|
23
|
+
import './chunk-BE75G3M5.js';
|
|
24
|
+
import { closeAfterFailure } from './chunk-TU22BFMP.js';
|
|
25
25
|
import './chunk-NMRLVAVN.js';
|
|
26
26
|
import './chunk-OXJNL2PW.js';
|
|
27
27
|
import './chunk-CY657YYY.js';
|
|
@@ -79,5 +79,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export { createLocalSqliteStoreImpl };
|
|
82
|
-
//# sourceMappingURL=local-store-impl-
|
|
83
|
-
//# sourceMappingURL=local-store-impl-
|
|
82
|
+
//# sourceMappingURL=local-store-impl-XKWR46WQ.js.map
|
|
83
|
+
//# sourceMappingURL=local-store-impl-XKWR46WQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,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KWR46WQ.js","sourcesContent":["/**\n * `createLocalSqliteStore`'s implementation body, loaded behind a dynamic\n * import from `./local-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(options.fulltext === undefined ? {} : { fulltext: options.fulltext }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkMGCPSR4C_cjs = require('./chunk-MGCPSR4C.cjs');
|
|
4
|
+
var chunkXQNKN3UF_cjs = require('./chunk-XQNKN3UF.cjs');
|
|
5
5
|
require('./chunk-DCYIUKIM.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkY4X6ODVY_cjs = require('./chunk-Y4X6ODVY.cjs');
|
|
7
7
|
require('./chunk-FZKXBPTS.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-76OB5RSH.cjs');
|
|
9
9
|
require('./chunk-2XQYRCPM.cjs');
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-EACDHXJL.cjs');
|
|
11
|
+
require('./chunk-WY3IFEKV.cjs');
|
|
12
|
+
require('./chunk-VNJMM2QQ.cjs');
|
|
13
|
+
require('./chunk-I7SBZJI2.cjs');
|
|
14
|
+
require('./chunk-G7OKJDMG.cjs');
|
|
15
15
|
require('./chunk-R255UE5U.cjs');
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
16
|
+
require('./chunk-MRUOOAIQ.cjs');
|
|
17
|
+
require('./chunk-BX42F7IJ.cjs');
|
|
18
18
|
require('./chunk-6YKISECL.cjs');
|
|
19
19
|
require('./chunk-ICOTLZBV.cjs');
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
24
|
-
var
|
|
20
|
+
require('./chunk-EBQX7MYL.cjs');
|
|
21
|
+
require('./chunk-6B3LQUYG.cjs');
|
|
22
|
+
require('./chunk-5JOCIMQ3.cjs');
|
|
23
|
+
require('./chunk-7LQTDGV5.cjs');
|
|
24
|
+
var chunk6JRVV2SS_cjs = require('./chunk-6JRVV2SS.cjs');
|
|
25
25
|
require('./chunk-7D2ZLF4O.cjs');
|
|
26
26
|
require('./chunk-5ICDVLI3.cjs');
|
|
27
27
|
require('./chunk-L4L4AV6F.cjs');
|
|
@@ -56,15 +56,15 @@ function withoutSchemaOverride(schemaManagement) {
|
|
|
56
56
|
return rest;
|
|
57
57
|
}
|
|
58
58
|
async function createLocalPgliteStoreImpl(graph, options) {
|
|
59
|
-
const tables = options.store?.schema === void 0 ? void 0 :
|
|
60
|
-
const { backend } = await
|
|
59
|
+
const tables = options.store?.schema === void 0 ? void 0 : chunkXQNKN3UF_cjs.createPostgresTables(options.store.schema.tables);
|
|
60
|
+
const { backend } = await chunkMGCPSR4C_cjs.createLocalPgliteBackend({
|
|
61
61
|
...options.dataDir === void 0 ? {} : { dataDir: options.dataDir },
|
|
62
62
|
...options.vector === false ? { vector: false } : {},
|
|
63
63
|
...options.fulltext === void 0 ? {} : { fulltext: options.fulltext },
|
|
64
64
|
...tables === void 0 ? {} : { tables }
|
|
65
65
|
});
|
|
66
66
|
try {
|
|
67
|
-
const [store] = await
|
|
67
|
+
const [store] = await chunkY4X6ODVY_cjs.createStoreWithSchema(graph, backend, {
|
|
68
68
|
...options.store,
|
|
69
69
|
// The type already excludes `schema` here; the runtime strip guards
|
|
70
70
|
// untyped callers, so the provisioned schema (or the default tables)
|
|
@@ -73,10 +73,10 @@ async function createLocalPgliteStoreImpl(graph, options) {
|
|
|
73
73
|
});
|
|
74
74
|
return store;
|
|
75
75
|
} catch (error) {
|
|
76
|
-
return
|
|
76
|
+
return chunk6JRVV2SS_cjs.closeAfterFailure(backend, error);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
exports.createLocalPgliteStoreImpl = createLocalPgliteStoreImpl;
|
|
81
|
-
//# sourceMappingURL=pglite-store-impl-
|
|
82
|
-
//# sourceMappingURL=pglite-store-impl-
|
|
81
|
+
//# sourceMappingURL=pglite-store-impl-KXD5VWC5.cjs.map
|
|
82
|
+
//# sourceMappingURL=pglite-store-impl-KXD5VWC5.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/backend/postgres/pglite-store-impl.ts"],"names":["createPostgresTables","createLocalPgliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,sCAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAMC,0CAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store-impl-
|
|
1
|
+
{"version":3,"sources":["../src/backend/postgres/pglite-store-impl.ts"],"names":["createPostgresTables","createLocalPgliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,sCAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAMC,0CAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store-impl-KXD5VWC5.cjs","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalPgliteStoreOptions } from \"./pglite-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\n ...(options.fulltext === undefined ? {} : { fulltext: options.fulltext }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { createLocalPgliteBackend } from './chunk-
|
|
2
|
-
import { createPostgresTables } from './chunk-
|
|
1
|
+
import { createLocalPgliteBackend } from './chunk-C3HNC3S6.js';
|
|
2
|
+
import { createPostgresTables } from './chunk-MUEPEWMQ.js';
|
|
3
3
|
import './chunk-DX6DIU2S.js';
|
|
4
|
-
import { createStoreWithSchema } from './chunk-
|
|
4
|
+
import { createStoreWithSchema } from './chunk-TR7QTODF.js';
|
|
5
5
|
import './chunk-D2DMFIH2.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-OF63ZHSD.js';
|
|
7
7
|
import './chunk-XELE7ZOX.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
8
|
+
import './chunk-BABP4D5B.js';
|
|
9
|
+
import './chunk-RTPMG6LQ.js';
|
|
10
|
+
import './chunk-FXOFJ4FS.js';
|
|
11
|
+
import './chunk-6ECNYQDW.js';
|
|
12
|
+
import './chunk-CDKNGCE7.js';
|
|
13
13
|
import './chunk-N535PWMA.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import './chunk-UFKYMQJ5.js';
|
|
15
|
+
import './chunk-WB55URNM.js';
|
|
16
16
|
import './chunk-RFMSZ7CF.js';
|
|
17
17
|
import './chunk-Q2SPDS3B.js';
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import { closeAfterFailure } from './chunk-
|
|
18
|
+
import './chunk-SYXTWPX6.js';
|
|
19
|
+
import './chunk-3SUZXB5X.js';
|
|
20
|
+
import './chunk-4TQOIBWH.js';
|
|
21
|
+
import './chunk-BE75G3M5.js';
|
|
22
|
+
import { closeAfterFailure } from './chunk-TU22BFMP.js';
|
|
23
23
|
import './chunk-NMRLVAVN.js';
|
|
24
24
|
import './chunk-OXJNL2PW.js';
|
|
25
25
|
import './chunk-CY657YYY.js';
|
|
@@ -76,5 +76,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export { createLocalPgliteStoreImpl };
|
|
79
|
-
//# sourceMappingURL=pglite-store-impl-
|
|
80
|
-
//# sourceMappingURL=pglite-store-impl-
|
|
79
|
+
//# sourceMappingURL=pglite-store-impl-LRZ4TO3H.js.map
|
|
80
|
+
//# sourceMappingURL=pglite-store-impl-LRZ4TO3H.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/backend/postgres/pglite-store-impl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACA,oBAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAM,wBAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,QAAQ,QAAA,KAAa,MAAA,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AAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAM,qBAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAO,iBAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store-impl-LRZ4TO3H.js","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalPgliteStoreOptions } from \"./pglite-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\n ...(options.fulltext === undefined ? {} : { fulltext: options.fulltext }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SchemaProvisioning, d as FulltextStrategy, V as VectorStrategy, B as BundledBackendCapabilityOverrides, A as AdapterBackend } from './types-
|
|
2
|
-
import { S as SerializedResourceDeclaration, a as SqlEngineProfile } from './profile-
|
|
3
|
-
import { a as PostgresTables } from './postgres-
|
|
1
|
+
import { S as SchemaProvisioning, d as FulltextStrategy, V as VectorStrategy, B as BundledBackendCapabilityOverrides, A as AdapterBackend } from './types-BynPp5kU.cjs';
|
|
2
|
+
import { S as SerializedResourceDeclaration, a as SqlEngineProfile } from './profile-CjAffcQt.cjs';
|
|
3
|
+
import { a as PostgresTables } from './postgres-DOBXcZVg.cjs';
|
|
4
4
|
import { A as AnyPgDatabase, a as AnyPgTransaction } from './postgres-execution-fKW0qRiN.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SchemaProvisioning, d as FulltextStrategy, V as VectorStrategy, B as BundledBackendCapabilityOverrides, A as AdapterBackend } from './types-
|
|
2
|
-
import { S as SerializedResourceDeclaration, a as SqlEngineProfile } from './profile-
|
|
3
|
-
import { a as PostgresTables } from './postgres-
|
|
1
|
+
import { S as SchemaProvisioning, d as FulltextStrategy, V as VectorStrategy, B as BundledBackendCapabilityOverrides, A as AdapterBackend } from './types-BynPp5kU.js';
|
|
2
|
+
import { S as SerializedResourceDeclaration, a as SqlEngineProfile } from './profile-DVd70NA-.js';
|
|
3
|
+
import { a as PostgresTables } from './postgres-DhZixg92.js';
|
|
4
4
|
import { A as AnyPgDatabase, a as AnyPgTransaction } from './postgres-execution-fKW0qRiN.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dV as SqlFragment, aZ as Cardinality, N as NodeInsertClaim, m as InsertEdgeParams, E as EdgeConvergenceMatch, l as SchemaWriteFenceParams, ek as UpsertFulltextParams, bG as DeleteFulltextParams, ej as UpsertFulltextBatchParams, bF as DeleteFulltextBatchParams, cw as FulltextSearchParams, cL as HybridSearchParams, j as InsertNodeParams, dc as ManagedNodeCreatePlan, ed as UpdateNodeParams, b8 as CompareAndSetNodeParams, ee as UpdateNodeSetParams, dI as ResolvedNodeUpdateBatchParams, bH as DeleteNodeParams, cG as HardDeleteNodeParams, o as ClaimEdgeCardinalityParams, ec as UpdateEdgeParams, bC as DeleteEdgeParams, bD as DeleteEdgesBatchParams, cF as HardDeleteEdgeParams, bt as CountEdgesFromParams, bW as EdgeExistsBetweenParams, cq as FindEdgesConnectedToParams, cr as FindNodesByKindParams, bu as CountNodesByKindParams, cp as FindEdgesByKindParams, aO as FindEdgesByEndpointSetParams, co as FindEdgesByHeterogeneousEndpointSetParams, bs as CountEdgesByKindParams, cZ as InsertUniqueParams, bI as DeleteUniqueParams, cI as HardDeleteUniquesByNodeIdsParams, cH as HardDeleteUniquesByConcreteKindParams, b2 as CheckUniqueParams, b1 as CheckUniqueBatchParams, dn as PurgeEdgeClaimsParams, F as FenceSql, cY as InsertSchemaParams, dt as RecordContributionMaterializationParams, bi as ContributionMaterializationIdentity, s as SqlDialect, d as FulltextStrategy, V as VectorStrategy, hN as WriteFenceTarget, hO as SchemaWriteTransactionBackend, b9 as CompiledRowsSql, W as WriteFencePlan, f as SchemaVersionRow, ab as SerializedSchema, e1 as TableContribution, du as RecordIndexMaterializationParams, dv as RecordKindRemovalParams, dJ as ResolvedSqlTableNames, a2 as BackendCapabilities, S as SchemaProvisioning, aT as BackendCatalogProbes, d5 as LineageMembers, bZ as EngineRecordedTimeMembers } from './types-BynPp5kU.cjs';
|
|
2
2
|
import { SQL, AnyColumn } from 'drizzle-orm';
|
|
3
|
-
import { C as CompiledAtomicSqlStatement, a as AtomicSqlBatchExecutor, Z as AtomicNodePostimageEntry, x as AtomicNodeBatchEntry, k as AtomicEdgeConvergenceEntry, K as AtomicNodeProjectionFamily, R as AtomicNodeResolvedUpdateEntry, D as AtomicNodeBatchResultMode, N as AtomicNodeReplacementEntry, H as AtomicNodeDeleteBatchInput, v as AtomicEdgeResolvedUpdateEntry, p as AtomicEdgeDeleteBatchInput } from './atomic-mutation-program-
|
|
3
|
+
import { C as CompiledAtomicSqlStatement, a as AtomicSqlBatchExecutor, Z as AtomicNodePostimageEntry, x as AtomicNodeBatchEntry, k as AtomicEdgeConvergenceEntry, K as AtomicNodeProjectionFamily, R as AtomicNodeResolvedUpdateEntry, D as AtomicNodeBatchResultMode, N as AtomicNodeReplacementEntry, H as AtomicNodeDeleteBatchInput, v as AtomicEdgeResolvedUpdateEntry, p as AtomicEdgeDeleteBatchInput } from './atomic-mutation-program-DMdmc4s0.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* A relation plus the names its PRIMARY KEY constraint can carry — how far a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dV as SqlFragment, aZ as Cardinality, N as NodeInsertClaim, m as InsertEdgeParams, E as EdgeConvergenceMatch, l as SchemaWriteFenceParams, ek as UpsertFulltextParams, bG as DeleteFulltextParams, ej as UpsertFulltextBatchParams, bF as DeleteFulltextBatchParams, cw as FulltextSearchParams, cL as HybridSearchParams, j as InsertNodeParams, dc as ManagedNodeCreatePlan, ed as UpdateNodeParams, b8 as CompareAndSetNodeParams, ee as UpdateNodeSetParams, dI as ResolvedNodeUpdateBatchParams, bH as DeleteNodeParams, cG as HardDeleteNodeParams, o as ClaimEdgeCardinalityParams, ec as UpdateEdgeParams, bC as DeleteEdgeParams, bD as DeleteEdgesBatchParams, cF as HardDeleteEdgeParams, bt as CountEdgesFromParams, bW as EdgeExistsBetweenParams, cq as FindEdgesConnectedToParams, cr as FindNodesByKindParams, bu as CountNodesByKindParams, cp as FindEdgesByKindParams, aO as FindEdgesByEndpointSetParams, co as FindEdgesByHeterogeneousEndpointSetParams, bs as CountEdgesByKindParams, cZ as InsertUniqueParams, bI as DeleteUniqueParams, cI as HardDeleteUniquesByNodeIdsParams, cH as HardDeleteUniquesByConcreteKindParams, b2 as CheckUniqueParams, b1 as CheckUniqueBatchParams, dn as PurgeEdgeClaimsParams, F as FenceSql, cY as InsertSchemaParams, dt as RecordContributionMaterializationParams, bi as ContributionMaterializationIdentity, s as SqlDialect, d as FulltextStrategy, V as VectorStrategy, hN as WriteFenceTarget, hO as SchemaWriteTransactionBackend, b9 as CompiledRowsSql, W as WriteFencePlan, f as SchemaVersionRow, ab as SerializedSchema, e1 as TableContribution, du as RecordIndexMaterializationParams, dv as RecordKindRemovalParams, dJ as ResolvedSqlTableNames, a2 as BackendCapabilities, S as SchemaProvisioning, aT as BackendCatalogProbes, d5 as LineageMembers, bZ as EngineRecordedTimeMembers } from './types-BynPp5kU.js';
|
|
2
2
|
import { SQL, AnyColumn } from 'drizzle-orm';
|
|
3
|
-
import { C as CompiledAtomicSqlStatement, a as AtomicSqlBatchExecutor, Z as AtomicNodePostimageEntry, x as AtomicNodeBatchEntry, k as AtomicEdgeConvergenceEntry, K as AtomicNodeProjectionFamily, R as AtomicNodeResolvedUpdateEntry, D as AtomicNodeBatchResultMode, N as AtomicNodeReplacementEntry, H as AtomicNodeDeleteBatchInput, v as AtomicEdgeResolvedUpdateEntry, p as AtomicEdgeDeleteBatchInput } from './atomic-mutation-program-
|
|
3
|
+
import { C as CompiledAtomicSqlStatement, a as AtomicSqlBatchExecutor, Z as AtomicNodePostimageEntry, x as AtomicNodeBatchEntry, k as AtomicEdgeConvergenceEntry, K as AtomicNodeProjectionFamily, R as AtomicNodeResolvedUpdateEntry, D as AtomicNodeBatchResultMode, N as AtomicNodeReplacementEntry, H as AtomicNodeDeleteBatchInput, v as AtomicEdgeResolvedUpdateEntry, p as AtomicEdgeDeleteBatchInput } from './atomic-mutation-program-BhP75Qn0.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* A relation plus the names its PRIMARY KEY constraint can carry — how far a
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { e as GraphDef, Q as QueryAst } from '../types-
|
|
2
|
-
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-
|
|
3
|
-
import { b as Store } from '../store-
|
|
4
|
-
export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-
|
|
5
|
-
import { P as ProfilerOptions, a as ProfileReport } from '../types-
|
|
6
|
-
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-
|
|
1
|
+
import { e as GraphDef, Q as QueryAst } from '../types-BynPp5kU.cjs';
|
|
2
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-BynPp5kU.cjs';
|
|
3
|
+
import { b as Store } from '../store-3nfPQK5j.cjs';
|
|
4
|
+
export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-3nfPQK5j.cjs';
|
|
5
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-JG-4CG6P.cjs';
|
|
6
|
+
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-JG-4CG6P.cjs';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../searchable-
|
|
9
|
-
import '../resolve-
|
|
8
|
+
import '../searchable-C7Xt6g45.cjs';
|
|
9
|
+
import '../resolve-CoYqHqno.cjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* A Store with profiling capabilities.
|
package/dist/profiler/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { e as GraphDef, Q as QueryAst } from '../types-
|
|
2
|
-
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-
|
|
3
|
-
import { b as Store } from '../store-
|
|
4
|
-
export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-
|
|
5
|
-
import { P as ProfilerOptions, a as ProfileReport } from '../types-
|
|
6
|
-
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-
|
|
1
|
+
import { e as GraphDef, Q as QueryAst } from '../types-BynPp5kU.js';
|
|
2
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-BynPp5kU.js';
|
|
3
|
+
import { b as Store } from '../store-C8ZPl7OW.js';
|
|
4
|
+
export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-C8ZPl7OW.js';
|
|
5
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-C9YwrkSe.js';
|
|
6
|
+
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-C9YwrkSe.js';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../searchable-
|
|
9
|
-
import '../resolve-
|
|
8
|
+
import '../searchable-KKXrPet3.js';
|
|
9
|
+
import '../resolve-DV0Iposp.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* A Store with profiling capabilities.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkVNJMM2QQ_cjs = require('../chunk-VNJMM2QQ.cjs');
|
|
4
|
+
require('../chunk-G7OKJDMG.cjs');
|
|
5
5
|
require('../chunk-R255UE5U.cjs');
|
|
6
|
-
var
|
|
7
|
-
require('../chunk-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
6
|
+
var chunk6B3LQUYG_cjs = require('../chunk-6B3LQUYG.cjs');
|
|
7
|
+
require('../chunk-5JOCIMQ3.cjs');
|
|
8
|
+
var chunk7LQTDGV5_cjs = require('../chunk-7LQTDGV5.cjs');
|
|
9
|
+
var chunk6JRVV2SS_cjs = require('../chunk-6JRVV2SS.cjs');
|
|
10
10
|
var chunk5ICDVLI3_cjs = require('../chunk-5ICDVLI3.cjs');
|
|
11
11
|
var chunkL4L4AV6F_cjs = require('../chunk-L4L4AV6F.cjs');
|
|
12
12
|
require('../chunk-AHUN2DLL.cjs');
|
|
@@ -55,7 +55,7 @@ function sortedReferences(keys) {
|
|
|
55
55
|
return [...keys].toSorted((left, right) => chunkNYWU6CBZ_cjs.compareStrings(left, right)).map((key) => keyToRef(key));
|
|
56
56
|
}
|
|
57
57
|
function parseNodeProps(row) {
|
|
58
|
-
const parsed =
|
|
58
|
+
const parsed = chunk6JRVV2SS_cjs.rowPropsToObject(row.props);
|
|
59
59
|
if (!chunkBXHAPCQG_cjs.isPlainObject(parsed)) {
|
|
60
60
|
throw new chunk7XYPLAPL_cjs.ConfigurationError(
|
|
61
61
|
`Node ${row.kind}/${row.id} props are not an object.`,
|
|
@@ -433,14 +433,14 @@ async function synchronizeFactCurrency(backend, store, runHooks, snapshot, affec
|
|
|
433
433
|
snapshot,
|
|
434
434
|
affected,
|
|
435
435
|
(key) => !snapshot.supportedFactKeys.has(key),
|
|
436
|
-
|
|
436
|
+
chunk6JRVV2SS_cjs.isLiveNodeRow,
|
|
437
437
|
(row) => closeFactCurrency(backend, store, runHooks, row, lock)
|
|
438
438
|
);
|
|
439
439
|
await forEachAffectedFact(
|
|
440
440
|
snapshot,
|
|
441
441
|
affected,
|
|
442
442
|
(key) => snapshot.supportedFactKeys.has(key),
|
|
443
|
-
|
|
443
|
+
chunk6JRVV2SS_cjs.isTombstonedNodeRow,
|
|
444
444
|
(row) => reopenFactCurrency(backend, store, runHooks, row, lock)
|
|
445
445
|
);
|
|
446
446
|
}
|
|
@@ -455,13 +455,13 @@ function getFactRegistration(store, row) {
|
|
|
455
455
|
async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
456
456
|
await runHooks("delete", row.kind, row.id, async () => {
|
|
457
457
|
const registration = getFactRegistration(store, row);
|
|
458
|
-
await
|
|
459
|
-
|
|
458
|
+
await chunkVNJMM2QQ_cjs.applyNodeSoftDelete(
|
|
459
|
+
chunkVNJMM2QQ_cjs.createNodeWriteContext(
|
|
460
460
|
store.graphId,
|
|
461
461
|
store.registry,
|
|
462
462
|
lock,
|
|
463
|
-
|
|
464
|
-
chunkBXHAPCQG_cjs.requireDefined(
|
|
463
|
+
chunk7LQTDGV5_cjs.createClaimsVerdictThunk(chunk6B3LQUYG_cjs.storeBackend(store)),
|
|
464
|
+
chunkBXHAPCQG_cjs.requireDefined(chunk6B3LQUYG_cjs.storeRuntime(store).uniqueSidecarBatch)
|
|
465
465
|
),
|
|
466
466
|
{
|
|
467
467
|
existing: row,
|
|
@@ -477,13 +477,13 @@ async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
|
477
477
|
async function reopenFactCurrency(backend, store, runHooks, row, lock) {
|
|
478
478
|
await runHooks("update", row.kind, row.id, async () => {
|
|
479
479
|
const registration = getFactRegistration(store, row);
|
|
480
|
-
await
|
|
481
|
-
|
|
480
|
+
await chunkVNJMM2QQ_cjs.applyNodeResurrect(
|
|
481
|
+
chunkVNJMM2QQ_cjs.createNodeWriteContext(
|
|
482
482
|
store.graphId,
|
|
483
483
|
store.registry,
|
|
484
484
|
lock,
|
|
485
|
-
|
|
486
|
-
chunkBXHAPCQG_cjs.requireDefined(
|
|
485
|
+
chunk7LQTDGV5_cjs.createClaimsVerdictThunk(chunk6B3LQUYG_cjs.storeBackend(store)),
|
|
486
|
+
chunkBXHAPCQG_cjs.requireDefined(chunk6B3LQUYG_cjs.storeRuntime(store).uniqueSidecarBatch)
|
|
487
487
|
),
|
|
488
488
|
{
|
|
489
489
|
existing: row,
|
|
@@ -516,8 +516,8 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
516
516
|
);
|
|
517
517
|
}
|
|
518
518
|
return store.transaction(async (tx) => {
|
|
519
|
-
const backend =
|
|
520
|
-
const lock = await
|
|
519
|
+
const backend = chunk6B3LQUYG_cjs.transactionBackend(tx);
|
|
520
|
+
const lock = await chunk6B3LQUYG_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
521
521
|
const rows = await Promise.all(
|
|
522
522
|
uniqueSources.map(
|
|
523
523
|
(source) => backend.getNode(store.graphId, source.kind, source.id)
|
|
@@ -553,7 +553,7 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
553
553
|
await synchronizeFactCurrency(
|
|
554
554
|
backend,
|
|
555
555
|
store,
|
|
556
|
-
|
|
556
|
+
chunk6B3LQUYG_cjs.transactionNodeOperationHookRunner(tx),
|
|
557
557
|
after,
|
|
558
558
|
affected,
|
|
559
559
|
lock
|
|
@@ -579,8 +579,8 @@ function createRetractionCapability(store, config) {
|
|
|
579
579
|
unRetractMany: (sources) => transition(sources, false),
|
|
580
580
|
async holding() {
|
|
581
581
|
return store.transaction(async (tx) => {
|
|
582
|
-
const backend =
|
|
583
|
-
await
|
|
582
|
+
const backend = chunk6B3LQUYG_cjs.transactionBackend(tx);
|
|
583
|
+
await chunk6B3LQUYG_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
584
584
|
const snapshot = await computeSupport(
|
|
585
585
|
backend,
|
|
586
586
|
store.graphId,
|