@nicia-ai/typegraph 0.37.1 → 0.38.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/README.md +12 -10
- package/dist/backend/drizzle/indexes.cjs +32 -0
- package/dist/backend/drizzle/indexes.cjs.map +1 -0
- package/dist/backend/drizzle/indexes.d.cts +43 -0
- package/dist/backend/drizzle/indexes.d.ts +43 -0
- package/dist/backend/drizzle/indexes.js +11 -0
- package/dist/backend/drizzle/indexes.js.map +1 -0
- package/dist/backend/index.cjs +161 -0
- package/dist/backend/index.cjs.map +1 -0
- package/dist/backend/index.d.cts +3 -0
- package/dist/backend/index.d.ts +3 -0
- package/dist/backend/index.js +8 -0
- package/dist/backend/index.js.map +1 -0
- package/dist/backend/postgres/index.cjs +32 -28
- package/dist/backend/postgres/index.d.cts +13 -12
- package/dist/backend/postgres/index.d.ts +13 -12
- package/dist/backend/postgres/index.js +19 -15
- package/dist/backend/postgres/pglite-store.cjs +67 -0
- package/dist/backend/postgres/pglite-store.cjs.map +1 -0
- package/dist/backend/postgres/pglite-store.d.cts +38 -0
- package/dist/backend/postgres/pglite-store.d.ts +38 -0
- package/dist/backend/postgres/pglite-store.js +65 -0
- package/dist/backend/postgres/pglite-store.js.map +1 -0
- package/dist/backend/postgres/pglite.cjs +25 -50
- package/dist/backend/postgres/pglite.cjs.map +1 -1
- package/dist/backend/postgres/pglite.d.cts +10 -9
- package/dist/backend/postgres/pglite.d.ts +10 -9
- package/dist/backend/postgres/pglite.js +20 -52
- package/dist/backend/postgres/pglite.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +29 -25
- package/dist/backend/sqlite/index.d.cts +11 -11
- package/dist/backend/sqlite/index.d.ts +11 -11
- package/dist/backend/sqlite/index.js +17 -13
- package/dist/backend/sqlite/libsql.cjs +23 -19
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +9 -10
- package/dist/backend/sqlite/libsql.d.ts +9 -10
- package/dist/backend/sqlite/libsql.js +19 -15
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +72 -0
- package/dist/backend/sqlite/local-store.cjs.map +1 -0
- package/dist/backend/sqlite/local-store.d.cts +42 -0
- package/dist/backend/sqlite/local-store.d.ts +42 -0
- package/dist/backend/sqlite/local-store.js +67 -0
- package/dist/backend/sqlite/local-store.js.map +1 -0
- package/dist/backend/sqlite/local.cjs +28 -183
- package/dist/backend/sqlite/local.cjs.map +1 -1
- package/dist/backend/sqlite/local.d.cts +8 -81
- package/dist/backend/sqlite/local.d.ts +8 -81
- package/dist/backend/sqlite/local.js +20 -180
- package/dist/backend/sqlite/local.js.map +1 -1
- package/dist/chunk-2EBMPJBO.js +16 -0
- package/dist/chunk-2EBMPJBO.js.map +1 -0
- package/dist/{chunk-5AVRFNP4.cjs → chunk-2SL7OGPR.cjs} +2866 -1507
- package/dist/chunk-2SL7OGPR.cjs.map +1 -0
- package/dist/chunk-35S6P5ZU.js +27 -0
- package/dist/chunk-35S6P5ZU.js.map +1 -0
- package/dist/chunk-3LKL3S6X.js +50 -0
- package/dist/chunk-3LKL3S6X.js.map +1 -0
- package/dist/chunk-6G5CQ6JX.js +47 -0
- package/dist/chunk-6G5CQ6JX.js.map +1 -0
- package/dist/chunk-6XDBRDZE.js +312 -0
- package/dist/chunk-6XDBRDZE.js.map +1 -0
- package/dist/chunk-764JHTLT.cjs +15 -0
- package/dist/chunk-764JHTLT.cjs.map +1 -0
- package/dist/chunk-76HE7DJP.js +68 -0
- package/dist/chunk-76HE7DJP.js.map +1 -0
- package/dist/{chunk-VGDDG3XJ.cjs → chunk-7M3NACL3.cjs} +12 -12
- package/dist/{chunk-VGDDG3XJ.cjs.map → chunk-7M3NACL3.cjs.map} +1 -1
- package/dist/{chunk-NXQFATMF.cjs → chunk-7VLCN3JB.cjs} +153 -123
- package/dist/chunk-7VLCN3JB.cjs.map +1 -0
- package/dist/{chunk-GA4TT3DH.js → chunk-A2FGSWMQ.js} +1845 -489
- package/dist/chunk-A2FGSWMQ.js.map +1 -0
- package/dist/chunk-AOL64O4Z.js +165 -0
- package/dist/chunk-AOL64O4Z.js.map +1 -0
- package/dist/{chunk-27SSDCEP.cjs → chunk-B63IFHXR.cjs} +53 -74
- package/dist/chunk-B63IFHXR.cjs.map +1 -0
- package/dist/{chunk-3XXGYU62.cjs → chunk-BKAKAVRW.cjs} +56 -53
- package/dist/chunk-BKAKAVRW.cjs.map +1 -0
- package/dist/{chunk-YTSN73ND.js → chunk-BQITNFQJ.js} +3 -3
- package/dist/{chunk-YTSN73ND.js.map → chunk-BQITNFQJ.js.map} +1 -1
- package/dist/{chunk-NUIG3BCV.cjs → chunk-CQC6VBAF.cjs} +93 -155
- package/dist/chunk-CQC6VBAF.cjs.map +1 -0
- package/dist/{chunk-6EEO3OVU.cjs → chunk-CWX77JB4.cjs} +22 -59
- package/dist/chunk-CWX77JB4.cjs.map +1 -0
- package/dist/{chunk-UGZUAYAR.js → chunk-D7PG5D5K.js} +4 -3
- package/dist/chunk-D7PG5D5K.js.map +1 -0
- package/dist/chunk-DDCIXXOO.js +9 -0
- package/dist/chunk-DDCIXXOO.js.map +1 -0
- package/dist/chunk-DDCYVIVV.cjs +44 -0
- package/dist/chunk-DDCYVIVV.cjs.map +1 -0
- package/dist/{chunk-XPCZADMT.cjs → chunk-DOVMTPKE.cjs} +89 -27
- package/dist/chunk-DOVMTPKE.cjs.map +1 -0
- package/dist/{chunk-5PNMDJ7J.js → chunk-DPNA466P.js} +14 -9
- package/dist/chunk-DPNA466P.js.map +1 -0
- package/dist/{chunk-BYPOGQWK.js → chunk-DRACN6XG.js} +6 -4
- package/dist/chunk-DRACN6XG.js.map +1 -0
- package/dist/chunk-E6TXEISH.cjs +175 -0
- package/dist/chunk-E6TXEISH.cjs.map +1 -0
- package/dist/{chunk-TKT2XHED.js → chunk-E6YZRKMM.js} +13 -12
- package/dist/chunk-E6YZRKMM.js.map +1 -0
- package/dist/{chunk-3C2RYI6L.cjs → chunk-EOJFGECD.cjs} +11 -11
- package/dist/chunk-EOJFGECD.cjs.map +1 -0
- package/dist/{chunk-XWV4JT34.js → chunk-ERZ4QPQX.js} +27 -22
- package/dist/chunk-ERZ4QPQX.js.map +1 -0
- package/dist/{chunk-DFVLCOP6.js → chunk-EZH7FNUS.js} +3 -3
- package/dist/{chunk-DFVLCOP6.js.map → chunk-EZH7FNUS.js.map} +1 -1
- package/dist/{chunk-WWFHO375.cjs → chunk-FJMPR3OH.cjs} +4 -3
- package/dist/chunk-FJMPR3OH.cjs.map +1 -0
- package/dist/chunk-FMNUSGZ4.cjs +12 -0
- package/dist/chunk-FMNUSGZ4.cjs.map +1 -0
- package/dist/{chunk-K3Q3LJY3.js → chunk-G32AO634.js} +201 -100
- package/dist/chunk-G32AO634.js.map +1 -0
- package/dist/{chunk-EXU3RASM.js → chunk-G3CSQLLT.js} +20 -474
- package/dist/chunk-G3CSQLLT.js.map +1 -0
- package/dist/chunk-GNPGGLAE.cjs +212 -0
- package/dist/chunk-GNPGGLAE.cjs.map +1 -0
- package/dist/{chunk-QARBLBXT.cjs → chunk-GUUWKPTK.cjs} +7 -7
- package/dist/{chunk-QARBLBXT.cjs.map → chunk-GUUWKPTK.cjs.map} +1 -1
- package/dist/chunk-GYA4JRP5.js +31 -0
- package/dist/chunk-GYA4JRP5.js.map +1 -0
- package/dist/chunk-I6FX7AAG.js +39 -0
- package/dist/chunk-I6FX7AAG.js.map +1 -0
- package/dist/chunk-IMQKXL4E.cjs +12 -0
- package/dist/{chunk-QSXTWU4U.cjs.map → chunk-IMQKXL4E.cjs.map} +1 -1
- package/dist/chunk-J6IJARLG.js +94 -0
- package/dist/chunk-J6IJARLG.js.map +1 -0
- package/dist/{chunk-W63OVYY4.js → chunk-K34OPSJK.js} +3 -3
- package/dist/{chunk-W63OVYY4.js.map → chunk-K34OPSJK.js.map} +1 -1
- package/dist/{chunk-TGOMW4MB.cjs → chunk-KCLZHYPU.cjs} +110 -109
- package/dist/chunk-KCLZHYPU.cjs.map +1 -0
- package/dist/{chunk-XGPUQ56G.js → chunk-KFLXWVUJ.js} +4 -38
- package/dist/chunk-KFLXWVUJ.js.map +1 -0
- package/dist/{chunk-3DS7Z4T4.cjs → chunk-LZ3TVJY4.cjs} +44 -43
- package/dist/chunk-LZ3TVJY4.cjs.map +1 -0
- package/dist/{chunk-UXLSNRYL.js → chunk-MTNEGGM2.js} +4 -4
- package/dist/chunk-MTNEGGM2.js.map +1 -0
- package/dist/{chunk-IP3CGGPA.cjs → chunk-N2V3HJFV.cjs} +92 -185
- package/dist/chunk-N2V3HJFV.cjs.map +1 -0
- package/dist/chunk-NAUA4PW5.cjs +28 -0
- package/dist/chunk-NAUA4PW5.cjs.map +1 -0
- package/dist/chunk-NMQ6C6TS.cjs +61 -0
- package/dist/chunk-NMQ6C6TS.cjs.map +1 -0
- package/dist/{chunk-2N6EOBTH.cjs → chunk-NPWACFQJ.cjs} +58 -53
- package/dist/chunk-NPWACFQJ.cjs.map +1 -0
- package/dist/{chunk-5KEQ74YU.cjs → chunk-NT6ILURI.cjs} +9 -86
- package/dist/chunk-NT6ILURI.cjs.map +1 -0
- package/dist/chunk-NU23DUSJ.cjs +192 -0
- package/dist/chunk-NU23DUSJ.cjs.map +1 -0
- package/dist/{chunk-WOJMKB3N.cjs → chunk-NWYCOFEZ.cjs} +1677 -308
- package/dist/chunk-NWYCOFEZ.cjs.map +1 -0
- package/dist/{chunk-3GH67G4Z.cjs → chunk-O5H62ZWJ.cjs} +4 -42
- package/dist/chunk-O5H62ZWJ.cjs.map +1 -0
- package/dist/{chunk-3SLPDKHQ.js → chunk-PH4IJ3V5.js} +5 -77
- package/dist/chunk-PH4IJ3V5.js.map +1 -0
- package/dist/chunk-PWXGB77L.cjs +56 -0
- package/dist/chunk-PWXGB77L.cjs.map +1 -0
- package/dist/chunk-PZHC5GCD.js +193 -0
- package/dist/chunk-PZHC5GCD.js.map +1 -0
- package/dist/chunk-QMQLUA66.js +12 -0
- package/dist/chunk-QMQLUA66.js.map +1 -0
- package/dist/{chunk-5WWVZMVX.js → chunk-QZ7A6HBM.js} +2 -2
- package/dist/{chunk-5WWVZMVX.js.map → chunk-QZ7A6HBM.js.map} +1 -1
- package/dist/{chunk-VKGKDOKR.js → chunk-RQPRCEIO.js} +1539 -206
- package/dist/chunk-RQPRCEIO.js.map +1 -0
- package/dist/chunk-RW24SAHI.cjs +74 -0
- package/dist/chunk-RW24SAHI.cjs.map +1 -0
- package/dist/{chunk-BVRDGYXQ.cjs → chunk-SAFZ6JTI.cjs} +14 -9
- package/dist/chunk-SAFZ6JTI.cjs.map +1 -0
- package/dist/{chunk-L7HQ2OSI.js → chunk-SCTZRFW5.js} +87 -166
- package/dist/chunk-SCTZRFW5.js.map +1 -0
- package/dist/{chunk-5KPNWT6X.js → chunk-SDHV2MWU.js} +24 -45
- package/dist/chunk-SDHV2MWU.js.map +1 -0
- package/dist/chunk-SVJ5GEXW.cjs +45 -0
- package/dist/chunk-SVJ5GEXW.cjs.map +1 -0
- package/dist/chunk-SVUKGWSN.cjs +102 -0
- package/dist/chunk-SVUKGWSN.cjs.map +1 -0
- package/dist/chunk-TAUGGLNQ.js +59 -0
- package/dist/chunk-TAUGGLNQ.js.map +1 -0
- package/dist/{chunk-UV3WP5WZ.js → chunk-TE5ZA4VX.js} +55 -27
- package/dist/chunk-TE5ZA4VX.js.map +1 -0
- package/dist/{chunk-A42GCBGX.cjs → chunk-TRF4EBJT.cjs} +6 -4
- package/dist/chunk-TRF4EBJT.cjs.map +1 -0
- package/dist/{chunk-KQJ54OG5.js → chunk-U4JDJKPD.js} +19 -56
- package/dist/chunk-U4JDJKPD.js.map +1 -0
- package/dist/chunk-UH2USOMG.cjs +627 -0
- package/dist/chunk-UH2USOMG.cjs.map +1 -0
- package/dist/{chunk-RCVLFTCT.js → chunk-UPXDVI3T.js} +13 -12
- package/dist/chunk-UPXDVI3T.js.map +1 -0
- package/dist/{chunk-5VQM6VWP.cjs → chunk-UWG5GX6E.cjs} +2 -2
- package/dist/{chunk-5VQM6VWP.cjs.map → chunk-UWG5GX6E.cjs.map} +1 -1
- package/dist/{chunk-3RWZPJKV.js → chunk-VBH7ZXSZ.js} +21 -78
- package/dist/chunk-VBH7ZXSZ.js.map +1 -0
- package/dist/{chunk-K5UBVGJN.js → chunk-VDYA2HMS.js} +6 -6
- package/dist/{chunk-K5UBVGJN.js.map → chunk-VDYA2HMS.js.map} +1 -1
- package/dist/chunk-X4PVHAZ6.cjs +83 -0
- package/dist/chunk-X4PVHAZ6.cjs.map +1 -0
- package/dist/{chunk-UYQMBBWJ.js → chunk-X6CNEA32.js} +23 -20
- package/dist/chunk-X6CNEA32.js.map +1 -0
- package/dist/chunk-X6RDQ5NB.cjs +335 -0
- package/dist/chunk-X6RDQ5NB.cjs.map +1 -0
- package/dist/chunk-XD6X7O5R.js +184 -0
- package/dist/chunk-XD6X7O5R.js.map +1 -0
- package/dist/{chunk-DIQ3AV5W.cjs → chunk-XFY73JWD.cjs} +324 -224
- package/dist/chunk-XFY73JWD.cjs.map +1 -0
- package/dist/{chunk-DEFQM7JU.cjs → chunk-XRU7V7FF.cjs} +7 -7
- package/dist/{chunk-DEFQM7JU.cjs.map → chunk-XRU7V7FF.cjs.map} +1 -1
- package/dist/{chunk-TPF25IG6.js → chunk-XZA3Y4YH.js} +3 -3
- package/dist/{chunk-TPF25IG6.js.map → chunk-XZA3Y4YH.js.map} +1 -1
- package/dist/chunk-Y7M44XEK.js +462 -0
- package/dist/chunk-Y7M44XEK.js.map +1 -0
- package/dist/{chunk-RRSNR3TP.js → chunk-YIRLBUNN.js} +3 -3
- package/dist/{chunk-RRSNR3TP.js.map → chunk-YIRLBUNN.js.map} +1 -1
- package/dist/{chunk-IXGYRP2P.js → chunk-YJDSPA5E.js} +79 -49
- package/dist/chunk-YJDSPA5E.js.map +1 -0
- package/dist/{chunk-EJYMTO3K.cjs → chunk-YLINFV7Z.cjs} +144 -116
- package/dist/chunk-YLINFV7Z.cjs.map +1 -0
- package/dist/{chunk-QERAIDRJ.js → chunk-Z2PPIVOO.js} +82 -22
- package/dist/chunk-Z2PPIVOO.js.map +1 -0
- package/dist/chunk-Z5QHVL5U.cjs +12 -0
- package/dist/chunk-Z5QHVL5U.cjs.map +1 -0
- package/dist/chunk-ZDH3DX3C.cjs +30 -0
- package/dist/chunk-ZDH3DX3C.cjs.map +1 -0
- package/dist/chunk-ZE6NVENI.js +77 -0
- package/dist/chunk-ZE6NVENI.js.map +1 -0
- package/dist/chunk-ZHX4KEM7.cjs +49 -0
- package/dist/chunk-ZHX4KEM7.cjs.map +1 -0
- package/dist/chunk-ZKZAIX42.cjs +479 -0
- package/dist/chunk-ZKZAIX42.cjs.map +1 -0
- package/dist/{chunk-TEDRJXOG.cjs → chunk-ZY4GXIVN.cjs} +5 -5
- package/dist/{chunk-TEDRJXOG.cjs.map → chunk-ZY4GXIVN.cjs.map} +1 -1
- package/dist/core/index.cjs +117 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +225 -0
- package/dist/core/index.d.ts +225 -0
- package/dist/core/index.js +12 -0
- package/dist/core/index.js.map +1 -0
- package/dist/{ddl-CS0KUVwB.d.ts → ddl-Dx3Z0_WC.d.ts} +3 -3
- package/dist/{ddl-BD-ZfKeX.d.cts → ddl-J6sDyABg.d.cts} +3 -3
- package/dist/define-graph-CzEvA_8F.d.cts +174 -0
- package/dist/define-graph-DRo9xpYN.d.ts +174 -0
- package/dist/{extension-types-BM2ACfYO.d.cts → extension-types-BLEVH4SG.d.cts} +1 -1
- package/dist/{extension-types-BM2ACfYO.d.ts → extension-types-BLEVH4SG.d.ts} +1 -1
- package/dist/graph-extension/index.cjs +21 -19
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +6 -4
- package/dist/graph-merge/index.cjs +265 -214
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +8 -89
- package/dist/graph-merge/index.d.ts +8 -89
- package/dist/graph-merge/index.js +141 -90
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-BeacbPoe.d.ts → index-BD_3TCgh.d.ts} +6 -4
- package/dist/{index-BPM59vsg.d.cts → index-BihFPsPu.d.cts} +6 -4
- package/dist/{fulltext-strategy-C27vXaeB.d.cts → index-Bq7vSPHy.d.ts} +3195 -2646
- package/dist/{fulltext-strategy-DebsMrqg.d.ts → index-CrFL_ENI.d.cts} +3195 -2646
- package/dist/index.cjs +326 -315
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -240
- package/dist/index.d.ts +59 -240
- package/dist/index.js +46 -79
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +26 -38
- package/dist/indexes/index.d.cts +6 -41
- package/dist/indexes/index.d.ts +6 -41
- package/dist/indexes/index.js +14 -10
- package/dist/interchange/index.cjs +48 -39
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +7 -8
- package/dist/interchange/index.d.ts +7 -8
- package/dist/interchange/index.js +23 -14
- package/dist/interchange/index.js.map +1 -1
- package/dist/local-options-CZ1BnIoF.d.cts +29 -0
- package/dist/local-options-CZ1BnIoF.d.ts +29 -0
- package/dist/{manager-D00_NXvT.d.ts → manager-CASfhmzV.d.ts} +4 -173
- package/dist/{manager-nU1vTJLy.d.cts → manager-nCEJiYBb.d.cts} +4 -173
- package/dist/{materialize-indexes-zK2J_flP.d.ts → materialize-indexes-D4iei4Kp.d.ts} +1 -1
- package/dist/{materialize-indexes-CuR3gAZb.d.cts → materialize-indexes-ExQ6OrAh.d.cts} +1 -1
- package/dist/{postgres-IaBA4RgE.d.ts → postgres-Cl1ZAN1G.d.ts} +1 -1
- package/dist/{postgres-YrYmPlaU.d.cts → postgres-DMgIKQU-.d.cts} +1 -1
- package/dist/postgres-execution-fKW0qRiN.d.cts +14 -0
- package/dist/postgres-execution-fKW0qRiN.d.ts +14 -0
- package/dist/profiler/index.cjs +9 -8
- package/dist/profiler/index.cjs.map +1 -1
- package/dist/profiler/index.d.cts +9 -17
- package/dist/profiler/index.d.ts +9 -17
- package/dist/profiler/index.js +8 -7
- package/dist/profiler/index.js.map +1 -1
- package/dist/provenance/index.cjs +61 -55
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -8
- package/dist/provenance/index.d.ts +7 -8
- package/dist/provenance/index.js +34 -28
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +46 -37
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +8 -10
- package/dist/schema/index.d.ts +8 -10
- package/dist/schema/index.js +22 -13
- package/dist/schema/index.js.map +1 -1
- package/dist/{sqlite-BUOHPx7p.d.ts → sqlite-BDkW39aa.d.cts} +1 -1
- package/dist/{sqlite-Pp8O19WE.d.cts → sqlite-CYfhvESj.d.ts} +1 -1
- package/dist/sqlite-execution-DwbE2a9y.d.cts +32 -0
- package/dist/sqlite-execution-DwbE2a9y.d.ts +32 -0
- package/dist/{store-view-X96Rd00T.d.cts → store-view-BoHqdHjB.d.cts} +394 -1393
- package/dist/{store-view-ANL6mTph.d.ts → store-view-Ctq-3OHy.d.ts} +394 -1393
- package/dist/temporal-BC_NQV5Y.d.cts +281 -0
- package/dist/temporal-DqtOEo_B.d.ts +281 -0
- package/dist/{types-r-Zyq2Hz.d.cts → types-COq3-vMC.d.cts} +2 -2
- package/dist/{types-wsvuBgPK.d.ts → types-CUevi_D1.d.ts} +2 -2
- package/dist/{where-CJOpJj3a.d.ts → where-BdE_cYtx.d.ts} +5 -5
- package/dist/{where-K3uBP33l.d.cts → where-C92TXCzT.d.cts} +5 -5
- package/package.json +37 -6
- package/dist/chunk-27SSDCEP.cjs.map +0 -1
- package/dist/chunk-2N6EOBTH.cjs.map +0 -1
- package/dist/chunk-3C2RYI6L.cjs.map +0 -1
- package/dist/chunk-3DS7Z4T4.cjs.map +0 -1
- package/dist/chunk-3GH67G4Z.cjs.map +0 -1
- package/dist/chunk-3RWZPJKV.js.map +0 -1
- package/dist/chunk-3SLPDKHQ.js.map +0 -1
- package/dist/chunk-3XXGYU62.cjs.map +0 -1
- package/dist/chunk-44TA22QT.js +0 -1478
- package/dist/chunk-44TA22QT.js.map +0 -1
- package/dist/chunk-5AVRFNP4.cjs.map +0 -1
- package/dist/chunk-5KEQ74YU.cjs.map +0 -1
- package/dist/chunk-5KPNWT6X.js.map +0 -1
- package/dist/chunk-5PNMDJ7J.js.map +0 -1
- package/dist/chunk-6EEO3OVU.cjs.map +0 -1
- package/dist/chunk-7YSP4V4R.cjs +0 -69
- package/dist/chunk-7YSP4V4R.cjs.map +0 -1
- package/dist/chunk-A42GCBGX.cjs.map +0 -1
- package/dist/chunk-BVRDGYXQ.cjs.map +0 -1
- package/dist/chunk-BYPOGQWK.js.map +0 -1
- package/dist/chunk-CUHM5CWJ.cjs +0 -12
- package/dist/chunk-CUHM5CWJ.cjs.map +0 -1
- package/dist/chunk-DIQ3AV5W.cjs.map +0 -1
- package/dist/chunk-EJYMTO3K.cjs.map +0 -1
- package/dist/chunk-EXU3RASM.js.map +0 -1
- package/dist/chunk-GA4TT3DH.js.map +0 -1
- package/dist/chunk-IP3CGGPA.cjs.map +0 -1
- package/dist/chunk-IPSVVTWT.cjs +0 -1540
- package/dist/chunk-IPSVVTWT.cjs.map +0 -1
- package/dist/chunk-IXGYRP2P.js.map +0 -1
- package/dist/chunk-K3Q3LJY3.js.map +0 -1
- package/dist/chunk-KQJ54OG5.js.map +0 -1
- package/dist/chunk-L7HQ2OSI.js.map +0 -1
- package/dist/chunk-M6VES7V6.js +0 -239
- package/dist/chunk-M6VES7V6.js.map +0 -1
- package/dist/chunk-NUIG3BCV.cjs.map +0 -1
- package/dist/chunk-NXQFATMF.cjs.map +0 -1
- package/dist/chunk-OHMP6N2J.js +0 -47
- package/dist/chunk-OHMP6N2J.js.map +0 -1
- package/dist/chunk-QERAIDRJ.js.map +0 -1
- package/dist/chunk-QSXTWU4U.cjs +0 -12
- package/dist/chunk-RCVLFTCT.js.map +0 -1
- package/dist/chunk-TGOMW4MB.cjs.map +0 -1
- package/dist/chunk-TKT2XHED.js.map +0 -1
- package/dist/chunk-UGZUAYAR.js.map +0 -1
- package/dist/chunk-UV3WP5WZ.js.map +0 -1
- package/dist/chunk-UXLSNRYL.js.map +0 -1
- package/dist/chunk-UYQMBBWJ.js.map +0 -1
- package/dist/chunk-VKGKDOKR.js.map +0 -1
- package/dist/chunk-VL2V6PEN.cjs +0 -261
- package/dist/chunk-VL2V6PEN.cjs.map +0 -1
- package/dist/chunk-WOJMKB3N.cjs.map +0 -1
- package/dist/chunk-WWFHO375.cjs.map +0 -1
- package/dist/chunk-XGPUQ56G.js.map +0 -1
- package/dist/chunk-XGU7DZDA.cjs +0 -1095
- package/dist/chunk-XGU7DZDA.cjs.map +0 -1
- package/dist/chunk-XPCZADMT.cjs.map +0 -1
- package/dist/chunk-XWV4JT34.js.map +0 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
3
|
+
var chunkXFY73JWD_cjs = require('./chunk-XFY73JWD.cjs');
|
|
4
|
+
var chunkEOJFGECD_cjs = require('./chunk-EOJFGECD.cjs');
|
|
5
|
+
var chunkE6TXEISH_cjs = require('./chunk-E6TXEISH.cjs');
|
|
6
|
+
var chunkDOVMTPKE_cjs = require('./chunk-DOVMTPKE.cjs');
|
|
7
|
+
var chunkZDH3DX3C_cjs = require('./chunk-ZDH3DX3C.cjs');
|
|
8
|
+
var chunkGNPGGLAE_cjs = require('./chunk-GNPGGLAE.cjs');
|
|
9
|
+
var chunkO5H62ZWJ_cjs = require('./chunk-O5H62ZWJ.cjs');
|
|
10
|
+
var chunkZKZAIX42_cjs = require('./chunk-ZKZAIX42.cjs');
|
|
11
|
+
var chunkX6RDQ5NB_cjs = require('./chunk-X6RDQ5NB.cjs');
|
|
12
|
+
var chunkSAFZ6JTI_cjs = require('./chunk-SAFZ6JTI.cjs');
|
|
10
13
|
var drizzleOrm = require('drizzle-orm');
|
|
11
14
|
var sqliteCore = require('drizzle-orm/sqlite-core');
|
|
12
15
|
|
|
@@ -29,8 +32,8 @@ function isDurableObjectBySessionName(db) {
|
|
|
29
32
|
function isDurableObjectStorageClient(value) {
|
|
30
33
|
if (typeof value !== "object" || value === null) return false;
|
|
31
34
|
const candidate = value;
|
|
32
|
-
const sqlApi = candidate
|
|
33
|
-
return typeof candidate
|
|
35
|
+
const sqlApi = candidate["sql"];
|
|
36
|
+
return typeof candidate["transaction"] === "function" && typeof candidate["transactionSync"] === "function" && typeof sqlApi === "object" && sqlApi !== null && typeof sqlApi["exec"] === "function";
|
|
34
37
|
}
|
|
35
38
|
function getDurableObjectStorageClient(db) {
|
|
36
39
|
const client = db.$client;
|
|
@@ -79,7 +82,7 @@ var FIRST_MODERN_BIND_LIMIT_MINOR = 32;
|
|
|
79
82
|
function parseCompiledMaxVariableNumber(rows) {
|
|
80
83
|
for (const row of rows) {
|
|
81
84
|
if (typeof row !== "object" || row === null) continue;
|
|
82
|
-
const option = row
|
|
85
|
+
const option = row["compile_options"];
|
|
83
86
|
if (typeof option !== "string") continue;
|
|
84
87
|
const match = MAX_VARIABLE_NUMBER_COMPILE_OPTION.exec(option);
|
|
85
88
|
if (match !== null) return Number(match[1]);
|
|
@@ -89,7 +92,7 @@ function parseCompiledMaxVariableNumber(rows) {
|
|
|
89
92
|
function hasModernBindLimitByVersion(rows) {
|
|
90
93
|
const first = rows[0];
|
|
91
94
|
if (typeof first !== "object" || first === null) return false;
|
|
92
|
-
const version = first
|
|
95
|
+
const version = first["version"];
|
|
93
96
|
if (typeof version !== "string") return false;
|
|
94
97
|
const [major = 0, minor = 0] = version.split(".").map(Number);
|
|
95
98
|
if (!Number.isFinite(major) || !Number.isFinite(minor)) return false;
|
|
@@ -97,14 +100,14 @@ function hasModernBindLimitByVersion(rows) {
|
|
|
97
100
|
}
|
|
98
101
|
function detectHardMaxBindParameters(transactionMode, hostedPlatform) {
|
|
99
102
|
if (hostedPlatform === "durable-object" || transactionMode === "do-sqlite") {
|
|
100
|
-
return
|
|
103
|
+
return chunkGNPGGLAE_cjs.DURABLE_OBJECT_MAX_BIND_PARAMETERS;
|
|
101
104
|
}
|
|
102
|
-
if (hostedPlatform === "d1") return
|
|
105
|
+
if (hostedPlatform === "d1") return chunkGNPGGLAE_cjs.D1_MAX_BIND_PARAMETERS;
|
|
103
106
|
return void 0;
|
|
104
107
|
}
|
|
105
108
|
function detectMaxBindParameters(sqliteClient, hardMaxBindParameters) {
|
|
106
109
|
if (hardMaxBindParameters !== void 0) return hardMaxBindParameters;
|
|
107
|
-
if (sqliteClient === void 0) return
|
|
110
|
+
if (sqliteClient === void 0) return chunkGNPGGLAE_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
108
111
|
try {
|
|
109
112
|
const compiled = parseCompiledMaxVariableNumber(
|
|
110
113
|
sqliteClient.prepare("PRAGMA compile_options").all()
|
|
@@ -113,20 +116,20 @@ function detectMaxBindParameters(sqliteClient, hardMaxBindParameters) {
|
|
|
113
116
|
const isModern = hasModernBindLimitByVersion(
|
|
114
117
|
sqliteClient.prepare("SELECT sqlite_version() AS version").all()
|
|
115
118
|
);
|
|
116
|
-
return isModern ?
|
|
119
|
+
return isModern ? chunkGNPGGLAE_cjs.MODERN_SQLITE_MAX_BIND_PARAMETERS : chunkGNPGGLAE_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
117
120
|
} catch {
|
|
118
|
-
return
|
|
121
|
+
return chunkGNPGGLAE_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
124
|
function resolveSqliteClient(db) {
|
|
122
125
|
const sqliteClient = db.$client;
|
|
123
126
|
if (typeof sqliteClient !== "object" || sqliteClient === null) return;
|
|
124
127
|
const candidate = sqliteClient;
|
|
125
|
-
if (typeof candidate
|
|
128
|
+
if (typeof candidate["prepare"] !== "function") return;
|
|
126
129
|
return sqliteClient;
|
|
127
130
|
}
|
|
128
131
|
function getOrCreatePreparedStatement(cache, sqliteClient, sqlText, cacheMax) {
|
|
129
|
-
return
|
|
132
|
+
return chunkXFY73JWD_cjs.getOrCreateLru(
|
|
130
133
|
cache,
|
|
131
134
|
sqlText,
|
|
132
135
|
cacheMax,
|
|
@@ -178,7 +181,7 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
178
181
|
supportsCompiledExecution: sqliteClient !== void 0,
|
|
179
182
|
transactionMode
|
|
180
183
|
};
|
|
181
|
-
const compile = (query) =>
|
|
184
|
+
const compile = (query) => chunkDOVMTPKE_cjs.compileQueryWithDialect(db, query, "SQLite");
|
|
182
185
|
if (sqliteClient !== void 0) {
|
|
183
186
|
let executeCompiled2 = function(compiledQuery) {
|
|
184
187
|
const preparedStatement = getOrCreatePreparedStatement(
|
|
@@ -249,7 +252,10 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
249
252
|
},
|
|
250
253
|
compile,
|
|
251
254
|
execute(query) {
|
|
252
|
-
return executeDrizzleQuery(
|
|
255
|
+
return executeDrizzleQuery(
|
|
256
|
+
db,
|
|
257
|
+
chunkX6RDQ5NB_cjs.isSqlFragment(query) ? chunkDOVMTPKE_cjs.toDrizzleSql(query, "sqlite") : query
|
|
258
|
+
);
|
|
253
259
|
},
|
|
254
260
|
profile
|
|
255
261
|
};
|
|
@@ -273,7 +279,7 @@ function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
|
273
279
|
),
|
|
274
280
|
embeddingUpsertBatchSize: Math.max(
|
|
275
281
|
1,
|
|
276
|
-
Math.floor(maxBindParameters /
|
|
282
|
+
Math.floor(maxBindParameters / chunkXFY73JWD_cjs.EMBEDDING_UPSERT_PARAM_COUNT)
|
|
277
283
|
),
|
|
278
284
|
fulltextUpsertBatchSize: Math.max(
|
|
279
285
|
1,
|
|
@@ -305,11 +311,11 @@ function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
|
305
311
|
)
|
|
306
312
|
};
|
|
307
313
|
}
|
|
308
|
-
var toNodeRow =
|
|
309
|
-
var toEdgeRow =
|
|
310
|
-
var toUniqueRow =
|
|
311
|
-
var toSchemaVersionRow =
|
|
312
|
-
|
|
314
|
+
var toNodeRow = chunkE6TXEISH_cjs.createNodeRowMapper(chunkE6TXEISH_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
315
|
+
var toEdgeRow = chunkE6TXEISH_cjs.createEdgeRowMapper(chunkE6TXEISH_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
316
|
+
var toUniqueRow = chunkE6TXEISH_cjs.createUniqueRowMapper(chunkE6TXEISH_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
317
|
+
var toSchemaVersionRow = chunkE6TXEISH_cjs.createSchemaVersionRowMapper(
|
|
318
|
+
chunkE6TXEISH_cjs.SQLITE_ROW_MAPPER_CONFIG
|
|
313
319
|
);
|
|
314
320
|
var PENDING_FOREVER = new Promise(noop);
|
|
315
321
|
function pendingForever() {
|
|
@@ -328,7 +334,7 @@ async function loadQueueTaskContext() {
|
|
|
328
334
|
void loadQueueTaskContext();
|
|
329
335
|
function rejectReentrantQueueSubmission() {
|
|
330
336
|
return Promise.reject(
|
|
331
|
-
new
|
|
337
|
+
new chunkSAFZ6JTI_cjs.ConfigurationError(
|
|
332
338
|
"This operation was awaited from inside a transaction running on the same SQLite backend and would deadlock: the transaction holds the backend's serialized execution slot until it completes, so the operation could never run.",
|
|
333
339
|
{ backend: "sqlite", capability: "concurrentRootAccess" },
|
|
334
340
|
{
|
|
@@ -349,7 +355,7 @@ function createSerializedExecutionQueue() {
|
|
|
349
355
|
disposed = true;
|
|
350
356
|
},
|
|
351
357
|
runExclusive(task) {
|
|
352
|
-
if (isDisposed()) return Promise.reject(new
|
|
358
|
+
if (isDisposed()) return Promise.reject(new chunkSAFZ6JTI_cjs.BackendDisposedError());
|
|
353
359
|
if (queueTaskContext?.getStore() === taskMarker) {
|
|
354
360
|
return rejectReentrantQueueSubmission();
|
|
355
361
|
}
|
|
@@ -377,7 +383,7 @@ function runWithSerializedQueue(queue, task) {
|
|
|
377
383
|
return queue.runExclusive(task);
|
|
378
384
|
}
|
|
379
385
|
function throwSqliteTransactionsDisabled(message) {
|
|
380
|
-
throw new
|
|
386
|
+
throw new chunkSAFZ6JTI_cjs.ConfigurationError(message, {
|
|
381
387
|
backend: "sqlite",
|
|
382
388
|
capability: "transactions",
|
|
383
389
|
supportsTransactions: false
|
|
@@ -385,20 +391,20 @@ function throwSqliteTransactionsDisabled(message) {
|
|
|
385
391
|
}
|
|
386
392
|
function buildSqliteCapabilities(options) {
|
|
387
393
|
const base = options.transactionMode === "none" ? {
|
|
388
|
-
...
|
|
394
|
+
...chunkGNPGGLAE_cjs.SQLITE_CAPABILITIES,
|
|
389
395
|
transactions: false,
|
|
390
396
|
graphAnalytics: {
|
|
391
|
-
...
|
|
397
|
+
...chunkGNPGGLAE_cjs.SQLITE_CAPABILITIES.graphAnalytics ?? {
|
|
392
398
|
mathFunctions: false
|
|
393
399
|
},
|
|
394
400
|
supported: false
|
|
395
401
|
}
|
|
396
|
-
} :
|
|
402
|
+
} : chunkGNPGGLAE_cjs.SQLITE_CAPABILITIES;
|
|
397
403
|
return {
|
|
398
404
|
...base,
|
|
399
405
|
maxBindParameters: options.maxBindParameters,
|
|
400
|
-
fulltext:
|
|
401
|
-
...options.vectorStrategy === void 0 ? {} : { vector:
|
|
406
|
+
fulltext: chunkZKZAIX42_cjs.buildFulltextCapabilities(options.fulltextStrategy),
|
|
407
|
+
...options.vectorStrategy === void 0 ? {} : { vector: chunkZKZAIX42_cjs.buildVectorCapabilities(options.vectorStrategy) }
|
|
402
408
|
};
|
|
403
409
|
}
|
|
404
410
|
function resolveMaxBindParametersCapability(profile, override) {
|
|
@@ -406,7 +412,7 @@ function resolveMaxBindParametersCapability(profile, override) {
|
|
|
406
412
|
return profile.hardMaxBindParameters === void 0 ? requested : Math.min(requested, profile.hardMaxBindParameters);
|
|
407
413
|
}
|
|
408
414
|
function resolveSqliteGraphAnalyticsCapabilities(profile, override) {
|
|
409
|
-
const requested = override ??
|
|
415
|
+
const requested = override ?? chunkGNPGGLAE_cjs.SQLITE_CAPABILITIES.graphAnalytics ?? {
|
|
410
416
|
supported: false,
|
|
411
417
|
mathFunctions: false
|
|
412
418
|
};
|
|
@@ -432,7 +438,7 @@ function createSqliteOperationBackend(options) {
|
|
|
432
438
|
function execGet(query) {
|
|
433
439
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
434
440
|
if (compiledExecute === void 0) {
|
|
435
|
-
const rows2 = await
|
|
441
|
+
const rows2 = await executionAdapter.execute(query);
|
|
436
442
|
return rows2[0];
|
|
437
443
|
}
|
|
438
444
|
const rows = await compiledExecute(executionAdapter.compile(query));
|
|
@@ -442,7 +448,7 @@ function createSqliteOperationBackend(options) {
|
|
|
442
448
|
function execAll(query) {
|
|
443
449
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
444
450
|
if (compiledExecute === void 0) {
|
|
445
|
-
return await
|
|
451
|
+
return [...await executionAdapter.execute(query)];
|
|
446
452
|
}
|
|
447
453
|
return [...await compiledExecute(executionAdapter.compile(query))];
|
|
448
454
|
});
|
|
@@ -450,23 +456,25 @@ function createSqliteOperationBackend(options) {
|
|
|
450
456
|
function execRun(query) {
|
|
451
457
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
452
458
|
if (compiledRun === void 0) {
|
|
453
|
-
await db.run(
|
|
459
|
+
await db.run(
|
|
460
|
+
chunkX6RDQ5NB_cjs.isSqlFragment(query) ? chunkDOVMTPKE_cjs.toDrizzleSql(query, "sqlite") : query
|
|
461
|
+
);
|
|
454
462
|
return;
|
|
455
463
|
}
|
|
456
464
|
await compiledRun(executionAdapter.compile(query));
|
|
457
465
|
});
|
|
458
466
|
}
|
|
459
467
|
const batchConfig = computeSqliteBatchChunkSizes(
|
|
460
|
-
capabilities.maxBindParameters ??
|
|
468
|
+
capabilities.maxBindParameters ?? chunkGNPGGLAE_cjs.SQLITE_MAX_BIND_PARAMETERS
|
|
461
469
|
);
|
|
462
|
-
const commonBackend =
|
|
470
|
+
const commonBackend = chunkXFY73JWD_cjs.createCommonOperationBackend({
|
|
463
471
|
batchConfig,
|
|
464
472
|
execution: {
|
|
465
473
|
execAll,
|
|
466
474
|
execGet,
|
|
467
475
|
execRun
|
|
468
476
|
},
|
|
469
|
-
nowIso:
|
|
477
|
+
nowIso: chunkE6TXEISH_cjs.nowIso,
|
|
470
478
|
operationStrategy,
|
|
471
479
|
rowMappers: {
|
|
472
480
|
toEdgeRow,
|
|
@@ -486,28 +494,28 @@ function createSqliteOperationBackend(options) {
|
|
|
486
494
|
};
|
|
487
495
|
const vectorEmbeddingMethods = vectorStrategy === void 0 ? {} : {
|
|
488
496
|
async upsertEmbedding(params) {
|
|
489
|
-
const slot =
|
|
497
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
|
|
490
498
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
491
|
-
const statements = vectorStrategy.buildUpsert(slot, params,
|
|
499
|
+
const statements = vectorStrategy.buildUpsert(slot, params, chunkE6TXEISH_cjs.nowIso());
|
|
492
500
|
try {
|
|
493
501
|
for (const statement of statements) {
|
|
494
502
|
await execRun(statement);
|
|
495
503
|
}
|
|
496
504
|
} catch (error) {
|
|
497
|
-
throw
|
|
505
|
+
throw chunkXFY73JWD_cjs.mapVectorWriteError(error, params);
|
|
498
506
|
}
|
|
499
507
|
},
|
|
500
508
|
async upsertEmbeddingBatch(params) {
|
|
501
509
|
if (params.rows.length === 0) return;
|
|
502
|
-
const slot =
|
|
510
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
|
|
503
511
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
504
512
|
const rowsById = new Map(
|
|
505
513
|
params.rows.map((row) => [row.nodeId, row])
|
|
506
514
|
);
|
|
507
515
|
const rows = [...rowsById.values()];
|
|
508
|
-
const timestamp =
|
|
516
|
+
const timestamp = chunkE6TXEISH_cjs.nowIso();
|
|
509
517
|
try {
|
|
510
|
-
for (const chunk2 of
|
|
518
|
+
for (const chunk2 of chunkZDH3DX3C_cjs.chunk(
|
|
511
519
|
rows,
|
|
512
520
|
batchConfig.embeddingUpsertBatchSize
|
|
513
521
|
)) {
|
|
@@ -536,11 +544,11 @@ function createSqliteOperationBackend(options) {
|
|
|
536
544
|
}
|
|
537
545
|
}
|
|
538
546
|
} catch (error) {
|
|
539
|
-
throw
|
|
547
|
+
throw chunkXFY73JWD_cjs.mapVectorWriteError(error, params);
|
|
540
548
|
}
|
|
541
549
|
},
|
|
542
550
|
async deleteEmbedding(params) {
|
|
543
|
-
const slot =
|
|
551
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
|
|
544
552
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
545
553
|
const statements = vectorStrategy.buildDelete(slot, params);
|
|
546
554
|
for (const statement of statements) {
|
|
@@ -548,23 +556,25 @@ function createSqliteOperationBackend(options) {
|
|
|
548
556
|
}
|
|
549
557
|
},
|
|
550
558
|
async vectorSearch(params) {
|
|
551
|
-
|
|
552
|
-
const slot =
|
|
559
|
+
chunkZKZAIX42_cjs.assertVectorSearchLimit(params.limit);
|
|
560
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
|
|
553
561
|
const query = vectorStrategy.buildSearch(
|
|
554
562
|
slot,
|
|
555
563
|
params,
|
|
556
564
|
// Store-compiled candidates (predicates + subclass + currency)
|
|
557
565
|
// take precedence; the live-node default covers direct backend use.
|
|
558
|
-
params.candidates ??
|
|
566
|
+
params.candidates ?? chunkXFY73JWD_cjs.buildLiveNodeCandidates(
|
|
567
|
+
tableNames.nodes,
|
|
559
568
|
params.graphId,
|
|
560
|
-
params.nodeKind
|
|
569
|
+
params.nodeKind,
|
|
570
|
+
chunkE6TXEISH_cjs.nowIso()
|
|
561
571
|
)
|
|
562
572
|
);
|
|
563
573
|
let rows;
|
|
564
574
|
try {
|
|
565
575
|
rows = await execAll(query);
|
|
566
576
|
} catch (error) {
|
|
567
|
-
throw
|
|
577
|
+
throw chunkXFY73JWD_cjs.mapVectorWriteError(error, params);
|
|
568
578
|
}
|
|
569
579
|
return rows.map((row) => ({
|
|
570
580
|
nodeId: row.node_id,
|
|
@@ -576,9 +586,9 @@ function createSqliteOperationBackend(options) {
|
|
|
576
586
|
// fallback by simply not exposing the member.
|
|
577
587
|
...capabilities.windowFunctions ? {
|
|
578
588
|
async hybridSearch(params) {
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
const slot =
|
|
589
|
+
chunkZKZAIX42_cjs.assertVectorSearchLimit(params.limit);
|
|
590
|
+
chunkZKZAIX42_cjs.assertVectorSearchLimit(params.vector.k);
|
|
591
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromParams({
|
|
582
592
|
graphId: params.graphId,
|
|
583
593
|
nodeKind: params.nodeKind,
|
|
584
594
|
fieldPath: params.vector.fieldPath,
|
|
@@ -586,9 +596,11 @@ function createSqliteOperationBackend(options) {
|
|
|
586
596
|
metric: params.vector.metric,
|
|
587
597
|
indexType: params.vector.indexType
|
|
588
598
|
});
|
|
589
|
-
const candidates = params.candidates ??
|
|
599
|
+
const candidates = params.candidates ?? chunkXFY73JWD_cjs.buildLiveNodeCandidates(
|
|
600
|
+
tableNames.nodes,
|
|
590
601
|
params.graphId,
|
|
591
|
-
params.nodeKind
|
|
602
|
+
params.nodeKind,
|
|
603
|
+
chunkE6TXEISH_cjs.nowIso()
|
|
592
604
|
);
|
|
593
605
|
const vectorParams = {
|
|
594
606
|
graphId: params.graphId,
|
|
@@ -604,20 +616,20 @@ function createSqliteOperationBackend(options) {
|
|
|
604
616
|
const vectorSql = vectorStrategy.buildSearch(
|
|
605
617
|
slot,
|
|
606
618
|
vectorParams,
|
|
607
|
-
|
|
619
|
+
chunkX6RDQ5NB_cjs.sql.raw("SELECT node_id FROM tg_hybrid_cand")
|
|
608
620
|
);
|
|
609
621
|
const statement = operationStrategy.buildHybridSearch(
|
|
610
622
|
{ ...params, candidates },
|
|
611
|
-
vectorSql,
|
|
623
|
+
chunkDOVMTPKE_cjs.toDrizzleSql(vectorSql, "sqlite"),
|
|
612
624
|
params.vector.metric === "cosine"
|
|
613
625
|
);
|
|
614
626
|
let raw;
|
|
615
627
|
try {
|
|
616
628
|
raw = await execAll(statement);
|
|
617
629
|
} catch (error) {
|
|
618
|
-
throw
|
|
630
|
+
throw chunkXFY73JWD_cjs.mapVectorWriteError(error, vectorParams);
|
|
619
631
|
}
|
|
620
|
-
return raw.map((row) =>
|
|
632
|
+
return raw.map((row) => chunkXFY73JWD_cjs.mapHybridSearchRow(row, toNodeRow));
|
|
621
633
|
}
|
|
622
634
|
} : {}
|
|
623
635
|
};
|
|
@@ -632,7 +644,7 @@ function createSqliteOperationBackend(options) {
|
|
|
632
644
|
...vectorStrategy === void 0 ? {} : { vectorStrategy },
|
|
633
645
|
async createVectorIndex(params) {
|
|
634
646
|
if (vectorStrategy === void 0) return;
|
|
635
|
-
const slot =
|
|
647
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromCreateIndexParams(params);
|
|
636
648
|
await contributionMaterializer.ensureVectorSlot(slot);
|
|
637
649
|
const indexStatement = vectorStrategy.buildCreateIndex?.(slot);
|
|
638
650
|
if (indexStatement !== void 0) {
|
|
@@ -641,18 +653,18 @@ function createSqliteOperationBackend(options) {
|
|
|
641
653
|
},
|
|
642
654
|
async dropVectorIndex(params) {
|
|
643
655
|
if (vectorStrategy === void 0) return;
|
|
644
|
-
const slot =
|
|
656
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromDropIndexParams(params);
|
|
645
657
|
const dropStatement = vectorStrategy.buildDropIndex?.(slot);
|
|
646
658
|
if (dropStatement === void 0) return;
|
|
647
659
|
try {
|
|
648
660
|
await execRun(dropStatement);
|
|
649
661
|
} catch (error) {
|
|
650
|
-
if (!
|
|
662
|
+
if (!chunkO5H62ZWJ_cjs.isMissingTableError(error)) throw error;
|
|
651
663
|
}
|
|
652
664
|
},
|
|
653
665
|
// === Fulltext Operations ===
|
|
654
666
|
async upsertFulltext(params) {
|
|
655
|
-
const timestamp =
|
|
667
|
+
const timestamp = chunkE6TXEISH_cjs.nowIso();
|
|
656
668
|
const statements = operationStrategy.buildUpsertFulltext(
|
|
657
669
|
params,
|
|
658
670
|
timestamp
|
|
@@ -669,8 +681,8 @@ function createSqliteOperationBackend(options) {
|
|
|
669
681
|
},
|
|
670
682
|
async upsertFulltextBatch(params) {
|
|
671
683
|
if (params.rows.length === 0) return;
|
|
672
|
-
const timestamp =
|
|
673
|
-
for (const rows of
|
|
684
|
+
const timestamp = chunkE6TXEISH_cjs.nowIso();
|
|
685
|
+
for (const rows of chunkZDH3DX3C_cjs.chunk(
|
|
674
686
|
params.rows,
|
|
675
687
|
batchConfig.fulltextUpsertBatchSize
|
|
676
688
|
)) {
|
|
@@ -685,7 +697,7 @@ function createSqliteOperationBackend(options) {
|
|
|
685
697
|
},
|
|
686
698
|
async deleteFulltextBatch(params) {
|
|
687
699
|
if (params.nodeIds.length === 0) return;
|
|
688
|
-
for (const nodeIds of
|
|
700
|
+
for (const nodeIds of chunkZDH3DX3C_cjs.chunk(
|
|
689
701
|
params.nodeIds,
|
|
690
702
|
batchConfig.fulltextDeleteChunkSize
|
|
691
703
|
)) {
|
|
@@ -703,7 +715,7 @@ function createSqliteOperationBackend(options) {
|
|
|
703
715
|
const rows = await execAll(query);
|
|
704
716
|
return rows.map((row, index) => ({
|
|
705
717
|
nodeId: row.node_id,
|
|
706
|
-
score:
|
|
718
|
+
score: chunkE6TXEISH_cjs.coerceNumericScore(row.score),
|
|
707
719
|
rank: index + 1,
|
|
708
720
|
...row.snippet === null ? {} : { snippet: row.snippet }
|
|
709
721
|
}));
|
|
@@ -722,14 +734,14 @@ function createSqliteOperationBackend(options) {
|
|
|
722
734
|
return operationBackend;
|
|
723
735
|
}
|
|
724
736
|
function createSqliteBackend(db, options = {}) {
|
|
725
|
-
const tables2 = options.tables ??
|
|
726
|
-
const fulltextStrategy = options.fulltext ??
|
|
737
|
+
const tables2 = options.tables ?? chunkEOJFGECD_cjs.tables;
|
|
738
|
+
const fulltextStrategy = options.fulltext ?? chunkZKZAIX42_cjs.fts5Strategy;
|
|
727
739
|
const profileHints = options.executionProfile ?? {};
|
|
728
740
|
const executionAdapter = createSqliteExecutionAdapter(db, { profileHints });
|
|
729
741
|
const { isSync, transactionMode } = executionAdapter.profile;
|
|
730
742
|
const vectorStrategy = options.vector;
|
|
731
743
|
const capabilityOverrides = options.capabilities ?? {};
|
|
732
|
-
const capabilities =
|
|
744
|
+
const capabilities = chunkGNPGGLAE_cjs.normalizeGraphAnalyticsCapabilities({
|
|
733
745
|
...buildSqliteCapabilities({
|
|
734
746
|
fulltextStrategy,
|
|
735
747
|
vectorStrategy,
|
|
@@ -767,14 +779,14 @@ function createSqliteBackend(db, options = {}) {
|
|
|
767
779
|
tableNames.recordedEdges,
|
|
768
780
|
tableNames.recordedClock
|
|
769
781
|
];
|
|
770
|
-
const operationStrategy =
|
|
782
|
+
const operationStrategy = chunkXFY73JWD_cjs.createSqliteOperationStrategy(
|
|
771
783
|
tables2,
|
|
772
784
|
fulltextStrategy
|
|
773
785
|
);
|
|
774
786
|
const serializedQueue = transactionMode === "none" ? void 0 : createSerializedExecutionQueue();
|
|
775
787
|
const matTable = tables2.contributionMaterializations;
|
|
776
788
|
async function ensureContributionMaterializationsTableImpl() {
|
|
777
|
-
await db.run(drizzleOrm.sql.raw(
|
|
789
|
+
await db.run(drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generateSqliteCreateTableSQL(matTable)));
|
|
778
790
|
}
|
|
779
791
|
async function getContributionMaterializationRow(identity) {
|
|
780
792
|
const rows = await db.select().from(matTable).where(
|
|
@@ -787,25 +799,25 @@ function createSqliteBackend(db, options = {}) {
|
|
|
787
799
|
);
|
|
788
800
|
const row = rows[0];
|
|
789
801
|
if (row === void 0) return void 0;
|
|
790
|
-
return
|
|
802
|
+
return chunkXFY73JWD_cjs.mapContributionMaterializationRow(
|
|
791
803
|
row,
|
|
792
|
-
|
|
804
|
+
chunkXFY73JWD_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
793
805
|
);
|
|
794
806
|
}
|
|
795
807
|
async function getContributionMaterializationRows(graphId) {
|
|
796
808
|
const rows = await db.select().from(matTable).where(drizzleOrm.eq(matTable.graphId, graphId));
|
|
797
809
|
return rows.map(
|
|
798
|
-
(row) =>
|
|
810
|
+
(row) => chunkXFY73JWD_cjs.mapContributionMaterializationRow(
|
|
799
811
|
row,
|
|
800
|
-
|
|
812
|
+
chunkXFY73JWD_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
801
813
|
)
|
|
802
814
|
);
|
|
803
815
|
}
|
|
804
816
|
async function recordContributionMaterializationRow(params) {
|
|
805
817
|
await db.insert(matTable).values(
|
|
806
|
-
|
|
818
|
+
chunkXFY73JWD_cjs.buildContributionInsertValues(
|
|
807
819
|
params,
|
|
808
|
-
|
|
820
|
+
chunkXFY73JWD_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.encode
|
|
809
821
|
)
|
|
810
822
|
).onConflictDoUpdate({
|
|
811
823
|
target: [
|
|
@@ -814,7 +826,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
814
826
|
matTable.owner,
|
|
815
827
|
matTable.tableName
|
|
816
828
|
],
|
|
817
|
-
set:
|
|
829
|
+
set: chunkXFY73JWD_cjs.buildContributionOnConflictSet(
|
|
818
830
|
matTable.materializedAt,
|
|
819
831
|
params.materializedAt
|
|
820
832
|
)
|
|
@@ -830,7 +842,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
830
842
|
)
|
|
831
843
|
);
|
|
832
844
|
}
|
|
833
|
-
const contributionMaterializer =
|
|
845
|
+
const contributionMaterializer = chunkXFY73JWD_cjs.createContributionMaterializer({
|
|
834
846
|
dialect: "sqlite",
|
|
835
847
|
fulltextStrategy,
|
|
836
848
|
fulltextTableName: tables2.fulltextTableName,
|
|
@@ -950,36 +962,36 @@ function createSqliteBackend(db, options = {}) {
|
|
|
950
962
|
vectorStrategy,
|
|
951
963
|
contributionMaterializer
|
|
952
964
|
});
|
|
953
|
-
return
|
|
965
|
+
return chunkXFY73JWD_cjs.gateFulltext(txBackend, contributionMaterializer.assertInitialized);
|
|
954
966
|
}
|
|
955
967
|
const backend = {
|
|
956
968
|
...operations,
|
|
957
969
|
...isSync && transactionMode === "sql" && executionAdapter.executePreparedRunBatch !== void 0 ? {
|
|
958
970
|
async trustedImport(fn) {
|
|
959
971
|
return backend.transaction(async (tx) => {
|
|
960
|
-
await
|
|
961
|
-
const indexDefinitions = await
|
|
972
|
+
await chunkXFY73JWD_cjs.assertTrustedImportDatabaseEmpty(tx, tableNames);
|
|
973
|
+
const indexDefinitions = await chunkXFY73JWD_cjs.suspendSqliteSecondaryIndexes(
|
|
962
974
|
tx,
|
|
963
975
|
tableNames
|
|
964
976
|
);
|
|
965
977
|
const result = await fn(
|
|
966
|
-
|
|
978
|
+
chunkXFY73JWD_cjs.createSqliteTrustedImportSession(executionAdapter, tableNames)
|
|
967
979
|
);
|
|
968
|
-
await
|
|
969
|
-
await
|
|
980
|
+
await chunkXFY73JWD_cjs.restoreSecondaryIndexes(tx, indexDefinitions);
|
|
981
|
+
await chunkXFY73JWD_cjs.analyzeImportedTables(tx, tableNames);
|
|
970
982
|
return result;
|
|
971
983
|
});
|
|
972
984
|
}
|
|
973
985
|
} : {},
|
|
974
986
|
async bootstrapTables() {
|
|
975
|
-
const statements =
|
|
987
|
+
const statements = chunkXFY73JWD_cjs.generateSqliteDDL(tables2, fulltextStrategy);
|
|
976
988
|
for (const statement of statements) {
|
|
977
989
|
await db.run(drizzleOrm.sql.raw(statement));
|
|
978
990
|
}
|
|
979
991
|
},
|
|
980
992
|
async ensureRevisionOriginsTable() {
|
|
981
993
|
await db.run(
|
|
982
|
-
drizzleOrm.sql.raw(
|
|
994
|
+
drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generateSqliteCreateTableSQL(tables2.revisionOrigins))
|
|
983
995
|
);
|
|
984
996
|
},
|
|
985
997
|
// Every fulltext-touching method asserts the durable marker instead
|
|
@@ -987,7 +999,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
987
999
|
// uninitialized database throws `StoreNotInitializedError` rather
|
|
988
1000
|
// than self-healing (#135). Shared verbatim with the tx-scoped gate
|
|
989
1001
|
// via `gateFulltextMethods`.
|
|
990
|
-
...
|
|
1002
|
+
...chunkXFY73JWD_cjs.gateFulltextMethods(
|
|
991
1003
|
operations,
|
|
992
1004
|
contributionMaterializer.assertInitialized
|
|
993
1005
|
),
|
|
@@ -996,7 +1008,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
996
1008
|
},
|
|
997
1009
|
async ensureIndexMaterializationsTable() {
|
|
998
1010
|
await db.run(
|
|
999
|
-
drizzleOrm.sql.raw(
|
|
1011
|
+
drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generateSqliteCreateTableSQL(tables2.indexMaterializations))
|
|
1000
1012
|
);
|
|
1001
1013
|
},
|
|
1002
1014
|
async getIndexMaterialization(indexName) {
|
|
@@ -1004,26 +1016,26 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1004
1016
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.indexName, indexName));
|
|
1005
1017
|
const row = rows[0];
|
|
1006
1018
|
if (row === void 0) return void 0;
|
|
1007
|
-
return
|
|
1019
|
+
return chunkXFY73JWD_cjs.mapMaterializationRow(row, chunkXFY73JWD_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode);
|
|
1008
1020
|
},
|
|
1009
1021
|
async getIndexMaterializations(statusKeys) {
|
|
1010
1022
|
if (statusKeys.length === 0) return [];
|
|
1011
1023
|
const t = tables2.indexMaterializations;
|
|
1012
1024
|
const rows = await db.select().from(t).where(drizzleOrm.inArray(t.indexName, [...statusKeys]));
|
|
1013
1025
|
return rows.map(
|
|
1014
|
-
(row) =>
|
|
1026
|
+
(row) => chunkXFY73JWD_cjs.mapMaterializationRow(row, chunkXFY73JWD_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode)
|
|
1015
1027
|
);
|
|
1016
1028
|
},
|
|
1017
1029
|
async recordIndexMaterialization(params) {
|
|
1018
1030
|
const t = tables2.indexMaterializations;
|
|
1019
1031
|
await db.insert(t).values(
|
|
1020
|
-
|
|
1032
|
+
chunkXFY73JWD_cjs.buildMaterializationInsertValues(
|
|
1021
1033
|
params,
|
|
1022
|
-
|
|
1034
|
+
chunkXFY73JWD_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.encode
|
|
1023
1035
|
)
|
|
1024
1036
|
).onConflictDoUpdate({
|
|
1025
1037
|
target: t.indexName,
|
|
1026
|
-
set:
|
|
1038
|
+
set: chunkXFY73JWD_cjs.buildMaterializationOnConflictSet(params.materializedAt)
|
|
1027
1039
|
});
|
|
1028
1040
|
},
|
|
1029
1041
|
async ensureContributionMaterializationsTable() {
|
|
@@ -1039,37 +1051,37 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1039
1051
|
await contributionMaterializer.assertInitialized(graphId);
|
|
1040
1052
|
},
|
|
1041
1053
|
async ensureKindRemovalsTable() {
|
|
1042
|
-
await db.run(drizzleOrm.sql.raw(
|
|
1054
|
+
await db.run(drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generateSqliteCreateTableSQL(tables2.kindRemovals)));
|
|
1043
1055
|
},
|
|
1044
1056
|
async getPendingKindRemovals(graphId) {
|
|
1045
1057
|
const t = tables2.kindRemovals;
|
|
1046
1058
|
const rows = await db.select().from(t).where(drizzleOrm.and(drizzleOrm.eq(t.graphId, graphId), drizzleOrm.isNull(t.removedAt)));
|
|
1047
1059
|
return rows.map(
|
|
1048
|
-
(row) =>
|
|
1060
|
+
(row) => chunkXFY73JWD_cjs.mapKindRemovalRow(row, chunkXFY73JWD_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1049
1061
|
);
|
|
1050
1062
|
},
|
|
1051
1063
|
async getAllKindRemovals(graphId) {
|
|
1052
1064
|
const t = tables2.kindRemovals;
|
|
1053
1065
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
|
|
1054
1066
|
return rows.map(
|
|
1055
|
-
(row) =>
|
|
1067
|
+
(row) => chunkXFY73JWD_cjs.mapKindRemovalRow(row, chunkXFY73JWD_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1056
1068
|
);
|
|
1057
1069
|
},
|
|
1058
1070
|
async recordKindRemoval(params) {
|
|
1059
1071
|
const t = tables2.kindRemovals;
|
|
1060
1072
|
await db.insert(t).values(
|
|
1061
|
-
|
|
1073
|
+
chunkXFY73JWD_cjs.buildKindRemovalInsertValues(
|
|
1062
1074
|
params,
|
|
1063
|
-
|
|
1075
|
+
chunkXFY73JWD_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.encode
|
|
1064
1076
|
)
|
|
1065
1077
|
).onConflictDoUpdate({
|
|
1066
1078
|
target: [t.graphId, t.kindName, t.entity, t.schemaVersion],
|
|
1067
|
-
set:
|
|
1079
|
+
set: chunkXFY73JWD_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
|
|
1068
1080
|
});
|
|
1069
1081
|
},
|
|
1070
1082
|
async ensureReconciliationMarkersTable() {
|
|
1071
1083
|
await db.run(
|
|
1072
|
-
drizzleOrm.sql.raw(
|
|
1084
|
+
drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generateSqliteCreateTableSQL(tables2.reconciliationMarkers))
|
|
1073
1085
|
);
|
|
1074
1086
|
},
|
|
1075
1087
|
async ensureRuntimeContributions(graphId) {
|
|
@@ -1118,16 +1130,29 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1118
1130
|
},
|
|
1119
1131
|
async refreshStatistics() {
|
|
1120
1132
|
await db.run(
|
|
1121
|
-
|
|
1133
|
+
chunkDOVMTPKE_cjs.toDrizzleSql(
|
|
1134
|
+
chunkX6RDQ5NB_cjs.sql`PRAGMA analysis_limit = ${chunkX6RDQ5NB_cjs.sql.raw(String(SQLITE_ANALYZE_ROW_LIMIT))}`,
|
|
1135
|
+
"sqlite"
|
|
1136
|
+
)
|
|
1122
1137
|
);
|
|
1123
1138
|
for (const tableName of coreAnalyzeTables) {
|
|
1124
|
-
await db.run(
|
|
1139
|
+
await db.run(
|
|
1140
|
+
chunkDOVMTPKE_cjs.toDrizzleSql(
|
|
1141
|
+
chunkX6RDQ5NB_cjs.sql`ANALYZE ${chunkX6RDQ5NB_cjs.sql.identifier(tableName)}`,
|
|
1142
|
+
"sqlite"
|
|
1143
|
+
)
|
|
1144
|
+
);
|
|
1125
1145
|
}
|
|
1126
1146
|
for (const tableName of recordedAnalyzeTables) {
|
|
1127
1147
|
try {
|
|
1128
|
-
await db.run(
|
|
1148
|
+
await db.run(
|
|
1149
|
+
chunkDOVMTPKE_cjs.toDrizzleSql(
|
|
1150
|
+
chunkX6RDQ5NB_cjs.sql`ANALYZE ${chunkX6RDQ5NB_cjs.sql.identifier(tableName)}`,
|
|
1151
|
+
"sqlite"
|
|
1152
|
+
)
|
|
1153
|
+
);
|
|
1129
1154
|
} catch (error) {
|
|
1130
|
-
if (!
|
|
1155
|
+
if (!chunkO5H62ZWJ_cjs.isMissingTableError(error)) throw error;
|
|
1131
1156
|
}
|
|
1132
1157
|
}
|
|
1133
1158
|
},
|
|
@@ -1142,9 +1167,12 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1142
1167
|
);
|
|
1143
1168
|
},
|
|
1144
1169
|
async transaction(fn, options2) {
|
|
1145
|
-
|
|
1170
|
+
return backend.transactionWithNative((tx) => fn(tx), options2);
|
|
1171
|
+
},
|
|
1172
|
+
async transactionWithNative(fn, options2) {
|
|
1173
|
+
const temporaryWrites = options2?.temporaryWrites === chunkGNPGGLAE_cjs.INTERNAL_TEMPORARY_WRITES;
|
|
1146
1174
|
if (temporaryWrites && options2.accessMode !== "read_only") {
|
|
1147
|
-
throw new
|
|
1175
|
+
throw new chunkSAFZ6JTI_cjs.ConfigurationError(
|
|
1148
1176
|
"Temporary-write transactions must be semantically read-only.",
|
|
1149
1177
|
{ dialect: "sqlite" }
|
|
1150
1178
|
);
|
|
@@ -1172,7 +1200,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1172
1200
|
);
|
|
1173
1201
|
try {
|
|
1174
1202
|
const result = await fn(
|
|
1175
|
-
|
|
1203
|
+
chunkXFY73JWD_cjs.gateFulltext(
|
|
1176
1204
|
txBackend,
|
|
1177
1205
|
contributionMaterializer.assertInitialized
|
|
1178
1206
|
),
|
|
@@ -1204,7 +1232,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1204
1232
|
"Cross-store atomicity is unavailable on this SQLite backend: transactions are disabled (transactionMode: 'none'). Adopting an external transaction here would let the caller's relational write commit with no way to roll back the graph write. Configure a driver that supports transactions (better-sqlite3, libsql, bun:sqlite)."
|
|
1205
1233
|
);
|
|
1206
1234
|
}
|
|
1207
|
-
|
|
1235
|
+
chunkXFY73JWD_cjs.assertAdoptedDialect(
|
|
1208
1236
|
externalTx,
|
|
1209
1237
|
sqliteCore.BaseSQLiteDatabase,
|
|
1210
1238
|
"sqlite"
|
|
@@ -1235,5 +1263,5 @@ function createTransactionBackend(options) {
|
|
|
1235
1263
|
}
|
|
1236
1264
|
|
|
1237
1265
|
exports.createSqliteBackend = createSqliteBackend;
|
|
1238
|
-
//# sourceMappingURL=chunk-
|
|
1239
|
-
//# sourceMappingURL=chunk-
|
|
1266
|
+
//# sourceMappingURL=chunk-YLINFV7Z.cjs.map
|
|
1267
|
+
//# sourceMappingURL=chunk-YLINFV7Z.cjs.map
|