@nicia-ai/typegraph 0.66.0 → 0.67.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 +34 -0
- package/README.md +15 -0
- package/dist/backend/drizzle/engine/index.cjs +6 -6
- package/dist/backend/drizzle/engine/index.d.cts +4 -4
- package/dist/backend/drizzle/engine/index.d.ts +4 -4
- package/dist/backend/drizzle/engine/index.js +1 -1
- package/dist/backend/postgres/index.cjs +15 -15
- package/dist/backend/postgres/index.d.cts +2 -2
- package/dist/backend/postgres/index.d.ts +2 -2
- package/dist/backend/postgres/index.js +1 -1
- package/dist/backend/postgres/pglite-store.cjs +1 -1
- package/dist/backend/postgres/pglite-store.js +1 -1
- package/dist/backend/postgres/pglite.cjs +3 -3
- package/dist/backend/postgres/pglite.js +2 -2
- package/dist/backend/sqlite/index.cjs +14 -14
- package/dist/backend/sqlite/index.d.cts +2 -2
- package/dist/backend/sqlite/index.d.ts +2 -2
- package/dist/backend/sqlite/index.js +1 -1
- package/dist/backend/sqlite/libsql.cjs +6 -6
- package/dist/backend/sqlite/libsql.js +1 -1
- package/dist/backend/sqlite/local-store.cjs +1 -1
- package/dist/backend/sqlite/local-store.js +1 -1
- package/dist/backend/sqlite/local.cjs +3 -3
- package/dist/backend/sqlite/local.js +2 -2
- package/dist/{chunk-MUEPEWMQ.js → chunk-2DJKHZQ4.js} +10 -2
- package/dist/chunk-2DJKHZQ4.js.map +1 -0
- package/dist/{chunk-TR7QTODF.js → chunk-55DGFZYC.js} +3 -3
- package/dist/{chunk-TR7QTODF.js.map → chunk-55DGFZYC.js.map} +1 -1
- package/dist/{chunk-WB55URNM.js → chunk-6CKSTY2D.js} +7 -3
- package/dist/chunk-6CKSTY2D.js.map +1 -0
- package/dist/{chunk-732VS5PW.cjs → chunk-ANMCKLZQ.cjs} +12 -12
- package/dist/{chunk-732VS5PW.cjs.map → chunk-ANMCKLZQ.cjs.map} +1 -1
- package/dist/{chunk-SSDHR2C2.js → chunk-EFSXK3DW.js} +3 -3
- package/dist/{chunk-SSDHR2C2.js.map → chunk-EFSXK3DW.js.map} +1 -1
- package/dist/{chunk-Y4X6ODVY.cjs → chunk-FS2GVO2T.cjs} +56 -56
- package/dist/{chunk-Y4X6ODVY.cjs.map → chunk-FS2GVO2T.cjs.map} +1 -1
- package/dist/{chunk-K7YACILO.cjs → chunk-GXHEGNI6.cjs} +9 -9
- package/dist/{chunk-K7YACILO.cjs.map → chunk-GXHEGNI6.cjs.map} +1 -1
- package/dist/{chunk-XQNKN3UF.cjs → chunk-MN325MG4.cjs} +10 -2
- package/dist/chunk-MN325MG4.cjs.map +1 -0
- package/dist/{chunk-BX42F7IJ.cjs → chunk-SSDLQPMY.cjs} +7 -2
- package/dist/chunk-SSDLQPMY.cjs.map +1 -0
- package/dist/{chunk-MGCPSR4C.cjs → chunk-WWSYGZED.cjs} +6 -6
- package/dist/{chunk-MGCPSR4C.cjs.map → chunk-WWSYGZED.cjs.map} +1 -1
- package/dist/{chunk-HSLP6CVG.js → chunk-YHMXF7OZ.js} +3 -3
- package/dist/{chunk-HSLP6CVG.js.map → chunk-YHMXF7OZ.js.map} +1 -1
- package/dist/{chunk-C3HNC3S6.js → chunk-ZONDBN6H.js} +3 -3
- package/dist/{chunk-C3HNC3S6.js.map → chunk-ZONDBN6H.js.map} +1 -1
- package/dist/graph-merge/index.cjs +500 -26
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +384 -2
- package/dist/graph-merge/index.d.ts +384 -2
- package/dist/graph-merge/index.js +485 -15
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/index.cjs +63 -63
- package/dist/index.js +3 -3
- package/dist/{local-store-impl-J6TJG45N.cjs → local-store-impl-7SPBIS4M.cjs} +9 -9
- package/dist/{local-store-impl-J6TJG45N.cjs.map → local-store-impl-7SPBIS4M.cjs.map} +1 -1
- package/dist/{local-store-impl-XKWR46WQ.js → local-store-impl-E23EDYPV.js} +6 -6
- package/dist/{local-store-impl-XKWR46WQ.js.map → local-store-impl-E23EDYPV.js.map} +1 -1
- package/dist/{pglite-store-impl-KXD5VWC5.cjs → pglite-store-impl-U55HQ5ZY.cjs} +9 -9
- package/dist/{pglite-store-impl-KXD5VWC5.cjs.map → pglite-store-impl-U55HQ5ZY.cjs.map} +1 -1
- package/dist/{pglite-store-impl-LRZ4TO3H.js → pglite-store-impl-VAIEJZOU.js} +6 -6
- package/dist/{pglite-store-impl-LRZ4TO3H.js.map → pglite-store-impl-VAIEJZOU.js.map} +1 -1
- package/dist/{postgres-CRRB2qzy.d.ts → postgres-BbTYW3b_.d.ts} +1 -1
- package/dist/{postgres-BIm6TDfF.d.cts → postgres-Dp3MpyJt.d.cts} +1 -1
- package/dist/{profile-DVd70NA-.d.ts → profile-Ch5SSewK.d.ts} +6 -6
- package/dist/{profile-CjAffcQt.d.cts → profile-DppApFgt.d.cts} +6 -6
- package/dist/schema/index.cjs +27 -27
- package/dist/schema/index.js +2 -2
- package/dist/{sqlite-DX9H3L7z.d.cts → sqlite-BpRtjC36.d.cts} +1 -1
- package/dist/{sqlite-BNwQ5pd7.d.ts → sqlite-CH0Zq0Qv.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-BX42F7IJ.cjs.map +0 -1
- package/dist/chunk-MUEPEWMQ.js.map +0 -1
- package/dist/chunk-WB55URNM.js.map +0 -1
- package/dist/chunk-XQNKN3UF.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFS2GVO2T_cjs = require('./chunk-FS2GVO2T.cjs');
|
|
4
4
|
var chunkCBHZX3G5_cjs = require('./chunk-CBHZX3G5.cjs');
|
|
5
5
|
var chunkCBH7KZOS_cjs = require('./chunk-CBH7KZOS.cjs');
|
|
6
6
|
var chunkFZKXBPTS_cjs = require('./chunk-FZKXBPTS.cjs');
|
|
@@ -15,8 +15,8 @@ require('./chunk-I7SBZJI2.cjs');
|
|
|
15
15
|
require('./chunk-G7OKJDMG.cjs');
|
|
16
16
|
require('./chunk-R255UE5U.cjs');
|
|
17
17
|
require('./chunk-MRUOOAIQ.cjs');
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var chunkGXHEGNI6_cjs = require('./chunk-GXHEGNI6.cjs');
|
|
19
|
+
var chunkSSDLQPMY_cjs = require('./chunk-SSDLQPMY.cjs');
|
|
20
20
|
require('./chunk-6YKISECL.cjs');
|
|
21
21
|
var chunkICOTLZBV_cjs = require('./chunk-ICOTLZBV.cjs');
|
|
22
22
|
require('./chunk-EBQX7MYL.cjs');
|
|
@@ -274,167 +274,167 @@ function decodeEmbeddingJson(row) {
|
|
|
274
274
|
|
|
275
275
|
Object.defineProperty(exports, "ExecutableAggregateQuery", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkFS2GVO2T_cjs.ExecutableAggregateQuery; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "ExecutableProjectionQuery", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkFS2GVO2T_cjs.ExecutableProjectionQuery; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "ExecutableQuery", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkFS2GVO2T_cjs.ExecutableQuery; }
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "ExecutableRelationQuery", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkFS2GVO2T_cjs.ExecutableRelationQuery; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "MAX_EXPLICIT_RECURSIVE_DEPTH", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkFS2GVO2T_cjs.MAX_EXPLICIT_RECURSIVE_DEPTH; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "MAX_RECURSIVE_DEPTH", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkFS2GVO2T_cjs.MAX_RECURSIVE_DEPTH; }
|
|
298
298
|
});
|
|
299
299
|
Object.defineProperty(exports, "PreparedQuery", {
|
|
300
300
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunkFS2GVO2T_cjs.PreparedQuery; }
|
|
302
302
|
});
|
|
303
303
|
Object.defineProperty(exports, "QueryBuilder", {
|
|
304
304
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunkFS2GVO2T_cjs.QueryBuilder; }
|
|
306
306
|
});
|
|
307
307
|
Object.defineProperty(exports, "RecordedStoreView", {
|
|
308
308
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunkFS2GVO2T_cjs.RecordedStoreView; }
|
|
310
310
|
});
|
|
311
311
|
Object.defineProperty(exports, "StoreAnalysisCursorStaleError", {
|
|
312
312
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunkFS2GVO2T_cjs.StoreAnalysisCursorStaleError; }
|
|
314
314
|
});
|
|
315
315
|
Object.defineProperty(exports, "StoreSearch", {
|
|
316
316
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunkFS2GVO2T_cjs.StoreSearch; }
|
|
318
318
|
});
|
|
319
319
|
Object.defineProperty(exports, "StoreView", {
|
|
320
320
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunkFS2GVO2T_cjs.StoreView; }
|
|
322
322
|
});
|
|
323
323
|
Object.defineProperty(exports, "UnionableQuery", {
|
|
324
324
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunkFS2GVO2T_cjs.UnionableQuery; }
|
|
326
326
|
});
|
|
327
327
|
Object.defineProperty(exports, "avg", {
|
|
328
328
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunkFS2GVO2T_cjs.avg; }
|
|
330
330
|
});
|
|
331
331
|
Object.defineProperty(exports, "composeFragments", {
|
|
332
332
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunkFS2GVO2T_cjs.composeFragments; }
|
|
334
334
|
});
|
|
335
335
|
Object.defineProperty(exports, "count", {
|
|
336
336
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunkFS2GVO2T_cjs.count; }
|
|
338
338
|
});
|
|
339
339
|
Object.defineProperty(exports, "countDistinct", {
|
|
340
340
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunkFS2GVO2T_cjs.countDistinct; }
|
|
342
342
|
});
|
|
343
343
|
Object.defineProperty(exports, "countDistinctEdges", {
|
|
344
344
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkFS2GVO2T_cjs.countDistinctEdges; }
|
|
346
346
|
});
|
|
347
347
|
Object.defineProperty(exports, "countEdges", {
|
|
348
348
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkFS2GVO2T_cjs.countEdges; }
|
|
350
350
|
});
|
|
351
351
|
Object.defineProperty(exports, "createAdapterStore", {
|
|
352
352
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunkFS2GVO2T_cjs.createAdapterStore; }
|
|
354
354
|
});
|
|
355
355
|
Object.defineProperty(exports, "createAdapterStoreWithSchema", {
|
|
356
356
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunkFS2GVO2T_cjs.createAdapterStoreWithSchema; }
|
|
358
358
|
});
|
|
359
359
|
Object.defineProperty(exports, "createFragment", {
|
|
360
360
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
361
|
+
get: function () { return chunkFS2GVO2T_cjs.createFragment; }
|
|
362
362
|
});
|
|
363
363
|
Object.defineProperty(exports, "createQueryBuilder", {
|
|
364
364
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
365
|
+
get: function () { return chunkFS2GVO2T_cjs.createQueryBuilder; }
|
|
366
366
|
});
|
|
367
367
|
Object.defineProperty(exports, "createStore", {
|
|
368
368
|
enumerable: true,
|
|
369
|
-
get: function () { return
|
|
369
|
+
get: function () { return chunkFS2GVO2T_cjs.createStore; }
|
|
370
370
|
});
|
|
371
371
|
Object.defineProperty(exports, "createStoreWithSchema", {
|
|
372
372
|
enumerable: true,
|
|
373
|
-
get: function () { return
|
|
373
|
+
get: function () { return chunkFS2GVO2T_cjs.createStoreWithSchema; }
|
|
374
374
|
});
|
|
375
375
|
Object.defineProperty(exports, "createVerifiedAdapterStore", {
|
|
376
376
|
enumerable: true,
|
|
377
|
-
get: function () { return
|
|
377
|
+
get: function () { return chunkFS2GVO2T_cjs.createVerifiedAdapterStore; }
|
|
378
378
|
});
|
|
379
379
|
Object.defineProperty(exports, "createVerifiedStore", {
|
|
380
380
|
enumerable: true,
|
|
381
|
-
get: function () { return
|
|
381
|
+
get: function () { return chunkFS2GVO2T_cjs.createVerifiedStore; }
|
|
382
382
|
});
|
|
383
383
|
Object.defineProperty(exports, "defineSubgraphProject", {
|
|
384
384
|
enumerable: true,
|
|
385
|
-
get: function () { return
|
|
385
|
+
get: function () { return chunkFS2GVO2T_cjs.defineSubgraphProject; }
|
|
386
386
|
});
|
|
387
387
|
Object.defineProperty(exports, "field", {
|
|
388
388
|
enumerable: true,
|
|
389
|
-
get: function () { return
|
|
389
|
+
get: function () { return chunkFS2GVO2T_cjs.field; }
|
|
390
390
|
});
|
|
391
391
|
Object.defineProperty(exports, "having", {
|
|
392
392
|
enumerable: true,
|
|
393
|
-
get: function () { return
|
|
393
|
+
get: function () { return chunkFS2GVO2T_cjs.having; }
|
|
394
394
|
});
|
|
395
395
|
Object.defineProperty(exports, "havingEq", {
|
|
396
396
|
enumerable: true,
|
|
397
|
-
get: function () { return
|
|
397
|
+
get: function () { return chunkFS2GVO2T_cjs.havingEq; }
|
|
398
398
|
});
|
|
399
399
|
Object.defineProperty(exports, "havingGt", {
|
|
400
400
|
enumerable: true,
|
|
401
|
-
get: function () { return
|
|
401
|
+
get: function () { return chunkFS2GVO2T_cjs.havingGt; }
|
|
402
402
|
});
|
|
403
403
|
Object.defineProperty(exports, "havingGte", {
|
|
404
404
|
enumerable: true,
|
|
405
|
-
get: function () { return
|
|
405
|
+
get: function () { return chunkFS2GVO2T_cjs.havingGte; }
|
|
406
406
|
});
|
|
407
407
|
Object.defineProperty(exports, "havingLt", {
|
|
408
408
|
enumerable: true,
|
|
409
|
-
get: function () { return
|
|
409
|
+
get: function () { return chunkFS2GVO2T_cjs.havingLt; }
|
|
410
410
|
});
|
|
411
411
|
Object.defineProperty(exports, "havingLte", {
|
|
412
412
|
enumerable: true,
|
|
413
|
-
get: function () { return
|
|
413
|
+
get: function () { return chunkFS2GVO2T_cjs.havingLte; }
|
|
414
414
|
});
|
|
415
415
|
Object.defineProperty(exports, "limitFragment", {
|
|
416
416
|
enumerable: true,
|
|
417
|
-
get: function () { return
|
|
417
|
+
get: function () { return chunkFS2GVO2T_cjs.limitFragment; }
|
|
418
418
|
});
|
|
419
419
|
Object.defineProperty(exports, "max", {
|
|
420
420
|
enumerable: true,
|
|
421
|
-
get: function () { return
|
|
421
|
+
get: function () { return chunkFS2GVO2T_cjs.max; }
|
|
422
422
|
});
|
|
423
423
|
Object.defineProperty(exports, "min", {
|
|
424
424
|
enumerable: true,
|
|
425
|
-
get: function () { return
|
|
425
|
+
get: function () { return chunkFS2GVO2T_cjs.min; }
|
|
426
426
|
});
|
|
427
427
|
Object.defineProperty(exports, "offsetFragment", {
|
|
428
428
|
enumerable: true,
|
|
429
|
-
get: function () { return
|
|
429
|
+
get: function () { return chunkFS2GVO2T_cjs.offsetFragment; }
|
|
430
430
|
});
|
|
431
431
|
Object.defineProperty(exports, "orderByFragment", {
|
|
432
432
|
enumerable: true,
|
|
433
|
-
get: function () { return
|
|
433
|
+
get: function () { return chunkFS2GVO2T_cjs.orderByFragment; }
|
|
434
434
|
});
|
|
435
435
|
Object.defineProperty(exports, "sum", {
|
|
436
436
|
enumerable: true,
|
|
437
|
-
get: function () { return
|
|
437
|
+
get: function () { return chunkFS2GVO2T_cjs.sum; }
|
|
438
438
|
});
|
|
439
439
|
Object.defineProperty(exports, "sqliteVecStrategy", {
|
|
440
440
|
enumerable: true,
|
|
@@ -486,79 +486,79 @@ Object.defineProperty(exports, "metaEdge", {
|
|
|
486
486
|
});
|
|
487
487
|
Object.defineProperty(exports, "instantiateGraph", {
|
|
488
488
|
enumerable: true,
|
|
489
|
-
get: function () { return
|
|
489
|
+
get: function () { return chunkGXHEGNI6_cjs.instantiateGraph; }
|
|
490
490
|
});
|
|
491
491
|
Object.defineProperty(exports, "instantiateGraphTemplate", {
|
|
492
492
|
enumerable: true,
|
|
493
|
-
get: function () { return
|
|
493
|
+
get: function () { return chunkGXHEGNI6_cjs.instantiateGraphTemplate; }
|
|
494
494
|
});
|
|
495
495
|
Object.defineProperty(exports, "registerGraphTemplate", {
|
|
496
496
|
enumerable: true,
|
|
497
|
-
get: function () { return
|
|
497
|
+
get: function () { return chunkGXHEGNI6_cjs.registerGraphTemplate; }
|
|
498
498
|
});
|
|
499
499
|
Object.defineProperty(exports, "broader", {
|
|
500
500
|
enumerable: true,
|
|
501
|
-
get: function () { return
|
|
501
|
+
get: function () { return chunkSSDLQPMY_cjs.broader; }
|
|
502
502
|
});
|
|
503
503
|
Object.defineProperty(exports, "core", {
|
|
504
504
|
enumerable: true,
|
|
505
|
-
get: function () { return
|
|
505
|
+
get: function () { return chunkSSDLQPMY_cjs.core; }
|
|
506
506
|
});
|
|
507
507
|
Object.defineProperty(exports, "differentFrom", {
|
|
508
508
|
enumerable: true,
|
|
509
|
-
get: function () { return
|
|
509
|
+
get: function () { return chunkSSDLQPMY_cjs.differentFrom; }
|
|
510
510
|
});
|
|
511
511
|
Object.defineProperty(exports, "disjointWith", {
|
|
512
512
|
enumerable: true,
|
|
513
|
-
get: function () { return
|
|
513
|
+
get: function () { return chunkSSDLQPMY_cjs.disjointWith; }
|
|
514
514
|
});
|
|
515
515
|
Object.defineProperty(exports, "equivalentTo", {
|
|
516
516
|
enumerable: true,
|
|
517
|
-
get: function () { return
|
|
517
|
+
get: function () { return chunkSSDLQPMY_cjs.equivalentTo; }
|
|
518
518
|
});
|
|
519
519
|
Object.defineProperty(exports, "getActiveSchema", {
|
|
520
520
|
enumerable: true,
|
|
521
|
-
get: function () { return
|
|
521
|
+
get: function () { return chunkSSDLQPMY_cjs.getActiveSchema; }
|
|
522
522
|
});
|
|
523
523
|
Object.defineProperty(exports, "getCommittedSchemaVersion", {
|
|
524
524
|
enumerable: true,
|
|
525
|
-
get: function () { return
|
|
525
|
+
get: function () { return chunkSSDLQPMY_cjs.getCommittedSchemaVersion; }
|
|
526
526
|
});
|
|
527
527
|
Object.defineProperty(exports, "hasPart", {
|
|
528
528
|
enumerable: true,
|
|
529
|
-
get: function () { return
|
|
529
|
+
get: function () { return chunkSSDLQPMY_cjs.hasPart; }
|
|
530
530
|
});
|
|
531
531
|
Object.defineProperty(exports, "implies", {
|
|
532
532
|
enumerable: true,
|
|
533
|
-
get: function () { return
|
|
533
|
+
get: function () { return chunkSSDLQPMY_cjs.implies; }
|
|
534
534
|
});
|
|
535
535
|
Object.defineProperty(exports, "inverseOf", {
|
|
536
536
|
enumerable: true,
|
|
537
|
-
get: function () { return
|
|
537
|
+
get: function () { return chunkSSDLQPMY_cjs.inverseOf; }
|
|
538
538
|
});
|
|
539
539
|
Object.defineProperty(exports, "isSchemaInitialized", {
|
|
540
540
|
enumerable: true,
|
|
541
|
-
get: function () { return
|
|
541
|
+
get: function () { return chunkSSDLQPMY_cjs.isSchemaInitialized; }
|
|
542
542
|
});
|
|
543
543
|
Object.defineProperty(exports, "narrower", {
|
|
544
544
|
enumerable: true,
|
|
545
|
-
get: function () { return
|
|
545
|
+
get: function () { return chunkSSDLQPMY_cjs.narrower; }
|
|
546
546
|
});
|
|
547
547
|
Object.defineProperty(exports, "partOf", {
|
|
548
548
|
enumerable: true,
|
|
549
|
-
get: function () { return
|
|
549
|
+
get: function () { return chunkSSDLQPMY_cjs.partOf; }
|
|
550
550
|
});
|
|
551
551
|
Object.defineProperty(exports, "relatedTo", {
|
|
552
552
|
enumerable: true,
|
|
553
|
-
get: function () { return
|
|
553
|
+
get: function () { return chunkSSDLQPMY_cjs.relatedTo; }
|
|
554
554
|
});
|
|
555
555
|
Object.defineProperty(exports, "sameAs", {
|
|
556
556
|
enumerable: true,
|
|
557
|
-
get: function () { return
|
|
557
|
+
get: function () { return chunkSSDLQPMY_cjs.sameAs; }
|
|
558
558
|
});
|
|
559
559
|
Object.defineProperty(exports, "subClassOf", {
|
|
560
560
|
enumerable: true,
|
|
561
|
-
get: function () { return
|
|
561
|
+
get: function () { return chunkSSDLQPMY_cjs.subClassOf; }
|
|
562
562
|
});
|
|
563
563
|
Object.defineProperty(exports, "defineEdge", {
|
|
564
564
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ExecutableAggregateQuery, ExecutableProjectionQuery, ExecutableQuery, ExecutableRelationQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreAnalysisCursorStaleError, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createAdapterStore, createAdapterStoreWithSchema, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedAdapterStore, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-
|
|
1
|
+
export { ExecutableAggregateQuery, ExecutableProjectionQuery, ExecutableQuery, ExecutableRelationQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreAnalysisCursorStaleError, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createAdapterStore, createAdapterStoreWithSchema, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedAdapterStore, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-55DGFZYC.js';
|
|
2
2
|
export { sqliteVecStrategy } from './chunk-JVWXWAV5.js';
|
|
3
3
|
export { libsqlVectorStrategy } from './chunk-ZL67ENQW.js';
|
|
4
4
|
export { pgvectorStrategy } from './chunk-D2DMFIH2.js';
|
|
@@ -13,8 +13,8 @@ import './chunk-6ECNYQDW.js';
|
|
|
13
13
|
import './chunk-CDKNGCE7.js';
|
|
14
14
|
import './chunk-N535PWMA.js';
|
|
15
15
|
import './chunk-UFKYMQJ5.js';
|
|
16
|
-
export { instantiateGraph, instantiateGraphTemplate, registerGraphTemplate } from './chunk-
|
|
17
|
-
export { broader, core, differentFrom, disjointWith, equivalentTo, getActiveSchema, getCommittedSchemaVersion, hasPart, implies, inverseOf, isSchemaInitialized, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-
|
|
16
|
+
export { instantiateGraph, instantiateGraphTemplate, registerGraphTemplate } from './chunk-EFSXK3DW.js';
|
|
17
|
+
export { broader, core, differentFrom, disjointWith, equivalentTo, getActiveSchema, getCommittedSchemaVersion, hasPart, implies, inverseOf, isSchemaInitialized, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-6CKSTY2D.js';
|
|
18
18
|
import './chunk-RFMSZ7CF.js';
|
|
19
19
|
export { defineEdge, defineNode, isMetaEdge } from './chunk-Q2SPDS3B.js';
|
|
20
20
|
import './chunk-SYXTWPX6.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkANMCKLZQ_cjs = require('./chunk-ANMCKLZQ.cjs');
|
|
4
4
|
require('./chunk-QCD5JKU4.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkMN325MG4_cjs = require('./chunk-MN325MG4.cjs');
|
|
6
6
|
require('./chunk-DCYIUKIM.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkFS2GVO2T_cjs = require('./chunk-FS2GVO2T.cjs');
|
|
8
8
|
require('./chunk-CBHZX3G5.cjs');
|
|
9
9
|
require('./chunk-FZKXBPTS.cjs');
|
|
10
10
|
require('./chunk-76OB5RSH.cjs');
|
|
@@ -16,7 +16,7 @@ require('./chunk-I7SBZJI2.cjs');
|
|
|
16
16
|
require('./chunk-G7OKJDMG.cjs');
|
|
17
17
|
require('./chunk-R255UE5U.cjs');
|
|
18
18
|
require('./chunk-MRUOOAIQ.cjs');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-SSDLQPMY.cjs');
|
|
20
20
|
require('./chunk-6YKISECL.cjs');
|
|
21
21
|
require('./chunk-ICOTLZBV.cjs');
|
|
22
22
|
require('./chunk-EBQX7MYL.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 : chunkMN325MG4_cjs.createSqliteTables(options.store.schema.tables);
|
|
62
|
+
const { backend } = chunkANMCKLZQ_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 chunkFS2GVO2T_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)
|
|
@@ -81,5 +81,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
exports.createLocalSqliteStoreImpl = createLocalSqliteStoreImpl;
|
|
84
|
-
//# sourceMappingURL=local-store-impl-
|
|
85
|
-
//# sourceMappingURL=local-store-impl-
|
|
84
|
+
//# sourceMappingURL=local-store-impl-7SPBIS4M.cjs.map
|
|
85
|
+
//# sourceMappingURL=local-store-impl-7SPBIS4M.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,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-7SPBIS4M.cjs","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,8 +1,8 @@
|
|
|
1
|
-
import { createLocalSqliteBackend } from './chunk-
|
|
1
|
+
import { createLocalSqliteBackend } from './chunk-YHMXF7OZ.js';
|
|
2
2
|
import './chunk-H4FY6OZK.js';
|
|
3
|
-
import { createSqliteTables } from './chunk-
|
|
3
|
+
import { createSqliteTables } from './chunk-2DJKHZQ4.js';
|
|
4
4
|
import './chunk-DX6DIU2S.js';
|
|
5
|
-
import { createStoreWithSchema } from './chunk-
|
|
5
|
+
import { createStoreWithSchema } from './chunk-55DGFZYC.js';
|
|
6
6
|
import './chunk-JVWXWAV5.js';
|
|
7
7
|
import './chunk-D2DMFIH2.js';
|
|
8
8
|
import './chunk-OF63ZHSD.js';
|
|
@@ -14,7 +14,7 @@ import './chunk-6ECNYQDW.js';
|
|
|
14
14
|
import './chunk-CDKNGCE7.js';
|
|
15
15
|
import './chunk-N535PWMA.js';
|
|
16
16
|
import './chunk-UFKYMQJ5.js';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-6CKSTY2D.js';
|
|
18
18
|
import './chunk-RFMSZ7CF.js';
|
|
19
19
|
import './chunk-Q2SPDS3B.js';
|
|
20
20
|
import './chunk-SYXTWPX6.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-E23EDYPV.js.map
|
|
83
|
+
//# sourceMappingURL=local-store-impl-E23EDYPV.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,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACA,kBAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,wBAAA,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,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":"local-store-impl-
|
|
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,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACA,kBAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,wBAAA,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,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":"local-store-impl-E23EDYPV.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,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkWWSYGZED_cjs = require('./chunk-WWSYGZED.cjs');
|
|
4
|
+
var chunkMN325MG4_cjs = require('./chunk-MN325MG4.cjs');
|
|
5
5
|
require('./chunk-DCYIUKIM.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkFS2GVO2T_cjs = require('./chunk-FS2GVO2T.cjs');
|
|
7
7
|
require('./chunk-FZKXBPTS.cjs');
|
|
8
8
|
require('./chunk-76OB5RSH.cjs');
|
|
9
9
|
require('./chunk-2XQYRCPM.cjs');
|
|
@@ -14,7 +14,7 @@ require('./chunk-I7SBZJI2.cjs');
|
|
|
14
14
|
require('./chunk-G7OKJDMG.cjs');
|
|
15
15
|
require('./chunk-R255UE5U.cjs');
|
|
16
16
|
require('./chunk-MRUOOAIQ.cjs');
|
|
17
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-SSDLQPMY.cjs');
|
|
18
18
|
require('./chunk-6YKISECL.cjs');
|
|
19
19
|
require('./chunk-ICOTLZBV.cjs');
|
|
20
20
|
require('./chunk-EBQX7MYL.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 : chunkMN325MG4_cjs.createPostgresTables(options.store.schema.tables);
|
|
60
|
+
const { backend } = await chunkWWSYGZED_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 chunkFS2GVO2T_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)
|
|
@@ -78,5 +78,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
exports.createLocalPgliteStoreImpl = createLocalPgliteStoreImpl;
|
|
81
|
-
//# sourceMappingURL=pglite-store-impl-
|
|
82
|
-
//# sourceMappingURL=pglite-store-impl-
|
|
81
|
+
//# sourceMappingURL=pglite-store-impl-U55HQ5ZY.cjs.map
|
|
82
|
+
//# sourceMappingURL=pglite-store-impl-U55HQ5ZY.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-U55HQ5ZY.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,7 +1,7 @@
|
|
|
1
|
-
import { createLocalPgliteBackend } from './chunk-
|
|
2
|
-
import { createPostgresTables } from './chunk-
|
|
1
|
+
import { createLocalPgliteBackend } from './chunk-ZONDBN6H.js';
|
|
2
|
+
import { createPostgresTables } from './chunk-2DJKHZQ4.js';
|
|
3
3
|
import './chunk-DX6DIU2S.js';
|
|
4
|
-
import { createStoreWithSchema } from './chunk-
|
|
4
|
+
import { createStoreWithSchema } from './chunk-55DGFZYC.js';
|
|
5
5
|
import './chunk-D2DMFIH2.js';
|
|
6
6
|
import './chunk-OF63ZHSD.js';
|
|
7
7
|
import './chunk-XELE7ZOX.js';
|
|
@@ -12,7 +12,7 @@ import './chunk-6ECNYQDW.js';
|
|
|
12
12
|
import './chunk-CDKNGCE7.js';
|
|
13
13
|
import './chunk-N535PWMA.js';
|
|
14
14
|
import './chunk-UFKYMQJ5.js';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-6CKSTY2D.js';
|
|
16
16
|
import './chunk-RFMSZ7CF.js';
|
|
17
17
|
import './chunk-Q2SPDS3B.js';
|
|
18
18
|
import './chunk-SYXTWPX6.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-VAIEJZOU.js.map
|
|
80
|
+
//# sourceMappingURL=pglite-store-impl-VAIEJZOU.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,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-
|
|
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,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-VAIEJZOU.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,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { S as SerializedResourceDeclaration, a as SqlEngineProfile } from './profile-Ch5SSewK.js';
|
|
3
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
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { S as SerializedResourceDeclaration, a as SqlEngineProfile } from './profile-DppApFgt.cjs';
|
|
3
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
|
|