@nicia-ai/typegraph 0.37.0 → 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-NBP2WTJW.cjs → chunk-2SL7OGPR.cjs} +2900 -1597
- 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-552KNYQJ.js → chunk-A2FGSWMQ.js} +1907 -607
- 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-J4IUSYFF.js → chunk-TE5ZA4VX.js} +69 -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-JBNOGRKW.cjs → chunk-YLINFV7Z.cjs} +157 -115
- 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-552KNYQJ.js.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-EXU3RASM.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-J4IUSYFF.js.map +0 -1
- package/dist/chunk-JBNOGRKW.cjs.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-NBP2WTJW.cjs.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-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,26 +391,36 @@ 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) {
|
|
405
411
|
const requested = override ?? profile.maxBindParameters;
|
|
406
412
|
return profile.hardMaxBindParameters === void 0 ? requested : Math.min(requested, profile.hardMaxBindParameters);
|
|
407
413
|
}
|
|
414
|
+
function resolveSqliteGraphAnalyticsCapabilities(profile, override) {
|
|
415
|
+
const requested = override ?? chunkGNPGGLAE_cjs.SQLITE_CAPABILITIES.graphAnalytics ?? {
|
|
416
|
+
supported: false,
|
|
417
|
+
mathFunctions: false
|
|
418
|
+
};
|
|
419
|
+
if (profile.transactionMode !== "do-sqlite" && profile.transactionMode !== "none") {
|
|
420
|
+
return requested;
|
|
421
|
+
}
|
|
422
|
+
return { ...requested, supported: false };
|
|
423
|
+
}
|
|
408
424
|
function createSqliteOperationBackend(options) {
|
|
409
425
|
const {
|
|
410
426
|
capabilities,
|
|
@@ -422,7 +438,7 @@ function createSqliteOperationBackend(options) {
|
|
|
422
438
|
function execGet(query) {
|
|
423
439
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
424
440
|
if (compiledExecute === void 0) {
|
|
425
|
-
const rows2 = await
|
|
441
|
+
const rows2 = await executionAdapter.execute(query);
|
|
426
442
|
return rows2[0];
|
|
427
443
|
}
|
|
428
444
|
const rows = await compiledExecute(executionAdapter.compile(query));
|
|
@@ -432,7 +448,7 @@ function createSqliteOperationBackend(options) {
|
|
|
432
448
|
function execAll(query) {
|
|
433
449
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
434
450
|
if (compiledExecute === void 0) {
|
|
435
|
-
return await
|
|
451
|
+
return [...await executionAdapter.execute(query)];
|
|
436
452
|
}
|
|
437
453
|
return [...await compiledExecute(executionAdapter.compile(query))];
|
|
438
454
|
});
|
|
@@ -440,23 +456,25 @@ function createSqliteOperationBackend(options) {
|
|
|
440
456
|
function execRun(query) {
|
|
441
457
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
442
458
|
if (compiledRun === void 0) {
|
|
443
|
-
await db.run(
|
|
459
|
+
await db.run(
|
|
460
|
+
chunkX6RDQ5NB_cjs.isSqlFragment(query) ? chunkDOVMTPKE_cjs.toDrizzleSql(query, "sqlite") : query
|
|
461
|
+
);
|
|
444
462
|
return;
|
|
445
463
|
}
|
|
446
464
|
await compiledRun(executionAdapter.compile(query));
|
|
447
465
|
});
|
|
448
466
|
}
|
|
449
467
|
const batchConfig = computeSqliteBatchChunkSizes(
|
|
450
|
-
capabilities.maxBindParameters ??
|
|
468
|
+
capabilities.maxBindParameters ?? chunkGNPGGLAE_cjs.SQLITE_MAX_BIND_PARAMETERS
|
|
451
469
|
);
|
|
452
|
-
const commonBackend =
|
|
470
|
+
const commonBackend = chunkXFY73JWD_cjs.createCommonOperationBackend({
|
|
453
471
|
batchConfig,
|
|
454
472
|
execution: {
|
|
455
473
|
execAll,
|
|
456
474
|
execGet,
|
|
457
475
|
execRun
|
|
458
476
|
},
|
|
459
|
-
nowIso:
|
|
477
|
+
nowIso: chunkE6TXEISH_cjs.nowIso,
|
|
460
478
|
operationStrategy,
|
|
461
479
|
rowMappers: {
|
|
462
480
|
toEdgeRow,
|
|
@@ -476,28 +494,28 @@ function createSqliteOperationBackend(options) {
|
|
|
476
494
|
};
|
|
477
495
|
const vectorEmbeddingMethods = vectorStrategy === void 0 ? {} : {
|
|
478
496
|
async upsertEmbedding(params) {
|
|
479
|
-
const slot =
|
|
497
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
|
|
480
498
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
481
|
-
const statements = vectorStrategy.buildUpsert(slot, params,
|
|
499
|
+
const statements = vectorStrategy.buildUpsert(slot, params, chunkE6TXEISH_cjs.nowIso());
|
|
482
500
|
try {
|
|
483
501
|
for (const statement of statements) {
|
|
484
502
|
await execRun(statement);
|
|
485
503
|
}
|
|
486
504
|
} catch (error) {
|
|
487
|
-
throw
|
|
505
|
+
throw chunkXFY73JWD_cjs.mapVectorWriteError(error, params);
|
|
488
506
|
}
|
|
489
507
|
},
|
|
490
508
|
async upsertEmbeddingBatch(params) {
|
|
491
509
|
if (params.rows.length === 0) return;
|
|
492
|
-
const slot =
|
|
510
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
|
|
493
511
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
494
512
|
const rowsById = new Map(
|
|
495
513
|
params.rows.map((row) => [row.nodeId, row])
|
|
496
514
|
);
|
|
497
515
|
const rows = [...rowsById.values()];
|
|
498
|
-
const timestamp =
|
|
516
|
+
const timestamp = chunkE6TXEISH_cjs.nowIso();
|
|
499
517
|
try {
|
|
500
|
-
for (const chunk2 of
|
|
518
|
+
for (const chunk2 of chunkZDH3DX3C_cjs.chunk(
|
|
501
519
|
rows,
|
|
502
520
|
batchConfig.embeddingUpsertBatchSize
|
|
503
521
|
)) {
|
|
@@ -526,11 +544,11 @@ function createSqliteOperationBackend(options) {
|
|
|
526
544
|
}
|
|
527
545
|
}
|
|
528
546
|
} catch (error) {
|
|
529
|
-
throw
|
|
547
|
+
throw chunkXFY73JWD_cjs.mapVectorWriteError(error, params);
|
|
530
548
|
}
|
|
531
549
|
},
|
|
532
550
|
async deleteEmbedding(params) {
|
|
533
|
-
const slot =
|
|
551
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
|
|
534
552
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
535
553
|
const statements = vectorStrategy.buildDelete(slot, params);
|
|
536
554
|
for (const statement of statements) {
|
|
@@ -538,23 +556,25 @@ function createSqliteOperationBackend(options) {
|
|
|
538
556
|
}
|
|
539
557
|
},
|
|
540
558
|
async vectorSearch(params) {
|
|
541
|
-
|
|
542
|
-
const slot =
|
|
559
|
+
chunkZKZAIX42_cjs.assertVectorSearchLimit(params.limit);
|
|
560
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
|
|
543
561
|
const query = vectorStrategy.buildSearch(
|
|
544
562
|
slot,
|
|
545
563
|
params,
|
|
546
564
|
// Store-compiled candidates (predicates + subclass + currency)
|
|
547
565
|
// take precedence; the live-node default covers direct backend use.
|
|
548
|
-
params.candidates ??
|
|
566
|
+
params.candidates ?? chunkXFY73JWD_cjs.buildLiveNodeCandidates(
|
|
567
|
+
tableNames.nodes,
|
|
549
568
|
params.graphId,
|
|
550
|
-
params.nodeKind
|
|
569
|
+
params.nodeKind,
|
|
570
|
+
chunkE6TXEISH_cjs.nowIso()
|
|
551
571
|
)
|
|
552
572
|
);
|
|
553
573
|
let rows;
|
|
554
574
|
try {
|
|
555
575
|
rows = await execAll(query);
|
|
556
576
|
} catch (error) {
|
|
557
|
-
throw
|
|
577
|
+
throw chunkXFY73JWD_cjs.mapVectorWriteError(error, params);
|
|
558
578
|
}
|
|
559
579
|
return rows.map((row) => ({
|
|
560
580
|
nodeId: row.node_id,
|
|
@@ -566,9 +586,9 @@ function createSqliteOperationBackend(options) {
|
|
|
566
586
|
// fallback by simply not exposing the member.
|
|
567
587
|
...capabilities.windowFunctions ? {
|
|
568
588
|
async hybridSearch(params) {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
const slot =
|
|
589
|
+
chunkZKZAIX42_cjs.assertVectorSearchLimit(params.limit);
|
|
590
|
+
chunkZKZAIX42_cjs.assertVectorSearchLimit(params.vector.k);
|
|
591
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromParams({
|
|
572
592
|
graphId: params.graphId,
|
|
573
593
|
nodeKind: params.nodeKind,
|
|
574
594
|
fieldPath: params.vector.fieldPath,
|
|
@@ -576,9 +596,11 @@ function createSqliteOperationBackend(options) {
|
|
|
576
596
|
metric: params.vector.metric,
|
|
577
597
|
indexType: params.vector.indexType
|
|
578
598
|
});
|
|
579
|
-
const candidates = params.candidates ??
|
|
599
|
+
const candidates = params.candidates ?? chunkXFY73JWD_cjs.buildLiveNodeCandidates(
|
|
600
|
+
tableNames.nodes,
|
|
580
601
|
params.graphId,
|
|
581
|
-
params.nodeKind
|
|
602
|
+
params.nodeKind,
|
|
603
|
+
chunkE6TXEISH_cjs.nowIso()
|
|
582
604
|
);
|
|
583
605
|
const vectorParams = {
|
|
584
606
|
graphId: params.graphId,
|
|
@@ -594,20 +616,20 @@ function createSqliteOperationBackend(options) {
|
|
|
594
616
|
const vectorSql = vectorStrategy.buildSearch(
|
|
595
617
|
slot,
|
|
596
618
|
vectorParams,
|
|
597
|
-
|
|
619
|
+
chunkX6RDQ5NB_cjs.sql.raw("SELECT node_id FROM tg_hybrid_cand")
|
|
598
620
|
);
|
|
599
621
|
const statement = operationStrategy.buildHybridSearch(
|
|
600
622
|
{ ...params, candidates },
|
|
601
|
-
vectorSql,
|
|
623
|
+
chunkDOVMTPKE_cjs.toDrizzleSql(vectorSql, "sqlite"),
|
|
602
624
|
params.vector.metric === "cosine"
|
|
603
625
|
);
|
|
604
626
|
let raw;
|
|
605
627
|
try {
|
|
606
628
|
raw = await execAll(statement);
|
|
607
629
|
} catch (error) {
|
|
608
|
-
throw
|
|
630
|
+
throw chunkXFY73JWD_cjs.mapVectorWriteError(error, vectorParams);
|
|
609
631
|
}
|
|
610
|
-
return raw.map((row) =>
|
|
632
|
+
return raw.map((row) => chunkXFY73JWD_cjs.mapHybridSearchRow(row, toNodeRow));
|
|
611
633
|
}
|
|
612
634
|
} : {}
|
|
613
635
|
};
|
|
@@ -622,7 +644,7 @@ function createSqliteOperationBackend(options) {
|
|
|
622
644
|
...vectorStrategy === void 0 ? {} : { vectorStrategy },
|
|
623
645
|
async createVectorIndex(params) {
|
|
624
646
|
if (vectorStrategy === void 0) return;
|
|
625
|
-
const slot =
|
|
647
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromCreateIndexParams(params);
|
|
626
648
|
await contributionMaterializer.ensureVectorSlot(slot);
|
|
627
649
|
const indexStatement = vectorStrategy.buildCreateIndex?.(slot);
|
|
628
650
|
if (indexStatement !== void 0) {
|
|
@@ -631,18 +653,18 @@ function createSqliteOperationBackend(options) {
|
|
|
631
653
|
},
|
|
632
654
|
async dropVectorIndex(params) {
|
|
633
655
|
if (vectorStrategy === void 0) return;
|
|
634
|
-
const slot =
|
|
656
|
+
const slot = chunkXFY73JWD_cjs.vectorSlotFromDropIndexParams(params);
|
|
635
657
|
const dropStatement = vectorStrategy.buildDropIndex?.(slot);
|
|
636
658
|
if (dropStatement === void 0) return;
|
|
637
659
|
try {
|
|
638
660
|
await execRun(dropStatement);
|
|
639
661
|
} catch (error) {
|
|
640
|
-
if (!
|
|
662
|
+
if (!chunkO5H62ZWJ_cjs.isMissingTableError(error)) throw error;
|
|
641
663
|
}
|
|
642
664
|
},
|
|
643
665
|
// === Fulltext Operations ===
|
|
644
666
|
async upsertFulltext(params) {
|
|
645
|
-
const timestamp =
|
|
667
|
+
const timestamp = chunkE6TXEISH_cjs.nowIso();
|
|
646
668
|
const statements = operationStrategy.buildUpsertFulltext(
|
|
647
669
|
params,
|
|
648
670
|
timestamp
|
|
@@ -659,8 +681,8 @@ function createSqliteOperationBackend(options) {
|
|
|
659
681
|
},
|
|
660
682
|
async upsertFulltextBatch(params) {
|
|
661
683
|
if (params.rows.length === 0) return;
|
|
662
|
-
const timestamp =
|
|
663
|
-
for (const rows of
|
|
684
|
+
const timestamp = chunkE6TXEISH_cjs.nowIso();
|
|
685
|
+
for (const rows of chunkZDH3DX3C_cjs.chunk(
|
|
664
686
|
params.rows,
|
|
665
687
|
batchConfig.fulltextUpsertBatchSize
|
|
666
688
|
)) {
|
|
@@ -675,7 +697,7 @@ function createSqliteOperationBackend(options) {
|
|
|
675
697
|
},
|
|
676
698
|
async deleteFulltextBatch(params) {
|
|
677
699
|
if (params.nodeIds.length === 0) return;
|
|
678
|
-
for (const nodeIds of
|
|
700
|
+
for (const nodeIds of chunkZDH3DX3C_cjs.chunk(
|
|
679
701
|
params.nodeIds,
|
|
680
702
|
batchConfig.fulltextDeleteChunkSize
|
|
681
703
|
)) {
|
|
@@ -693,7 +715,7 @@ function createSqliteOperationBackend(options) {
|
|
|
693
715
|
const rows = await execAll(query);
|
|
694
716
|
return rows.map((row, index) => ({
|
|
695
717
|
nodeId: row.node_id,
|
|
696
|
-
score:
|
|
718
|
+
score: chunkE6TXEISH_cjs.coerceNumericScore(row.score),
|
|
697
719
|
rank: index + 1,
|
|
698
720
|
...row.snippet === null ? {} : { snippet: row.snippet }
|
|
699
721
|
}));
|
|
@@ -712,14 +734,14 @@ function createSqliteOperationBackend(options) {
|
|
|
712
734
|
return operationBackend;
|
|
713
735
|
}
|
|
714
736
|
function createSqliteBackend(db, options = {}) {
|
|
715
|
-
const tables2 = options.tables ??
|
|
716
|
-
const fulltextStrategy = options.fulltext ??
|
|
737
|
+
const tables2 = options.tables ?? chunkEOJFGECD_cjs.tables;
|
|
738
|
+
const fulltextStrategy = options.fulltext ?? chunkZKZAIX42_cjs.fts5Strategy;
|
|
717
739
|
const profileHints = options.executionProfile ?? {};
|
|
718
740
|
const executionAdapter = createSqliteExecutionAdapter(db, { profileHints });
|
|
719
741
|
const { isSync, transactionMode } = executionAdapter.profile;
|
|
720
742
|
const vectorStrategy = options.vector;
|
|
721
743
|
const capabilityOverrides = options.capabilities ?? {};
|
|
722
|
-
const capabilities =
|
|
744
|
+
const capabilities = chunkGNPGGLAE_cjs.normalizeGraphAnalyticsCapabilities({
|
|
723
745
|
...buildSqliteCapabilities({
|
|
724
746
|
fulltextStrategy,
|
|
725
747
|
vectorStrategy,
|
|
@@ -730,6 +752,10 @@ function createSqliteBackend(db, options = {}) {
|
|
|
730
752
|
maxBindParameters: resolveMaxBindParametersCapability(
|
|
731
753
|
executionAdapter.profile,
|
|
732
754
|
capabilityOverrides.maxBindParameters
|
|
755
|
+
),
|
|
756
|
+
graphAnalytics: resolveSqliteGraphAnalyticsCapabilities(
|
|
757
|
+
executionAdapter.profile,
|
|
758
|
+
capabilityOverrides.graphAnalytics
|
|
733
759
|
)
|
|
734
760
|
});
|
|
735
761
|
const tableNames = {
|
|
@@ -753,14 +779,14 @@ function createSqliteBackend(db, options = {}) {
|
|
|
753
779
|
tableNames.recordedEdges,
|
|
754
780
|
tableNames.recordedClock
|
|
755
781
|
];
|
|
756
|
-
const operationStrategy =
|
|
782
|
+
const operationStrategy = chunkXFY73JWD_cjs.createSqliteOperationStrategy(
|
|
757
783
|
tables2,
|
|
758
784
|
fulltextStrategy
|
|
759
785
|
);
|
|
760
786
|
const serializedQueue = transactionMode === "none" ? void 0 : createSerializedExecutionQueue();
|
|
761
787
|
const matTable = tables2.contributionMaterializations;
|
|
762
788
|
async function ensureContributionMaterializationsTableImpl() {
|
|
763
|
-
await db.run(drizzleOrm.sql.raw(
|
|
789
|
+
await db.run(drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generateSqliteCreateTableSQL(matTable)));
|
|
764
790
|
}
|
|
765
791
|
async function getContributionMaterializationRow(identity) {
|
|
766
792
|
const rows = await db.select().from(matTable).where(
|
|
@@ -773,25 +799,25 @@ function createSqliteBackend(db, options = {}) {
|
|
|
773
799
|
);
|
|
774
800
|
const row = rows[0];
|
|
775
801
|
if (row === void 0) return void 0;
|
|
776
|
-
return
|
|
802
|
+
return chunkXFY73JWD_cjs.mapContributionMaterializationRow(
|
|
777
803
|
row,
|
|
778
|
-
|
|
804
|
+
chunkXFY73JWD_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
779
805
|
);
|
|
780
806
|
}
|
|
781
807
|
async function getContributionMaterializationRows(graphId) {
|
|
782
808
|
const rows = await db.select().from(matTable).where(drizzleOrm.eq(matTable.graphId, graphId));
|
|
783
809
|
return rows.map(
|
|
784
|
-
(row) =>
|
|
810
|
+
(row) => chunkXFY73JWD_cjs.mapContributionMaterializationRow(
|
|
785
811
|
row,
|
|
786
|
-
|
|
812
|
+
chunkXFY73JWD_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
787
813
|
)
|
|
788
814
|
);
|
|
789
815
|
}
|
|
790
816
|
async function recordContributionMaterializationRow(params) {
|
|
791
817
|
await db.insert(matTable).values(
|
|
792
|
-
|
|
818
|
+
chunkXFY73JWD_cjs.buildContributionInsertValues(
|
|
793
819
|
params,
|
|
794
|
-
|
|
820
|
+
chunkXFY73JWD_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.encode
|
|
795
821
|
)
|
|
796
822
|
).onConflictDoUpdate({
|
|
797
823
|
target: [
|
|
@@ -800,7 +826,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
800
826
|
matTable.owner,
|
|
801
827
|
matTable.tableName
|
|
802
828
|
],
|
|
803
|
-
set:
|
|
829
|
+
set: chunkXFY73JWD_cjs.buildContributionOnConflictSet(
|
|
804
830
|
matTable.materializedAt,
|
|
805
831
|
params.materializedAt
|
|
806
832
|
)
|
|
@@ -816,7 +842,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
816
842
|
)
|
|
817
843
|
);
|
|
818
844
|
}
|
|
819
|
-
const contributionMaterializer =
|
|
845
|
+
const contributionMaterializer = chunkXFY73JWD_cjs.createContributionMaterializer({
|
|
820
846
|
dialect: "sqlite",
|
|
821
847
|
fulltextStrategy,
|
|
822
848
|
fulltextTableName: tables2.fulltextTableName,
|
|
@@ -936,36 +962,36 @@ function createSqliteBackend(db, options = {}) {
|
|
|
936
962
|
vectorStrategy,
|
|
937
963
|
contributionMaterializer
|
|
938
964
|
});
|
|
939
|
-
return
|
|
965
|
+
return chunkXFY73JWD_cjs.gateFulltext(txBackend, contributionMaterializer.assertInitialized);
|
|
940
966
|
}
|
|
941
967
|
const backend = {
|
|
942
968
|
...operations,
|
|
943
969
|
...isSync && transactionMode === "sql" && executionAdapter.executePreparedRunBatch !== void 0 ? {
|
|
944
970
|
async trustedImport(fn) {
|
|
945
971
|
return backend.transaction(async (tx) => {
|
|
946
|
-
await
|
|
947
|
-
const indexDefinitions = await
|
|
972
|
+
await chunkXFY73JWD_cjs.assertTrustedImportDatabaseEmpty(tx, tableNames);
|
|
973
|
+
const indexDefinitions = await chunkXFY73JWD_cjs.suspendSqliteSecondaryIndexes(
|
|
948
974
|
tx,
|
|
949
975
|
tableNames
|
|
950
976
|
);
|
|
951
977
|
const result = await fn(
|
|
952
|
-
|
|
978
|
+
chunkXFY73JWD_cjs.createSqliteTrustedImportSession(executionAdapter, tableNames)
|
|
953
979
|
);
|
|
954
|
-
await
|
|
955
|
-
await
|
|
980
|
+
await chunkXFY73JWD_cjs.restoreSecondaryIndexes(tx, indexDefinitions);
|
|
981
|
+
await chunkXFY73JWD_cjs.analyzeImportedTables(tx, tableNames);
|
|
956
982
|
return result;
|
|
957
983
|
});
|
|
958
984
|
}
|
|
959
985
|
} : {},
|
|
960
986
|
async bootstrapTables() {
|
|
961
|
-
const statements =
|
|
987
|
+
const statements = chunkXFY73JWD_cjs.generateSqliteDDL(tables2, fulltextStrategy);
|
|
962
988
|
for (const statement of statements) {
|
|
963
989
|
await db.run(drizzleOrm.sql.raw(statement));
|
|
964
990
|
}
|
|
965
991
|
},
|
|
966
992
|
async ensureRevisionOriginsTable() {
|
|
967
993
|
await db.run(
|
|
968
|
-
drizzleOrm.sql.raw(
|
|
994
|
+
drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generateSqliteCreateTableSQL(tables2.revisionOrigins))
|
|
969
995
|
);
|
|
970
996
|
},
|
|
971
997
|
// Every fulltext-touching method asserts the durable marker instead
|
|
@@ -973,7 +999,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
973
999
|
// uninitialized database throws `StoreNotInitializedError` rather
|
|
974
1000
|
// than self-healing (#135). Shared verbatim with the tx-scoped gate
|
|
975
1001
|
// via `gateFulltextMethods`.
|
|
976
|
-
...
|
|
1002
|
+
...chunkXFY73JWD_cjs.gateFulltextMethods(
|
|
977
1003
|
operations,
|
|
978
1004
|
contributionMaterializer.assertInitialized
|
|
979
1005
|
),
|
|
@@ -982,7 +1008,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
982
1008
|
},
|
|
983
1009
|
async ensureIndexMaterializationsTable() {
|
|
984
1010
|
await db.run(
|
|
985
|
-
drizzleOrm.sql.raw(
|
|
1011
|
+
drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generateSqliteCreateTableSQL(tables2.indexMaterializations))
|
|
986
1012
|
);
|
|
987
1013
|
},
|
|
988
1014
|
async getIndexMaterialization(indexName) {
|
|
@@ -990,26 +1016,26 @@ function createSqliteBackend(db, options = {}) {
|
|
|
990
1016
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.indexName, indexName));
|
|
991
1017
|
const row = rows[0];
|
|
992
1018
|
if (row === void 0) return void 0;
|
|
993
|
-
return
|
|
1019
|
+
return chunkXFY73JWD_cjs.mapMaterializationRow(row, chunkXFY73JWD_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode);
|
|
994
1020
|
},
|
|
995
1021
|
async getIndexMaterializations(statusKeys) {
|
|
996
1022
|
if (statusKeys.length === 0) return [];
|
|
997
1023
|
const t = tables2.indexMaterializations;
|
|
998
1024
|
const rows = await db.select().from(t).where(drizzleOrm.inArray(t.indexName, [...statusKeys]));
|
|
999
1025
|
return rows.map(
|
|
1000
|
-
(row) =>
|
|
1026
|
+
(row) => chunkXFY73JWD_cjs.mapMaterializationRow(row, chunkXFY73JWD_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode)
|
|
1001
1027
|
);
|
|
1002
1028
|
},
|
|
1003
1029
|
async recordIndexMaterialization(params) {
|
|
1004
1030
|
const t = tables2.indexMaterializations;
|
|
1005
1031
|
await db.insert(t).values(
|
|
1006
|
-
|
|
1032
|
+
chunkXFY73JWD_cjs.buildMaterializationInsertValues(
|
|
1007
1033
|
params,
|
|
1008
|
-
|
|
1034
|
+
chunkXFY73JWD_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.encode
|
|
1009
1035
|
)
|
|
1010
1036
|
).onConflictDoUpdate({
|
|
1011
1037
|
target: t.indexName,
|
|
1012
|
-
set:
|
|
1038
|
+
set: chunkXFY73JWD_cjs.buildMaterializationOnConflictSet(params.materializedAt)
|
|
1013
1039
|
});
|
|
1014
1040
|
},
|
|
1015
1041
|
async ensureContributionMaterializationsTable() {
|
|
@@ -1025,37 +1051,37 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1025
1051
|
await contributionMaterializer.assertInitialized(graphId);
|
|
1026
1052
|
},
|
|
1027
1053
|
async ensureKindRemovalsTable() {
|
|
1028
|
-
await db.run(drizzleOrm.sql.raw(
|
|
1054
|
+
await db.run(drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generateSqliteCreateTableSQL(tables2.kindRemovals)));
|
|
1029
1055
|
},
|
|
1030
1056
|
async getPendingKindRemovals(graphId) {
|
|
1031
1057
|
const t = tables2.kindRemovals;
|
|
1032
1058
|
const rows = await db.select().from(t).where(drizzleOrm.and(drizzleOrm.eq(t.graphId, graphId), drizzleOrm.isNull(t.removedAt)));
|
|
1033
1059
|
return rows.map(
|
|
1034
|
-
(row) =>
|
|
1060
|
+
(row) => chunkXFY73JWD_cjs.mapKindRemovalRow(row, chunkXFY73JWD_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1035
1061
|
);
|
|
1036
1062
|
},
|
|
1037
1063
|
async getAllKindRemovals(graphId) {
|
|
1038
1064
|
const t = tables2.kindRemovals;
|
|
1039
1065
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
|
|
1040
1066
|
return rows.map(
|
|
1041
|
-
(row) =>
|
|
1067
|
+
(row) => chunkXFY73JWD_cjs.mapKindRemovalRow(row, chunkXFY73JWD_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1042
1068
|
);
|
|
1043
1069
|
},
|
|
1044
1070
|
async recordKindRemoval(params) {
|
|
1045
1071
|
const t = tables2.kindRemovals;
|
|
1046
1072
|
await db.insert(t).values(
|
|
1047
|
-
|
|
1073
|
+
chunkXFY73JWD_cjs.buildKindRemovalInsertValues(
|
|
1048
1074
|
params,
|
|
1049
|
-
|
|
1075
|
+
chunkXFY73JWD_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.encode
|
|
1050
1076
|
)
|
|
1051
1077
|
).onConflictDoUpdate({
|
|
1052
1078
|
target: [t.graphId, t.kindName, t.entity, t.schemaVersion],
|
|
1053
|
-
set:
|
|
1079
|
+
set: chunkXFY73JWD_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
|
|
1054
1080
|
});
|
|
1055
1081
|
},
|
|
1056
1082
|
async ensureReconciliationMarkersTable() {
|
|
1057
1083
|
await db.run(
|
|
1058
|
-
drizzleOrm.sql.raw(
|
|
1084
|
+
drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generateSqliteCreateTableSQL(tables2.reconciliationMarkers))
|
|
1059
1085
|
);
|
|
1060
1086
|
},
|
|
1061
1087
|
async ensureRuntimeContributions(graphId) {
|
|
@@ -1104,16 +1130,29 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1104
1130
|
},
|
|
1105
1131
|
async refreshStatistics() {
|
|
1106
1132
|
await db.run(
|
|
1107
|
-
|
|
1133
|
+
chunkDOVMTPKE_cjs.toDrizzleSql(
|
|
1134
|
+
chunkX6RDQ5NB_cjs.sql`PRAGMA analysis_limit = ${chunkX6RDQ5NB_cjs.sql.raw(String(SQLITE_ANALYZE_ROW_LIMIT))}`,
|
|
1135
|
+
"sqlite"
|
|
1136
|
+
)
|
|
1108
1137
|
);
|
|
1109
1138
|
for (const tableName of coreAnalyzeTables) {
|
|
1110
|
-
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
|
+
);
|
|
1111
1145
|
}
|
|
1112
1146
|
for (const tableName of recordedAnalyzeTables) {
|
|
1113
1147
|
try {
|
|
1114
|
-
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
|
+
);
|
|
1115
1154
|
} catch (error) {
|
|
1116
|
-
if (!
|
|
1155
|
+
if (!chunkO5H62ZWJ_cjs.isMissingTableError(error)) throw error;
|
|
1117
1156
|
}
|
|
1118
1157
|
}
|
|
1119
1158
|
},
|
|
@@ -1128,9 +1167,12 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1128
1167
|
);
|
|
1129
1168
|
},
|
|
1130
1169
|
async transaction(fn, options2) {
|
|
1131
|
-
|
|
1170
|
+
return backend.transactionWithNative((tx) => fn(tx), options2);
|
|
1171
|
+
},
|
|
1172
|
+
async transactionWithNative(fn, options2) {
|
|
1173
|
+
const temporaryWrites = options2?.temporaryWrites === chunkGNPGGLAE_cjs.INTERNAL_TEMPORARY_WRITES;
|
|
1132
1174
|
if (temporaryWrites && options2.accessMode !== "read_only") {
|
|
1133
|
-
throw new
|
|
1175
|
+
throw new chunkSAFZ6JTI_cjs.ConfigurationError(
|
|
1134
1176
|
"Temporary-write transactions must be semantically read-only.",
|
|
1135
1177
|
{ dialect: "sqlite" }
|
|
1136
1178
|
);
|
|
@@ -1158,7 +1200,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1158
1200
|
);
|
|
1159
1201
|
try {
|
|
1160
1202
|
const result = await fn(
|
|
1161
|
-
|
|
1203
|
+
chunkXFY73JWD_cjs.gateFulltext(
|
|
1162
1204
|
txBackend,
|
|
1163
1205
|
contributionMaterializer.assertInitialized
|
|
1164
1206
|
),
|
|
@@ -1190,7 +1232,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1190
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)."
|
|
1191
1233
|
);
|
|
1192
1234
|
}
|
|
1193
|
-
|
|
1235
|
+
chunkXFY73JWD_cjs.assertAdoptedDialect(
|
|
1194
1236
|
externalTx,
|
|
1195
1237
|
sqliteCore.BaseSQLiteDatabase,
|
|
1196
1238
|
"sqlite"
|
|
@@ -1221,5 +1263,5 @@ function createTransactionBackend(options) {
|
|
|
1221
1263
|
}
|
|
1222
1264
|
|
|
1223
1265
|
exports.createSqliteBackend = createSqliteBackend;
|
|
1224
|
-
//# sourceMappingURL=chunk-
|
|
1225
|
-
//# sourceMappingURL=chunk-
|
|
1266
|
+
//# sourceMappingURL=chunk-YLINFV7Z.cjs.map
|
|
1267
|
+
//# sourceMappingURL=chunk-YLINFV7Z.cjs.map
|