@nicia-ai/typegraph 0.42.1 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/drizzle/indexes.cjs +9 -9
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +5 -5
- package/dist/backend/index.cjs +50 -50
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +11 -11
- package/dist/backend/postgres/index.cjs +26 -26
- package/dist/backend/postgres/index.d.cts +6 -5
- package/dist/backend/postgres/index.d.ts +6 -5
- package/dist/backend/postgres/index.js +13 -13
- package/dist/backend/postgres/pglite-store.cjs +33 -33
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +7 -7
- package/dist/backend/postgres/pglite-store.d.ts +7 -7
- package/dist/backend/postgres/pglite-store.js +29 -29
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +15 -15
- package/dist/backend/postgres/pglite.d.cts +3 -2
- package/dist/backend/postgres/pglite.d.ts +3 -2
- package/dist/backend/postgres/pglite.js +14 -14
- package/dist/backend/sqlite/index.cjs +23 -23
- package/dist/backend/sqlite/index.d.cts +7 -6
- package/dist/backend/sqlite/index.d.ts +7 -6
- package/dist/backend/sqlite/index.js +11 -11
- package/dist/backend/sqlite/libsql.cjs +17 -17
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -2
- package/dist/backend/sqlite/libsql.d.ts +3 -2
- package/dist/backend/sqlite/libsql.js +13 -13
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +34 -34
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- package/dist/backend/sqlite/local-store.d.cts +8 -7
- package/dist/backend/sqlite/local-store.d.ts +8 -7
- package/dist/backend/sqlite/local-store.js +30 -30
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +16 -16
- package/dist/backend/sqlite/local.d.cts +3 -2
- package/dist/backend/sqlite/local.d.ts +3 -2
- package/dist/backend/sqlite/local.js +14 -14
- package/dist/{chunk-3RPQDGUE.cjs → chunk-2BIG7U6E.cjs} +5 -5
- package/dist/{chunk-3RPQDGUE.cjs.map → chunk-2BIG7U6E.cjs.map} +1 -1
- package/dist/{chunk-2OOY4OYT.js → chunk-2L54C2C2.js} +4 -4
- package/dist/{chunk-2OOY4OYT.js.map → chunk-2L54C2C2.js.map} +1 -1
- package/dist/{chunk-V2GZBPY2.cjs → chunk-2VLBGQBY.cjs} +310 -61
- package/dist/chunk-2VLBGQBY.cjs.map +1 -0
- package/dist/{chunk-RXOAXO3R.js → chunk-2WDD2NO3.js} +3 -3
- package/dist/{chunk-RXOAXO3R.js.map → chunk-2WDD2NO3.js.map} +1 -1
- package/dist/{chunk-2HKIID5K.js → chunk-2Y4IFKW7.js} +5 -5
- package/dist/{chunk-2HKIID5K.js.map → chunk-2Y4IFKW7.js.map} +1 -1
- package/dist/{chunk-ECU53PMN.cjs → chunk-3PRKZW6D.cjs} +5 -5
- package/dist/chunk-3PRKZW6D.cjs.map +1 -0
- package/dist/{chunk-2G6ZEGYO.js → chunk-46GDII45.js} +4 -4
- package/dist/{chunk-2G6ZEGYO.js.map → chunk-46GDII45.js.map} +1 -1
- package/dist/{chunk-OYJSYDIH.js → chunk-4MB3AQAQ.js} +13 -3
- package/dist/chunk-4MB3AQAQ.js.map +1 -0
- package/dist/chunk-4SZ6XPTG.cjs +12 -0
- package/dist/{chunk-VGMNGWBR.cjs.map → chunk-4SZ6XPTG.cjs.map} +1 -1
- package/dist/{chunk-FY4VY5EV.cjs → chunk-5MUSU4ZP.cjs} +20 -20
- package/dist/chunk-5MUSU4ZP.cjs.map +1 -0
- package/dist/{chunk-ZIRC2U6G.js → chunk-63KCKSSH.js} +78 -16
- package/dist/chunk-63KCKSSH.js.map +1 -0
- package/dist/{chunk-7Y6BV3TK.cjs → chunk-66UVLHQA.cjs} +100 -100
- package/dist/{chunk-7Y6BV3TK.cjs.map → chunk-66UVLHQA.cjs.map} +1 -1
- package/dist/{chunk-M4GYQF2H.js → chunk-6DCB664D.js} +7 -4
- package/dist/chunk-6DCB664D.js.map +1 -0
- package/dist/{chunk-OMQ2NBOR.cjs → chunk-6JZUSDY2.cjs} +27 -27
- package/dist/{chunk-OMQ2NBOR.cjs.map → chunk-6JZUSDY2.cjs.map} +1 -1
- package/dist/{chunk-Z3WIL6S3.js → chunk-7G32LIQM.js} +5 -5
- package/dist/{chunk-Z3WIL6S3.js.map → chunk-7G32LIQM.js.map} +1 -1
- package/dist/{chunk-2SO5I5AI.cjs → chunk-7V2FGGI2.cjs} +250 -198
- package/dist/chunk-7V2FGGI2.cjs.map +1 -0
- package/dist/{chunk-I73ATSAH.cjs → chunk-A2I2XO52.cjs} +4 -4
- package/dist/{chunk-I73ATSAH.cjs.map → chunk-A2I2XO52.cjs.map} +1 -1
- package/dist/{chunk-O2GZM7UK.cjs → chunk-A4PBRX4C.cjs} +7 -7
- package/dist/{chunk-O2GZM7UK.cjs.map → chunk-A4PBRX4C.cjs.map} +1 -1
- package/dist/{chunk-5P6IPIT6.cjs → chunk-ALFUGRYB.cjs} +75 -65
- package/dist/chunk-ALFUGRYB.cjs.map +1 -0
- package/dist/{chunk-NXIZL7ZZ.js → chunk-ATLN63JA.js} +6 -6
- package/dist/chunk-ATLN63JA.js.map +1 -0
- package/dist/{chunk-CUPJL6TS.js → chunk-B75XRV3O.js} +3 -3
- package/dist/{chunk-CUPJL6TS.js.map → chunk-B75XRV3O.js.map} +1 -1
- package/dist/{chunk-DP7KC6CL.js → chunk-BCP7LLOY.js} +754 -476
- package/dist/chunk-BCP7LLOY.js.map +1 -0
- package/dist/{chunk-RAWG2FEU.js → chunk-BEFM74L2.js} +264 -18
- package/dist/chunk-BEFM74L2.js.map +1 -0
- package/dist/{chunk-LQLVJWUH.js → chunk-BNUFUFAU.js} +7 -7
- package/dist/chunk-BNUFUFAU.js.map +1 -0
- package/dist/{chunk-KTBTSHU6.cjs → chunk-C4F7VJ5D.cjs} +13 -3
- package/dist/chunk-C4F7VJ5D.cjs.map +1 -0
- package/dist/{chunk-CVK4T34X.cjs → chunk-CPEL3YIR.cjs} +22 -22
- package/dist/{chunk-CVK4T34X.cjs.map → chunk-CPEL3YIR.cjs.map} +1 -1
- package/dist/{chunk-O3USVVWS.js → chunk-DK2S42XB.js} +3 -3
- package/dist/{chunk-O3USVVWS.js.map → chunk-DK2S42XB.js.map} +1 -1
- package/dist/{chunk-DMZEVJGL.cjs → chunk-EE7N5XXQ.cjs} +13 -13
- package/dist/{chunk-DMZEVJGL.cjs.map → chunk-EE7N5XXQ.cjs.map} +1 -1
- package/dist/{chunk-ZGOUVMVS.js → chunk-EFELJVLA.js} +5 -5
- package/dist/{chunk-ZGOUVMVS.js.map → chunk-EFELJVLA.js.map} +1 -1
- package/dist/chunk-EPTSMFH7.cjs +12 -0
- package/dist/{chunk-U3YRCZ5L.cjs.map → chunk-EPTSMFH7.cjs.map} +1 -1
- package/dist/{chunk-FSCJOTHF.cjs → chunk-EQ7JKLZO.cjs} +10 -10
- package/dist/{chunk-FSCJOTHF.cjs.map → chunk-EQ7JKLZO.cjs.map} +1 -1
- package/dist/{chunk-5Q3P6OIC.cjs → chunk-FGO5JFVJ.cjs} +12 -12
- package/dist/chunk-FGO5JFVJ.cjs.map +1 -0
- package/dist/{chunk-VC26BUNP.js → chunk-FMGEZBAQ.js} +5 -5
- package/dist/{chunk-VC26BUNP.js.map → chunk-FMGEZBAQ.js.map} +1 -1
- package/dist/{chunk-UZLEQFTV.js → chunk-FMMIX6N4.js} +4 -4
- package/dist/chunk-FMMIX6N4.js.map +1 -0
- package/dist/{chunk-5C75HQYQ.js → chunk-FRHHDHKH.js} +5 -5
- package/dist/{chunk-5C75HQYQ.js.map → chunk-FRHHDHKH.js.map} +1 -1
- package/dist/{chunk-EVFL2ZY5.js → chunk-FSXTPBRN.js} +63 -12
- package/dist/chunk-FSXTPBRN.js.map +1 -0
- package/dist/{chunk-TRC646QQ.cjs → chunk-GFRGG2US.cjs} +7 -7
- package/dist/{chunk-TRC646QQ.cjs.map → chunk-GFRGG2US.cjs.map} +1 -1
- package/dist/{chunk-UJRWOV5B.js → chunk-GWEDD3DH.js} +5 -5
- package/dist/{chunk-UJRWOV5B.js.map → chunk-GWEDD3DH.js.map} +1 -1
- package/dist/{chunk-AQR6BHB3.cjs → chunk-HJH3RMXG.cjs} +10 -10
- package/dist/{chunk-AQR6BHB3.cjs.map → chunk-HJH3RMXG.cjs.map} +1 -1
- package/dist/{chunk-F7TDKSVB.cjs → chunk-HOHAJ2NR.cjs} +4 -4
- package/dist/{chunk-F7TDKSVB.cjs.map → chunk-HOHAJ2NR.cjs.map} +1 -1
- package/dist/{chunk-YPVQYM3L.js → chunk-HOIFFY4M.js} +100 -20
- package/dist/chunk-HOIFFY4M.js.map +1 -0
- package/dist/{chunk-LDCWO5B6.js → chunk-IIMQJYAM.js} +3 -3
- package/dist/{chunk-LDCWO5B6.js.map → chunk-IIMQJYAM.js.map} +1 -1
- package/dist/{chunk-OM6RIOA5.cjs → chunk-IIT5K7SK.cjs} +13 -13
- package/dist/{chunk-OM6RIOA5.cjs.map → chunk-IIT5K7SK.cjs.map} +1 -1
- package/dist/{chunk-EQOQOT55.js → chunk-IJTLXNGJ.js} +5 -5
- package/dist/{chunk-EQOQOT55.js.map → chunk-IJTLXNGJ.js.map} +1 -1
- package/dist/{chunk-4XRP2N6B.js → chunk-JRP3VGHS.js} +3 -3
- package/dist/{chunk-4XRP2N6B.js.map → chunk-JRP3VGHS.js.map} +1 -1
- package/dist/{chunk-42XYPKZU.js → chunk-K3BUWSFR.js} +41 -3
- package/dist/chunk-K3BUWSFR.js.map +1 -0
- package/dist/{chunk-GT7NEXSU.js → chunk-KCO5EFJU.js} +3 -3
- package/dist/{chunk-GT7NEXSU.js.map → chunk-KCO5EFJU.js.map} +1 -1
- package/dist/{chunk-ARN3ZODS.cjs → chunk-KKYELPZ2.cjs} +6 -6
- package/dist/{chunk-ARN3ZODS.cjs.map → chunk-KKYELPZ2.cjs.map} +1 -1
- package/dist/{chunk-33PAKPED.cjs → chunk-MCHP7RHZ.cjs} +41 -41
- package/dist/{chunk-33PAKPED.cjs.map → chunk-MCHP7RHZ.cjs.map} +1 -1
- package/dist/{chunk-CDYRPI5U.js → chunk-MIJKEVV7.js} +4 -4
- package/dist/{chunk-CDYRPI5U.js.map → chunk-MIJKEVV7.js.map} +1 -1
- package/dist/{chunk-K2HHCWZO.cjs → chunk-NCX65HBY.cjs} +137 -108
- package/dist/chunk-NCX65HBY.cjs.map +1 -0
- package/dist/{chunk-6TJ6PKPS.cjs → chunk-NN3QSOVS.cjs} +27 -27
- package/dist/{chunk-6TJ6PKPS.cjs.map → chunk-NN3QSOVS.cjs.map} +1 -1
- package/dist/{chunk-F2KVJ6FF.cjs → chunk-OSZPLZIV.cjs} +179 -117
- package/dist/chunk-OSZPLZIV.cjs.map +1 -0
- package/dist/{chunk-UTTW2Q3M.cjs → chunk-OVUUTCPJ.cjs} +171 -133
- package/dist/chunk-OVUUTCPJ.cjs.map +1 -0
- package/dist/{chunk-FMPZPOUD.js → chunk-PAW2XUZN.js} +3 -3
- package/dist/{chunk-FMPZPOUD.js.map → chunk-PAW2XUZN.js.map} +1 -1
- package/dist/{chunk-5ZPRE4CV.cjs → chunk-PDGEXGS6.cjs} +204 -124
- package/dist/chunk-PDGEXGS6.cjs.map +1 -0
- package/dist/{chunk-CVNGKTHO.js → chunk-PHXITZE4.js} +4 -4
- package/dist/{chunk-CVNGKTHO.js.map → chunk-PHXITZE4.js.map} +1 -1
- package/dist/{chunk-ZPCKPLMX.cjs → chunk-QB6VMOJ2.cjs} +8 -8
- package/dist/{chunk-ZPCKPLMX.cjs.map → chunk-QB6VMOJ2.cjs.map} +1 -1
- package/dist/{chunk-5AERZSHC.cjs → chunk-QGKILWGZ.cjs} +4 -4
- package/dist/{chunk-5AERZSHC.cjs.map → chunk-QGKILWGZ.cjs.map} +1 -1
- package/dist/{chunk-ZOHCFYXE.js → chunk-QT6V3YRH.js} +3 -3
- package/dist/{chunk-ZOHCFYXE.js.map → chunk-QT6V3YRH.js.map} +1 -1
- package/dist/{chunk-XDMPDUKL.cjs → chunk-QYWINYEA.cjs} +9 -9
- package/dist/{chunk-XDMPDUKL.cjs.map → chunk-QYWINYEA.cjs.map} +1 -1
- package/dist/{chunk-3V6D5DEC.js → chunk-S4KQ5LV4.js} +3 -3
- package/dist/{chunk-3V6D5DEC.js.map → chunk-S4KQ5LV4.js.map} +1 -1
- package/dist/{chunk-6NB73BXV.js → chunk-SBPC5IP3.js} +40 -12
- package/dist/chunk-SBPC5IP3.js.map +1 -0
- package/dist/{chunk-HHBKGPEI.js → chunk-SQRD2CYF.js} +264 -21
- package/dist/chunk-SQRD2CYF.js.map +1 -0
- package/dist/{chunk-O7XVCLXW.cjs → chunk-ST3LPB2V.cjs} +324 -77
- package/dist/chunk-ST3LPB2V.cjs.map +1 -0
- package/dist/{chunk-FFQGI67R.cjs → chunk-STQ3BSED.cjs} +44 -44
- package/dist/{chunk-FFQGI67R.cjs.map → chunk-STQ3BSED.cjs.map} +1 -1
- package/dist/{chunk-JOYPNY33.js → chunk-TCRIQMBU.js} +9 -9
- package/dist/{chunk-JOYPNY33.js.map → chunk-TCRIQMBU.js.map} +1 -1
- package/dist/{chunk-ZP2KPDNN.js → chunk-TFMVL4QH.js} +3 -3
- package/dist/{chunk-ZP2KPDNN.js.map → chunk-TFMVL4QH.js.map} +1 -1
- package/dist/{chunk-4WYFRACU.js → chunk-TVLKA4AY.js} +3 -3
- package/dist/{chunk-4WYFRACU.js.map → chunk-TVLKA4AY.js.map} +1 -1
- package/dist/{chunk-X2XOQZT3.cjs → chunk-U5W4LKZV.cjs} +13 -9
- package/dist/chunk-U5W4LKZV.cjs.map +1 -0
- package/dist/{chunk-WYQILW5V.js → chunk-VITTKBWF.js} +43 -33
- package/dist/chunk-VITTKBWF.js.map +1 -0
- package/dist/{chunk-AO2WPYFZ.cjs → chunk-WBUFJ7BS.cjs} +4 -4
- package/dist/{chunk-AO2WPYFZ.cjs.map → chunk-WBUFJ7BS.cjs.map} +1 -1
- package/dist/{chunk-CI5NPLXX.js → chunk-XMYJY7NI.js} +3 -3
- package/dist/{chunk-CI5NPLXX.js.map → chunk-XMYJY7NI.js.map} +1 -1
- package/dist/{chunk-277UZV7X.cjs → chunk-XR4YZFKW.cjs} +1803 -1525
- package/dist/chunk-XR4YZFKW.cjs.map +1 -0
- package/dist/{chunk-5GV4JQNA.cjs → chunk-YNULOIR5.cjs} +43 -43
- package/dist/{chunk-5GV4JQNA.cjs.map → chunk-YNULOIR5.cjs.map} +1 -1
- package/dist/{chunk-ZBV4LQD2.cjs → chunk-ZTAJL4DT.cjs} +4 -4
- package/dist/{chunk-ZBV4LQD2.cjs.map → chunk-ZTAJL4DT.cjs.map} +1 -1
- package/dist/core/index.cjs +28 -28
- package/dist/core/index.d.cts +5 -5
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +8 -8
- package/dist/{ddl-Bc4Dl8fu.d.ts → ddl-D5369kOY.d.ts} +3 -3
- package/dist/{ddl-3unqC-kg.d.cts → ddl-eWg7hx6R.d.cts} +3 -3
- package/dist/{define-graph-Byslw2OO.d.cts → define-graph-DVF-oN1i.d.cts} +1 -1
- package/dist/{define-graph-DBFnc7u_.d.ts → define-graph-SvYXOl78.d.ts} +1 -1
- package/dist/graph-extension/index.cjs +20 -20
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +5 -5
- package/dist/graph-merge/index.cjs +104 -104
- package/dist/graph-merge/index.d.cts +9 -8
- package/dist/graph-merge/index.d.ts +9 -8
- package/dist/graph-merge/index.js +24 -24
- package/dist/{index-DQzVJBHa.d.ts → index-By89Sezh.d.ts} +37 -7
- package/dist/{index-DHXw7QAl.d.cts → index-DcQ3Sxs-.d.cts} +37 -7
- package/dist/index.cjs +210 -202
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +34 -34
- package/dist/indexes/index.cjs +13 -13
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +6 -6
- package/dist/interchange/index.cjs +49 -41
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +11 -11
- package/dist/interchange/index.d.ts +11 -11
- package/dist/interchange/index.js +23 -15
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-Dl0-er1G.d.ts → manager-B0KjKE93.d.ts} +44 -6
- package/dist/{manager-U9_zopqr.d.cts → manager-Cn0NFIhN.d.cts} +44 -6
- package/dist/{materialize-indexes-BM3u0aXE.d.ts → materialize-indexes-BD4V3svD.d.ts} +1 -1
- package/dist/{materialize-indexes-DzMCetZe.d.cts → materialize-indexes-DVRhd5h4.d.cts} +1 -1
- package/dist/{postgres-C5-WMKFA.d.ts → postgres-DaEWvN4x.d.cts} +1 -1
- package/dist/{postgres-DpJqtbSX.d.cts → postgres-u0a0HN2D.d.ts} +1 -1
- package/dist/profiler/index.d.cts +10 -9
- package/dist/profiler/index.d.ts +10 -9
- package/dist/provenance/index.cjs +38 -38
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -7
- package/dist/provenance/index.d.ts +7 -7
- package/dist/provenance/index.js +8 -8
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +41 -41
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +14 -14
- package/dist/{searchable-B4mUXZT6.d.cts → searchable-BT7j9_IK.d.cts} +2 -2
- package/dist/{searchable-C7jmPNLT.d.ts → searchable-CnYEancP.d.ts} +2 -2
- package/dist/{sqlite-Da7jiYu9.d.cts → sqlite-BrMoSsI7.d.cts} +1 -1
- package/dist/{sqlite-Ch5tSYQY.d.ts → sqlite-CHhZUyO5.d.ts} +1 -1
- package/dist/{store-view-CNcOG8bQ.d.cts → store-view-Bvdku0Ht.d.ts} +199 -35
- package/dist/{store-view-6C2vTWqf.d.ts → store-view-w-md0nQ4.d.cts} +199 -35
- package/dist/{temporal-BtrTYTiB.d.ts → temporal--x9T8K4S.d.ts} +1 -1
- package/dist/{temporal-CMpigMCW.d.cts → temporal-BCORwUau.d.cts} +1 -1
- package/dist/{types-G4sVM-76.d.cts → types-6-WJmSD4.d.cts} +1 -1
- package/dist/{types-D2rU5Taq.d.ts → types-COODtTJU.d.ts} +1 -1
- package/dist/{types-Dh-EgT-w.d.ts → types-Cjvkj0jA.d.cts} +351 -12
- package/dist/{types-Dh-EgT-w.d.cts → types-Cjvkj0jA.d.ts} +351 -12
- package/dist/{where-B8Y21kig.d.ts → where-5xVawAwL.d.ts} +1 -1
- package/dist/{where-DbZ9XDOI.d.cts → where-CUQmCR6d.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-277UZV7X.cjs.map +0 -1
- package/dist/chunk-2SO5I5AI.cjs.map +0 -1
- package/dist/chunk-42XYPKZU.js.map +0 -1
- package/dist/chunk-5P6IPIT6.cjs.map +0 -1
- package/dist/chunk-5Q3P6OIC.cjs.map +0 -1
- package/dist/chunk-5ZPRE4CV.cjs.map +0 -1
- package/dist/chunk-6NB73BXV.js.map +0 -1
- package/dist/chunk-DP7KC6CL.js.map +0 -1
- package/dist/chunk-ECU53PMN.cjs.map +0 -1
- package/dist/chunk-EVFL2ZY5.js.map +0 -1
- package/dist/chunk-F2KVJ6FF.cjs.map +0 -1
- package/dist/chunk-FY4VY5EV.cjs.map +0 -1
- package/dist/chunk-HHBKGPEI.js.map +0 -1
- package/dist/chunk-K2HHCWZO.cjs.map +0 -1
- package/dist/chunk-KTBTSHU6.cjs.map +0 -1
- package/dist/chunk-LQLVJWUH.js.map +0 -1
- package/dist/chunk-M4GYQF2H.js.map +0 -1
- package/dist/chunk-NXIZL7ZZ.js.map +0 -1
- package/dist/chunk-O7XVCLXW.cjs.map +0 -1
- package/dist/chunk-OYJSYDIH.js.map +0 -1
- package/dist/chunk-RAWG2FEU.js.map +0 -1
- package/dist/chunk-U3YRCZ5L.cjs +0 -12
- package/dist/chunk-UTTW2Q3M.cjs.map +0 -1
- package/dist/chunk-UZLEQFTV.js.map +0 -1
- package/dist/chunk-V2GZBPY2.cjs.map +0 -1
- package/dist/chunk-VGMNGWBR.cjs +0 -12
- package/dist/chunk-WYQILW5V.js.map +0 -1
- package/dist/chunk-X2XOQZT3.cjs.map +0 -1
- package/dist/chunk-YPVQYM3L.js.map +0 -1
- package/dist/chunk-ZIRC2U6G.js.map +0 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkST3LPB2V_cjs = require('./chunk-ST3LPB2V.cjs');
|
|
4
|
+
var chunkHJH3RMXG_cjs = require('./chunk-HJH3RMXG.cjs');
|
|
5
|
+
var chunk6JZUSDY2_cjs = require('./chunk-6JZUSDY2.cjs');
|
|
6
|
+
var chunkNN3QSOVS_cjs = require('./chunk-NN3QSOVS.cjs');
|
|
7
7
|
var chunkZDH3DX3C_cjs = require('./chunk-ZDH3DX3C.cjs');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
8
|
+
var chunk3PRKZW6D_cjs = require('./chunk-3PRKZW6D.cjs');
|
|
9
|
+
var chunkWBUFJ7BS_cjs = require('./chunk-WBUFJ7BS.cjs');
|
|
10
|
+
var chunkOVUUTCPJ_cjs = require('./chunk-OVUUTCPJ.cjs');
|
|
11
|
+
var chunkU5W4LKZV_cjs = require('./chunk-U5W4LKZV.cjs');
|
|
12
|
+
var chunk764JHTLT_cjs = require('./chunk-764JHTLT.cjs');
|
|
13
|
+
var chunkC4F7VJ5D_cjs = require('./chunk-C4F7VJ5D.cjs');
|
|
13
14
|
var drizzleOrm = require('drizzle-orm');
|
|
14
15
|
var sqliteCore = require('drizzle-orm/sqlite-core');
|
|
15
16
|
|
|
@@ -100,14 +101,14 @@ function hasModernBindLimitByVersion(rows) {
|
|
|
100
101
|
}
|
|
101
102
|
function detectHardMaxBindParameters(transactionMode, hostedPlatform) {
|
|
102
103
|
if (hostedPlatform === "durable-object" || transactionMode === "do-sqlite") {
|
|
103
|
-
return
|
|
104
|
+
return chunk3PRKZW6D_cjs.DURABLE_OBJECT_MAX_BIND_PARAMETERS;
|
|
104
105
|
}
|
|
105
|
-
if (hostedPlatform === "d1") return
|
|
106
|
+
if (hostedPlatform === "d1") return chunk3PRKZW6D_cjs.D1_MAX_BIND_PARAMETERS;
|
|
106
107
|
return void 0;
|
|
107
108
|
}
|
|
108
109
|
function detectMaxBindParameters(sqliteClient, hardMaxBindParameters) {
|
|
109
110
|
if (hardMaxBindParameters !== void 0) return hardMaxBindParameters;
|
|
110
|
-
if (sqliteClient === void 0) return
|
|
111
|
+
if (sqliteClient === void 0) return chunk3PRKZW6D_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
111
112
|
try {
|
|
112
113
|
const compiled = parseCompiledMaxVariableNumber(
|
|
113
114
|
sqliteClient.prepare("PRAGMA compile_options").all()
|
|
@@ -116,9 +117,9 @@ function detectMaxBindParameters(sqliteClient, hardMaxBindParameters) {
|
|
|
116
117
|
const isModern = hasModernBindLimitByVersion(
|
|
117
118
|
sqliteClient.prepare("SELECT sqlite_version() AS version").all()
|
|
118
119
|
);
|
|
119
|
-
return isModern ?
|
|
120
|
+
return isModern ? chunk3PRKZW6D_cjs.MODERN_SQLITE_MAX_BIND_PARAMETERS : chunk3PRKZW6D_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
120
121
|
} catch {
|
|
121
|
-
return
|
|
122
|
+
return chunk3PRKZW6D_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
function resolveSqliteClient(db) {
|
|
@@ -129,7 +130,7 @@ function resolveSqliteClient(db) {
|
|
|
129
130
|
return sqliteClient;
|
|
130
131
|
}
|
|
131
132
|
function getOrCreatePreparedStatement(cache, sqliteClient, sqlText, cacheMax) {
|
|
132
|
-
return
|
|
133
|
+
return chunkST3LPB2V_cjs.getOrCreateLru(
|
|
133
134
|
cache,
|
|
134
135
|
sqlText,
|
|
135
136
|
cacheMax,
|
|
@@ -181,7 +182,7 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
181
182
|
supportsCompiledExecution: sqliteClient !== void 0,
|
|
182
183
|
transactionMode
|
|
183
184
|
};
|
|
184
|
-
const compile = (query) =>
|
|
185
|
+
const compile = (query) => chunkNN3QSOVS_cjs.compileQueryWithDialect(db, query, "SQLite");
|
|
185
186
|
if (sqliteClient !== void 0) {
|
|
186
187
|
let executeCompiled2 = function(compiledQuery) {
|
|
187
188
|
const preparedStatement = getOrCreatePreparedStatement(
|
|
@@ -254,7 +255,7 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
254
255
|
execute(query) {
|
|
255
256
|
return executeDrizzleQuery(
|
|
256
257
|
db,
|
|
257
|
-
|
|
258
|
+
chunkU5W4LKZV_cjs.isSqlFragment(query) ? chunkNN3QSOVS_cjs.toDrizzleSql(query, "sqlite") : query
|
|
258
259
|
);
|
|
259
260
|
},
|
|
260
261
|
profile
|
|
@@ -279,7 +280,7 @@ function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
|
279
280
|
),
|
|
280
281
|
embeddingUpsertBatchSize: Math.max(
|
|
281
282
|
1,
|
|
282
|
-
Math.floor(maxBindParameters /
|
|
283
|
+
Math.floor(maxBindParameters / chunkST3LPB2V_cjs.EMBEDDING_UPSERT_PARAM_COUNT)
|
|
283
284
|
),
|
|
284
285
|
fulltextUpsertBatchSize: Math.max(
|
|
285
286
|
1,
|
|
@@ -293,6 +294,10 @@ function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
|
293
294
|
1,
|
|
294
295
|
Math.floor(maxBindParameters / EDGE_INSERT_PARAM_COUNT)
|
|
295
296
|
),
|
|
297
|
+
findEdgesEndpointChunkSize: Math.max(
|
|
298
|
+
1,
|
|
299
|
+
maxBindParameters - chunkST3LPB2V_cjs.FIND_EDGES_ENDPOINT_FIXED_PARAM_COUNT
|
|
300
|
+
),
|
|
296
301
|
getEdgesChunkSize: Math.max(
|
|
297
302
|
1,
|
|
298
303
|
maxBindParameters - GET_EDGES_FIXED_PARAM_COUNT
|
|
@@ -311,11 +316,11 @@ function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
|
311
316
|
)
|
|
312
317
|
};
|
|
313
318
|
}
|
|
314
|
-
var toNodeRow =
|
|
315
|
-
var toEdgeRow =
|
|
316
|
-
var toUniqueRow =
|
|
317
|
-
var toSchemaVersionRow =
|
|
318
|
-
|
|
319
|
+
var toNodeRow = chunkHJH3RMXG_cjs.createNodeRowMapper(chunkHJH3RMXG_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
320
|
+
var toEdgeRow = chunkHJH3RMXG_cjs.createEdgeRowMapper(chunkHJH3RMXG_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
321
|
+
var toUniqueRow = chunkHJH3RMXG_cjs.createUniqueRowMapper(chunkHJH3RMXG_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
322
|
+
var toSchemaVersionRow = chunkHJH3RMXG_cjs.createSchemaVersionRowMapper(
|
|
323
|
+
chunkHJH3RMXG_cjs.SQLITE_ROW_MAPPER_CONFIG
|
|
319
324
|
);
|
|
320
325
|
var PENDING_FOREVER = new Promise(noop);
|
|
321
326
|
function pendingForever() {
|
|
@@ -334,7 +339,7 @@ async function loadQueueTaskContext() {
|
|
|
334
339
|
void loadQueueTaskContext();
|
|
335
340
|
function rejectReentrantQueueSubmission() {
|
|
336
341
|
return Promise.reject(
|
|
337
|
-
new
|
|
342
|
+
new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
338
343
|
"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.",
|
|
339
344
|
{ backend: "sqlite", capability: "concurrentRootAccess" },
|
|
340
345
|
{
|
|
@@ -355,7 +360,7 @@ function createSerializedExecutionQueue() {
|
|
|
355
360
|
disposed = true;
|
|
356
361
|
},
|
|
357
362
|
runExclusive(task) {
|
|
358
|
-
if (isDisposed()) return Promise.reject(new
|
|
363
|
+
if (isDisposed()) return Promise.reject(new chunkC4F7VJ5D_cjs.BackendDisposedError());
|
|
359
364
|
if (queueTaskContext?.getStore() === taskMarker) {
|
|
360
365
|
return rejectReentrantQueueSubmission();
|
|
361
366
|
}
|
|
@@ -383,7 +388,7 @@ function runWithSerializedQueue(queue, task) {
|
|
|
383
388
|
return queue.runExclusive(task);
|
|
384
389
|
}
|
|
385
390
|
function throwSqliteTransactionsDisabled(message) {
|
|
386
|
-
throw new
|
|
391
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(message, {
|
|
387
392
|
backend: "sqlite",
|
|
388
393
|
capability: "transactions",
|
|
389
394
|
supportsTransactions: false
|
|
@@ -391,20 +396,20 @@ function throwSqliteTransactionsDisabled(message) {
|
|
|
391
396
|
}
|
|
392
397
|
function buildSqliteCapabilities(options) {
|
|
393
398
|
const base = options.transactionMode === "none" ? {
|
|
394
|
-
...
|
|
399
|
+
...chunk3PRKZW6D_cjs.SQLITE_CAPABILITIES,
|
|
395
400
|
transactions: false,
|
|
396
401
|
graphAnalytics: {
|
|
397
|
-
...
|
|
402
|
+
...chunk3PRKZW6D_cjs.SQLITE_CAPABILITIES.graphAnalytics ?? {
|
|
398
403
|
mathFunctions: false
|
|
399
404
|
},
|
|
400
405
|
supported: false
|
|
401
406
|
}
|
|
402
|
-
} :
|
|
407
|
+
} : chunk3PRKZW6D_cjs.SQLITE_CAPABILITIES;
|
|
403
408
|
return {
|
|
404
409
|
...base,
|
|
405
410
|
maxBindParameters: options.maxBindParameters,
|
|
406
|
-
fulltext:
|
|
407
|
-
...options.vectorStrategy === void 0 ? {} : { vector:
|
|
411
|
+
fulltext: chunkOVUUTCPJ_cjs.buildFulltextCapabilities(options.fulltextStrategy),
|
|
412
|
+
...options.vectorStrategy === void 0 ? {} : { vector: chunkOVUUTCPJ_cjs.buildVectorCapabilities(options.vectorStrategy) }
|
|
408
413
|
};
|
|
409
414
|
}
|
|
410
415
|
function resolveMaxBindParametersCapability(profile, override) {
|
|
@@ -412,7 +417,7 @@ function resolveMaxBindParametersCapability(profile, override) {
|
|
|
412
417
|
return profile.hardMaxBindParameters === void 0 ? requested : Math.min(requested, profile.hardMaxBindParameters);
|
|
413
418
|
}
|
|
414
419
|
function resolveSqliteGraphAnalyticsCapabilities(profile, override) {
|
|
415
|
-
const requested = override ??
|
|
420
|
+
const requested = override ?? chunk3PRKZW6D_cjs.SQLITE_CAPABILITIES.graphAnalytics ?? {
|
|
416
421
|
supported: false,
|
|
417
422
|
mathFunctions: false
|
|
418
423
|
};
|
|
@@ -431,7 +436,8 @@ function createSqliteOperationBackend(options) {
|
|
|
431
436
|
tableNames,
|
|
432
437
|
fulltextStrategy,
|
|
433
438
|
vectorStrategy,
|
|
434
|
-
contributionMaterializer
|
|
439
|
+
contributionMaterializer,
|
|
440
|
+
transactionScoped
|
|
435
441
|
} = options;
|
|
436
442
|
const compiledExecute = executionAdapter.executeCompiled;
|
|
437
443
|
const compiledRun = executionAdapter.executeCompiledRun;
|
|
@@ -457,7 +463,7 @@ function createSqliteOperationBackend(options) {
|
|
|
457
463
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
458
464
|
if (compiledRun === void 0) {
|
|
459
465
|
await db.run(
|
|
460
|
-
|
|
466
|
+
chunkU5W4LKZV_cjs.isSqlFragment(query) ? chunkNN3QSOVS_cjs.toDrizzleSql(query, "sqlite") : query
|
|
461
467
|
);
|
|
462
468
|
return;
|
|
463
469
|
}
|
|
@@ -465,16 +471,16 @@ function createSqliteOperationBackend(options) {
|
|
|
465
471
|
});
|
|
466
472
|
}
|
|
467
473
|
const batchConfig = computeSqliteBatchChunkSizes(
|
|
468
|
-
capabilities.maxBindParameters ??
|
|
474
|
+
capabilities.maxBindParameters ?? chunk3PRKZW6D_cjs.SQLITE_MAX_BIND_PARAMETERS
|
|
469
475
|
);
|
|
470
|
-
const commonBackend =
|
|
476
|
+
const commonBackend = chunkST3LPB2V_cjs.createCommonOperationBackend({
|
|
471
477
|
batchConfig,
|
|
472
478
|
execution: {
|
|
473
479
|
execAll,
|
|
474
480
|
execGet,
|
|
475
481
|
execRun
|
|
476
482
|
},
|
|
477
|
-
nowIso:
|
|
483
|
+
nowIso: chunkHJH3RMXG_cjs.nowIso,
|
|
478
484
|
operationStrategy,
|
|
479
485
|
rowMappers: {
|
|
480
486
|
toEdgeRow,
|
|
@@ -494,26 +500,26 @@ function createSqliteOperationBackend(options) {
|
|
|
494
500
|
};
|
|
495
501
|
const vectorEmbeddingMethods = vectorStrategy === void 0 ? {} : {
|
|
496
502
|
async upsertEmbedding(params) {
|
|
497
|
-
const slot =
|
|
503
|
+
const slot = chunkST3LPB2V_cjs.vectorSlotFromParams(params);
|
|
498
504
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
499
|
-
const statements = vectorStrategy.buildUpsert(slot, params,
|
|
505
|
+
const statements = vectorStrategy.buildUpsert(slot, params, chunkHJH3RMXG_cjs.nowIso());
|
|
500
506
|
try {
|
|
501
507
|
for (const statement of statements) {
|
|
502
508
|
await execRun(statement);
|
|
503
509
|
}
|
|
504
510
|
} catch (error) {
|
|
505
|
-
throw
|
|
511
|
+
throw chunkST3LPB2V_cjs.mapVectorWriteError(error, params);
|
|
506
512
|
}
|
|
507
513
|
},
|
|
508
514
|
async upsertEmbeddingBatch(params) {
|
|
509
515
|
if (params.rows.length === 0) return;
|
|
510
|
-
const slot =
|
|
516
|
+
const slot = chunkST3LPB2V_cjs.vectorSlotFromParams(params);
|
|
511
517
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
512
518
|
const rowsById = new Map(
|
|
513
519
|
params.rows.map((row) => [row.nodeId, row])
|
|
514
520
|
);
|
|
515
521
|
const rows = [...rowsById.values()];
|
|
516
|
-
const timestamp =
|
|
522
|
+
const timestamp = chunkHJH3RMXG_cjs.nowIso();
|
|
517
523
|
try {
|
|
518
524
|
for (const chunk2 of chunkZDH3DX3C_cjs.chunk(
|
|
519
525
|
rows,
|
|
@@ -544,11 +550,11 @@ function createSqliteOperationBackend(options) {
|
|
|
544
550
|
}
|
|
545
551
|
}
|
|
546
552
|
} catch (error) {
|
|
547
|
-
throw
|
|
553
|
+
throw chunkST3LPB2V_cjs.mapVectorWriteError(error, params);
|
|
548
554
|
}
|
|
549
555
|
},
|
|
550
556
|
async deleteEmbedding(params) {
|
|
551
|
-
const slot =
|
|
557
|
+
const slot = chunkST3LPB2V_cjs.vectorSlotFromParams(params);
|
|
552
558
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
553
559
|
const statements = vectorStrategy.buildDelete(slot, params);
|
|
554
560
|
for (const statement of statements) {
|
|
@@ -556,25 +562,25 @@ function createSqliteOperationBackend(options) {
|
|
|
556
562
|
}
|
|
557
563
|
},
|
|
558
564
|
async vectorSearch(params) {
|
|
559
|
-
|
|
560
|
-
const slot =
|
|
565
|
+
chunkOVUUTCPJ_cjs.assertVectorSearchLimit(params.limit);
|
|
566
|
+
const slot = chunkST3LPB2V_cjs.vectorSlotFromParams(params);
|
|
561
567
|
const query = vectorStrategy.buildSearch(
|
|
562
568
|
slot,
|
|
563
569
|
params,
|
|
564
570
|
// Store-compiled candidates (predicates + subclass + currency)
|
|
565
571
|
// take precedence; the live-node default covers direct backend use.
|
|
566
|
-
params.candidates ??
|
|
572
|
+
params.candidates ?? chunkST3LPB2V_cjs.buildLiveNodeCandidates(
|
|
567
573
|
tableNames.nodes,
|
|
568
574
|
params.graphId,
|
|
569
575
|
params.nodeKind,
|
|
570
|
-
|
|
576
|
+
chunkHJH3RMXG_cjs.nowIso()
|
|
571
577
|
)
|
|
572
578
|
);
|
|
573
579
|
let rows;
|
|
574
580
|
try {
|
|
575
581
|
rows = await execAll(query);
|
|
576
582
|
} catch (error) {
|
|
577
|
-
throw
|
|
583
|
+
throw chunkST3LPB2V_cjs.mapVectorWriteError(error, params);
|
|
578
584
|
}
|
|
579
585
|
return rows.map((row) => ({
|
|
580
586
|
nodeId: row.node_id,
|
|
@@ -586,9 +592,9 @@ function createSqliteOperationBackend(options) {
|
|
|
586
592
|
// fallback by simply not exposing the member.
|
|
587
593
|
...capabilities.windowFunctions ? {
|
|
588
594
|
async hybridSearch(params) {
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
const slot =
|
|
595
|
+
chunkOVUUTCPJ_cjs.assertVectorSearchLimit(params.limit);
|
|
596
|
+
chunkOVUUTCPJ_cjs.assertVectorSearchLimit(params.vector.k);
|
|
597
|
+
const slot = chunkST3LPB2V_cjs.vectorSlotFromParams({
|
|
592
598
|
graphId: params.graphId,
|
|
593
599
|
nodeKind: params.nodeKind,
|
|
594
600
|
fieldPath: params.vector.fieldPath,
|
|
@@ -596,11 +602,11 @@ function createSqliteOperationBackend(options) {
|
|
|
596
602
|
metric: params.vector.metric,
|
|
597
603
|
indexType: params.vector.indexType
|
|
598
604
|
});
|
|
599
|
-
const candidates = params.candidates ??
|
|
605
|
+
const candidates = params.candidates ?? chunkST3LPB2V_cjs.buildLiveNodeCandidates(
|
|
600
606
|
tableNames.nodes,
|
|
601
607
|
params.graphId,
|
|
602
608
|
params.nodeKind,
|
|
603
|
-
|
|
609
|
+
chunkHJH3RMXG_cjs.nowIso()
|
|
604
610
|
);
|
|
605
611
|
const vectorParams = {
|
|
606
612
|
graphId: params.graphId,
|
|
@@ -616,20 +622,20 @@ function createSqliteOperationBackend(options) {
|
|
|
616
622
|
const vectorSql = vectorStrategy.buildSearch(
|
|
617
623
|
slot,
|
|
618
624
|
vectorParams,
|
|
619
|
-
|
|
625
|
+
chunkU5W4LKZV_cjs.sql.raw("SELECT node_id FROM tg_hybrid_cand")
|
|
620
626
|
);
|
|
621
627
|
const statement = operationStrategy.buildHybridSearch(
|
|
622
628
|
{ ...params, candidates },
|
|
623
|
-
|
|
629
|
+
chunkNN3QSOVS_cjs.toDrizzleSql(vectorSql, "sqlite"),
|
|
624
630
|
params.vector.metric === "cosine"
|
|
625
631
|
);
|
|
626
632
|
let raw;
|
|
627
633
|
try {
|
|
628
634
|
raw = await execAll(statement);
|
|
629
635
|
} catch (error) {
|
|
630
|
-
throw
|
|
636
|
+
throw chunkST3LPB2V_cjs.mapVectorWriteError(error, vectorParams);
|
|
631
637
|
}
|
|
632
|
-
return raw.map((row) =>
|
|
638
|
+
return raw.map((row) => chunkST3LPB2V_cjs.mapHybridSearchRow(row, toNodeRow));
|
|
633
639
|
}
|
|
634
640
|
} : {}
|
|
635
641
|
};
|
|
@@ -637,14 +643,45 @@ function createSqliteOperationBackend(options) {
|
|
|
637
643
|
...commonBackend,
|
|
638
644
|
...executeRawMethod,
|
|
639
645
|
...vectorEmbeddingMethods,
|
|
646
|
+
async deleteSchemaVectorSlotContribution(slot) {
|
|
647
|
+
if (vectorStrategy === void 0) return;
|
|
648
|
+
for (const contribution of vectorStrategy.ownedTables(slot)) {
|
|
649
|
+
await execRun(
|
|
650
|
+
operationStrategy.buildDeleteContributionMaterialization({
|
|
651
|
+
graphId: slot.graphId,
|
|
652
|
+
logicalName: contribution.logicalName,
|
|
653
|
+
owner: contribution.owner,
|
|
654
|
+
tableName: contribution.tableName
|
|
655
|
+
})
|
|
656
|
+
);
|
|
657
|
+
}
|
|
658
|
+
contributionMaterializer.evictVectorSlot(slot);
|
|
659
|
+
},
|
|
640
660
|
capabilities,
|
|
641
661
|
dialect: "sqlite",
|
|
642
662
|
tableNames,
|
|
643
663
|
fulltextStrategy,
|
|
644
664
|
...vectorStrategy === void 0 ? {} : { vectorStrategy },
|
|
665
|
+
async lockSchemaVersionForWrite(params) {
|
|
666
|
+
if (!transactionScoped) {
|
|
667
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
668
|
+
"The schema write fence requires an explicit SQLite transaction.",
|
|
669
|
+
{
|
|
670
|
+
code: "SCHEMA_WRITE_FENCE_TRANSACTION_REQUIRED",
|
|
671
|
+
graphId: params.graphId
|
|
672
|
+
}
|
|
673
|
+
);
|
|
674
|
+
}
|
|
675
|
+
const active = await commonBackend.getActiveSchema(params.graphId);
|
|
676
|
+
chunkST3LPB2V_cjs.assertActiveSchemaVersion(
|
|
677
|
+
params.graphId,
|
|
678
|
+
params.expectedVersion,
|
|
679
|
+
active?.version ?? 0
|
|
680
|
+
);
|
|
681
|
+
},
|
|
645
682
|
async createVectorIndex(params) {
|
|
646
683
|
if (vectorStrategy === void 0) return;
|
|
647
|
-
const slot =
|
|
684
|
+
const slot = chunkST3LPB2V_cjs.vectorSlotFromCreateIndexParams(params);
|
|
648
685
|
await contributionMaterializer.ensureVectorSlot(slot);
|
|
649
686
|
const indexStatement = vectorStrategy.buildCreateIndex?.(slot);
|
|
650
687
|
if (indexStatement !== void 0) {
|
|
@@ -653,18 +690,18 @@ function createSqliteOperationBackend(options) {
|
|
|
653
690
|
},
|
|
654
691
|
async dropVectorIndex(params) {
|
|
655
692
|
if (vectorStrategy === void 0) return;
|
|
656
|
-
const slot =
|
|
693
|
+
const slot = chunkST3LPB2V_cjs.vectorSlotFromDropIndexParams(params);
|
|
657
694
|
const dropStatement = vectorStrategy.buildDropIndex?.(slot);
|
|
658
695
|
if (dropStatement === void 0) return;
|
|
659
696
|
try {
|
|
660
697
|
await execRun(dropStatement);
|
|
661
698
|
} catch (error) {
|
|
662
|
-
if (!
|
|
699
|
+
if (!chunkWBUFJ7BS_cjs.isMissingTableError(error)) throw error;
|
|
663
700
|
}
|
|
664
701
|
},
|
|
665
702
|
// === Fulltext Operations ===
|
|
666
703
|
async upsertFulltext(params) {
|
|
667
|
-
const timestamp =
|
|
704
|
+
const timestamp = chunkHJH3RMXG_cjs.nowIso();
|
|
668
705
|
const statements = operationStrategy.buildUpsertFulltext(
|
|
669
706
|
params,
|
|
670
707
|
timestamp
|
|
@@ -681,7 +718,7 @@ function createSqliteOperationBackend(options) {
|
|
|
681
718
|
},
|
|
682
719
|
async upsertFulltextBatch(params) {
|
|
683
720
|
if (params.rows.length === 0) return;
|
|
684
|
-
const timestamp =
|
|
721
|
+
const timestamp = chunkHJH3RMXG_cjs.nowIso();
|
|
685
722
|
for (const rows of chunkZDH3DX3C_cjs.chunk(
|
|
686
723
|
params.rows,
|
|
687
724
|
batchConfig.fulltextUpsertBatchSize
|
|
@@ -715,7 +752,7 @@ function createSqliteOperationBackend(options) {
|
|
|
715
752
|
const rows = await execAll(query);
|
|
716
753
|
return rows.map((row, index) => ({
|
|
717
754
|
nodeId: row.node_id,
|
|
718
|
-
score:
|
|
755
|
+
score: chunkHJH3RMXG_cjs.coerceNumericScore(row.score),
|
|
719
756
|
rank: index + 1,
|
|
720
757
|
...row.snippet === null ? {} : { snippet: row.snippet }
|
|
721
758
|
}));
|
|
@@ -734,14 +771,14 @@ function createSqliteOperationBackend(options) {
|
|
|
734
771
|
return operationBackend;
|
|
735
772
|
}
|
|
736
773
|
function createSqliteBackend(db, options = {}) {
|
|
737
|
-
const tables2 = options.tables ??
|
|
738
|
-
const fulltextStrategy = options.fulltext ??
|
|
774
|
+
const tables2 = options.tables ?? chunk6JZUSDY2_cjs.tables2;
|
|
775
|
+
const fulltextStrategy = options.fulltext ?? chunkOVUUTCPJ_cjs.fts5Strategy;
|
|
739
776
|
const profileHints = options.executionProfile ?? {};
|
|
740
777
|
const executionAdapter = createSqliteExecutionAdapter(db, { profileHints });
|
|
741
778
|
const { isSync, transactionMode } = executionAdapter.profile;
|
|
742
779
|
const vectorStrategy = options.vector;
|
|
743
780
|
const capabilityOverrides = options.capabilities ?? {};
|
|
744
|
-
const capabilities =
|
|
781
|
+
const capabilities = chunk3PRKZW6D_cjs.normalizeGraphAnalyticsCapabilities({
|
|
745
782
|
...buildSqliteCapabilities({
|
|
746
783
|
fulltextStrategy,
|
|
747
784
|
vectorStrategy,
|
|
@@ -779,14 +816,14 @@ function createSqliteBackend(db, options = {}) {
|
|
|
779
816
|
tableNames.recordedEdges,
|
|
780
817
|
tableNames.recordedClock
|
|
781
818
|
];
|
|
782
|
-
const operationStrategy =
|
|
819
|
+
const operationStrategy = chunkST3LPB2V_cjs.createSqliteOperationStrategy(
|
|
783
820
|
tables2,
|
|
784
821
|
fulltextStrategy
|
|
785
822
|
);
|
|
786
823
|
const serializedQueue = transactionMode === "none" ? void 0 : createSerializedExecutionQueue();
|
|
787
824
|
const matTable = tables2.contributionMaterializations;
|
|
788
825
|
async function ensureContributionMaterializationsTableImpl() {
|
|
789
|
-
await db.run(drizzleOrm.sql.raw(
|
|
826
|
+
await db.run(drizzleOrm.sql.raw(chunk6JZUSDY2_cjs.generateSqliteCreateTableSQL(matTable)));
|
|
790
827
|
}
|
|
791
828
|
async function getContributionMaterializationRow(identity) {
|
|
792
829
|
const rows = await db.select().from(matTable).where(
|
|
@@ -799,25 +836,25 @@ function createSqliteBackend(db, options = {}) {
|
|
|
799
836
|
);
|
|
800
837
|
const row = rows[0];
|
|
801
838
|
if (row === void 0) return void 0;
|
|
802
|
-
return
|
|
839
|
+
return chunkST3LPB2V_cjs.mapContributionMaterializationRow(
|
|
803
840
|
row,
|
|
804
|
-
|
|
841
|
+
chunkST3LPB2V_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
805
842
|
);
|
|
806
843
|
}
|
|
807
844
|
async function getContributionMaterializationRows(graphId) {
|
|
808
845
|
const rows = await db.select().from(matTable).where(drizzleOrm.eq(matTable.graphId, graphId));
|
|
809
846
|
return rows.map(
|
|
810
|
-
(row) =>
|
|
847
|
+
(row) => chunkST3LPB2V_cjs.mapContributionMaterializationRow(
|
|
811
848
|
row,
|
|
812
|
-
|
|
849
|
+
chunkST3LPB2V_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
813
850
|
)
|
|
814
851
|
);
|
|
815
852
|
}
|
|
816
853
|
async function recordContributionMaterializationRow(params) {
|
|
817
854
|
await db.insert(matTable).values(
|
|
818
|
-
|
|
855
|
+
chunkST3LPB2V_cjs.buildContributionInsertValues(
|
|
819
856
|
params,
|
|
820
|
-
|
|
857
|
+
chunkST3LPB2V_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.encode
|
|
821
858
|
)
|
|
822
859
|
).onConflictDoUpdate({
|
|
823
860
|
target: [
|
|
@@ -826,7 +863,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
826
863
|
matTable.owner,
|
|
827
864
|
matTable.tableName
|
|
828
865
|
],
|
|
829
|
-
set:
|
|
866
|
+
set: chunkST3LPB2V_cjs.buildContributionOnConflictSet(
|
|
830
867
|
matTable.materializedAt,
|
|
831
868
|
params.materializedAt
|
|
832
869
|
)
|
|
@@ -842,7 +879,13 @@ function createSqliteBackend(db, options = {}) {
|
|
|
842
879
|
)
|
|
843
880
|
);
|
|
844
881
|
}
|
|
845
|
-
|
|
882
|
+
async function contributionTableExists(tableName) {
|
|
883
|
+
const rows = await executionAdapter.execute(
|
|
884
|
+
operationStrategy.buildTableExists(tableName)
|
|
885
|
+
);
|
|
886
|
+
return chunkST3LPB2V_cjs.tableExistsFromRow(rows[0]);
|
|
887
|
+
}
|
|
888
|
+
const contributionMaterializer = chunkST3LPB2V_cjs.createContributionMaterializer({
|
|
846
889
|
dialect: "sqlite",
|
|
847
890
|
fulltextStrategy,
|
|
848
891
|
fulltextTableName: tables2.fulltextTableName,
|
|
@@ -853,7 +896,8 @@ function createSqliteBackend(db, options = {}) {
|
|
|
853
896
|
ensureMarkerTable: ensureContributionMaterializationsTableImpl,
|
|
854
897
|
getMarkers: getContributionMaterializationRows,
|
|
855
898
|
recordMarker: recordContributionMaterializationRow,
|
|
856
|
-
deleteMarker: deleteContributionMaterializationRow
|
|
899
|
+
deleteMarker: deleteContributionMaterializationRow,
|
|
900
|
+
tableExists: contributionTableExists
|
|
857
901
|
});
|
|
858
902
|
const operations = createSqliteOperationBackend({
|
|
859
903
|
capabilities,
|
|
@@ -864,6 +908,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
864
908
|
fulltextStrategy,
|
|
865
909
|
vectorStrategy,
|
|
866
910
|
contributionMaterializer,
|
|
911
|
+
transactionScoped: false,
|
|
867
912
|
...serializedQueue === void 0 ? {} : { serializedQueue }
|
|
868
913
|
});
|
|
869
914
|
function runDoSqliteStorageTransaction(run) {
|
|
@@ -889,7 +934,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
889
934
|
function runSchemaWriteTransaction(fn) {
|
|
890
935
|
if (transactionMode === "none") {
|
|
891
936
|
throwSqliteTransactionsDisabled(
|
|
892
|
-
"
|
|
937
|
+
"Schema writes and removal cleanup require atomic transactions, but this SQLite backend has transactions disabled. Configure a driver that supports transactions (better-sqlite3, libsql, bun:sqlite) to use schema commits."
|
|
893
938
|
);
|
|
894
939
|
}
|
|
895
940
|
if (transactionMode === "sql") {
|
|
@@ -962,36 +1007,41 @@ function createSqliteBackend(db, options = {}) {
|
|
|
962
1007
|
vectorStrategy,
|
|
963
1008
|
contributionMaterializer
|
|
964
1009
|
});
|
|
965
|
-
return
|
|
1010
|
+
return chunkST3LPB2V_cjs.gateFulltext(txBackend, contributionMaterializer.assertInitialized);
|
|
966
1011
|
}
|
|
967
1012
|
const backend = {
|
|
968
1013
|
...operations,
|
|
969
1014
|
...isSync && transactionMode === "sql" && executionAdapter.executePreparedRunBatch !== void 0 ? {
|
|
970
|
-
async trustedImport(fn) {
|
|
1015
|
+
async trustedImport(fn, options_) {
|
|
971
1016
|
return backend.transaction(async (tx) => {
|
|
972
|
-
|
|
973
|
-
|
|
1017
|
+
if (options_?.schemaWrite !== void 0) {
|
|
1018
|
+
await chunk764JHTLT_cjs.requireDefined(tx.lockSchemaVersionForWrite)({
|
|
1019
|
+
...options_.schemaWrite
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
await chunkST3LPB2V_cjs.assertTrustedImportDatabaseEmpty(tx, tableNames);
|
|
1023
|
+
const indexDefinitions = await chunkST3LPB2V_cjs.suspendSqliteSecondaryIndexes(
|
|
974
1024
|
tx,
|
|
975
1025
|
tableNames
|
|
976
1026
|
);
|
|
977
1027
|
const result = await fn(
|
|
978
|
-
|
|
1028
|
+
chunkST3LPB2V_cjs.createSqliteTrustedImportSession(executionAdapter, tableNames)
|
|
979
1029
|
);
|
|
980
|
-
await
|
|
981
|
-
await
|
|
1030
|
+
await chunkST3LPB2V_cjs.restoreSecondaryIndexes(tx, indexDefinitions);
|
|
1031
|
+
await chunkST3LPB2V_cjs.analyzeImportedTables(tx, tableNames);
|
|
982
1032
|
return result;
|
|
983
1033
|
});
|
|
984
1034
|
}
|
|
985
1035
|
} : {},
|
|
986
1036
|
async bootstrapTables() {
|
|
987
|
-
const statements =
|
|
1037
|
+
const statements = chunk6JZUSDY2_cjs.generateSqliteDDL(tables2, fulltextStrategy);
|
|
988
1038
|
for (const statement of statements) {
|
|
989
1039
|
await db.run(drizzleOrm.sql.raw(statement));
|
|
990
1040
|
}
|
|
991
1041
|
},
|
|
992
1042
|
async ensureRevisionOriginsTable() {
|
|
993
1043
|
await db.run(
|
|
994
|
-
drizzleOrm.sql.raw(
|
|
1044
|
+
drizzleOrm.sql.raw(chunk6JZUSDY2_cjs.generateSqliteCreateTableSQL(tables2.revisionOrigins))
|
|
995
1045
|
);
|
|
996
1046
|
},
|
|
997
1047
|
// Every fulltext-touching method asserts the durable marker instead
|
|
@@ -999,7 +1049,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
999
1049
|
// uninitialized database throws `StoreNotInitializedError` rather
|
|
1000
1050
|
// than self-healing (#135). Shared verbatim with the tx-scoped gate
|
|
1001
1051
|
// via `gateFulltextMethods`.
|
|
1002
|
-
...
|
|
1052
|
+
...chunkST3LPB2V_cjs.gateFulltextMethods(
|
|
1003
1053
|
operations,
|
|
1004
1054
|
contributionMaterializer.assertInitialized
|
|
1005
1055
|
),
|
|
@@ -1008,7 +1058,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1008
1058
|
},
|
|
1009
1059
|
async ensureIndexMaterializationsTable() {
|
|
1010
1060
|
await db.run(
|
|
1011
|
-
drizzleOrm.sql.raw(
|
|
1061
|
+
drizzleOrm.sql.raw(chunk6JZUSDY2_cjs.generateSqliteCreateTableSQL(tables2.indexMaterializations))
|
|
1012
1062
|
);
|
|
1013
1063
|
},
|
|
1014
1064
|
async getIndexMaterialization(indexName) {
|
|
@@ -1016,26 +1066,26 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1016
1066
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.indexName, indexName));
|
|
1017
1067
|
const row = rows[0];
|
|
1018
1068
|
if (row === void 0) return void 0;
|
|
1019
|
-
return
|
|
1069
|
+
return chunkST3LPB2V_cjs.mapMaterializationRow(row, chunkST3LPB2V_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode);
|
|
1020
1070
|
},
|
|
1021
1071
|
async getIndexMaterializations(statusKeys) {
|
|
1022
1072
|
if (statusKeys.length === 0) return [];
|
|
1023
1073
|
const t = tables2.indexMaterializations;
|
|
1024
1074
|
const rows = await db.select().from(t).where(drizzleOrm.inArray(t.indexName, [...statusKeys]));
|
|
1025
1075
|
return rows.map(
|
|
1026
|
-
(row) =>
|
|
1076
|
+
(row) => chunkST3LPB2V_cjs.mapMaterializationRow(row, chunkST3LPB2V_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode)
|
|
1027
1077
|
);
|
|
1028
1078
|
},
|
|
1029
1079
|
async recordIndexMaterialization(params) {
|
|
1030
1080
|
const t = tables2.indexMaterializations;
|
|
1031
1081
|
await db.insert(t).values(
|
|
1032
|
-
|
|
1082
|
+
chunkST3LPB2V_cjs.buildMaterializationInsertValues(
|
|
1033
1083
|
params,
|
|
1034
|
-
|
|
1084
|
+
chunkST3LPB2V_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.encode
|
|
1035
1085
|
)
|
|
1036
1086
|
).onConflictDoUpdate({
|
|
1037
1087
|
target: t.indexName,
|
|
1038
|
-
set:
|
|
1088
|
+
set: chunkST3LPB2V_cjs.buildMaterializationOnConflictSet(params.materializedAt)
|
|
1039
1089
|
});
|
|
1040
1090
|
},
|
|
1041
1091
|
async ensureContributionMaterializationsTable() {
|
|
@@ -1051,37 +1101,37 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1051
1101
|
await contributionMaterializer.assertInitialized(graphId);
|
|
1052
1102
|
},
|
|
1053
1103
|
async ensureKindRemovalsTable() {
|
|
1054
|
-
await db.run(drizzleOrm.sql.raw(
|
|
1104
|
+
await db.run(drizzleOrm.sql.raw(chunk6JZUSDY2_cjs.generateSqliteCreateTableSQL(tables2.kindRemovals)));
|
|
1055
1105
|
},
|
|
1056
1106
|
async getPendingKindRemovals(graphId) {
|
|
1057
1107
|
const t = tables2.kindRemovals;
|
|
1058
1108
|
const rows = await db.select().from(t).where(drizzleOrm.and(drizzleOrm.eq(t.graphId, graphId), drizzleOrm.isNull(t.removedAt)));
|
|
1059
1109
|
return rows.map(
|
|
1060
|
-
(row) =>
|
|
1110
|
+
(row) => chunkST3LPB2V_cjs.mapKindRemovalRow(row, chunkST3LPB2V_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1061
1111
|
);
|
|
1062
1112
|
},
|
|
1063
1113
|
async getAllKindRemovals(graphId) {
|
|
1064
1114
|
const t = tables2.kindRemovals;
|
|
1065
1115
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
|
|
1066
1116
|
return rows.map(
|
|
1067
|
-
(row) =>
|
|
1117
|
+
(row) => chunkST3LPB2V_cjs.mapKindRemovalRow(row, chunkST3LPB2V_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1068
1118
|
);
|
|
1069
1119
|
},
|
|
1070
1120
|
async recordKindRemoval(params) {
|
|
1071
1121
|
const t = tables2.kindRemovals;
|
|
1072
1122
|
await db.insert(t).values(
|
|
1073
|
-
|
|
1123
|
+
chunkST3LPB2V_cjs.buildKindRemovalInsertValues(
|
|
1074
1124
|
params,
|
|
1075
|
-
|
|
1125
|
+
chunkST3LPB2V_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.encode
|
|
1076
1126
|
)
|
|
1077
1127
|
).onConflictDoUpdate({
|
|
1078
1128
|
target: [t.graphId, t.kindName, t.entity, t.schemaVersion],
|
|
1079
|
-
set:
|
|
1129
|
+
set: chunkST3LPB2V_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
|
|
1080
1130
|
});
|
|
1081
1131
|
},
|
|
1082
1132
|
async ensureReconciliationMarkersTable() {
|
|
1083
1133
|
await db.run(
|
|
1084
|
-
drizzleOrm.sql.raw(
|
|
1134
|
+
drizzleOrm.sql.raw(chunk6JZUSDY2_cjs.generateSqliteCreateTableSQL(tables2.reconciliationMarkers))
|
|
1085
1135
|
);
|
|
1086
1136
|
},
|
|
1087
1137
|
async ensureRuntimeContributions(graphId) {
|
|
@@ -1095,6 +1145,9 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1095
1145
|
async ensureFulltextTable(graphId) {
|
|
1096
1146
|
await contributionMaterializer.ensureRuntimeContributions(graphId);
|
|
1097
1147
|
},
|
|
1148
|
+
async verifyContributions(graphId, vectorSlots) {
|
|
1149
|
+
return contributionMaterializer.verifyContributions(graphId, vectorSlots);
|
|
1150
|
+
},
|
|
1098
1151
|
// Vector counterparts of the runtime-contribution methods. Present
|
|
1099
1152
|
// only when a vector strategy is wired (omitted on a plain SQLite
|
|
1100
1153
|
// connection with no vector extension), mirroring the embedding/
|
|
@@ -1131,18 +1184,18 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1131
1184
|
async refreshStatistics() {
|
|
1132
1185
|
try {
|
|
1133
1186
|
await db.run(
|
|
1134
|
-
|
|
1135
|
-
|
|
1187
|
+
chunkNN3QSOVS_cjs.toDrizzleSql(
|
|
1188
|
+
chunkU5W4LKZV_cjs.sql`PRAGMA analysis_limit = ${chunkU5W4LKZV_cjs.sql.raw(String(SQLITE_ANALYZE_ROW_LIMIT))}`,
|
|
1136
1189
|
"sqlite"
|
|
1137
1190
|
)
|
|
1138
1191
|
);
|
|
1139
1192
|
} catch (error) {
|
|
1140
|
-
if (!
|
|
1193
|
+
if (!chunkWBUFJ7BS_cjs.isSqliteNotAuthorizedError(error)) throw error;
|
|
1141
1194
|
}
|
|
1142
1195
|
for (const tableName of coreAnalyzeTables) {
|
|
1143
1196
|
await db.run(
|
|
1144
|
-
|
|
1145
|
-
|
|
1197
|
+
chunkNN3QSOVS_cjs.toDrizzleSql(
|
|
1198
|
+
chunkU5W4LKZV_cjs.sql`ANALYZE ${chunkU5W4LKZV_cjs.sql.identifier(tableName)}`,
|
|
1146
1199
|
"sqlite"
|
|
1147
1200
|
)
|
|
1148
1201
|
);
|
|
@@ -1150,13 +1203,13 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1150
1203
|
for (const tableName of recordedAnalyzeTables) {
|
|
1151
1204
|
try {
|
|
1152
1205
|
await db.run(
|
|
1153
|
-
|
|
1154
|
-
|
|
1206
|
+
chunkNN3QSOVS_cjs.toDrizzleSql(
|
|
1207
|
+
chunkU5W4LKZV_cjs.sql`ANALYZE ${chunkU5W4LKZV_cjs.sql.identifier(tableName)}`,
|
|
1155
1208
|
"sqlite"
|
|
1156
1209
|
)
|
|
1157
1210
|
);
|
|
1158
1211
|
} catch (error) {
|
|
1159
|
-
if (!
|
|
1212
|
+
if (!chunkWBUFJ7BS_cjs.isMissingTableError(error)) throw error;
|
|
1160
1213
|
}
|
|
1161
1214
|
}
|
|
1162
1215
|
},
|
|
@@ -1165,18 +1218,26 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1165
1218
|
(target) => target.commitSchemaVersion(params)
|
|
1166
1219
|
);
|
|
1167
1220
|
},
|
|
1221
|
+
async commitSchemaVersionIfKindsEmpty(params, probes) {
|
|
1222
|
+
return runSchemaWriteTransaction(
|
|
1223
|
+
(target) => chunkST3LPB2V_cjs.commitSchemaVersionIfKindsEmpty(target, params, probes)
|
|
1224
|
+
);
|
|
1225
|
+
},
|
|
1168
1226
|
async setActiveVersion(params) {
|
|
1169
1227
|
await runSchemaWriteTransaction(
|
|
1170
1228
|
(target) => target.setActiveVersion(params)
|
|
1171
1229
|
);
|
|
1172
1230
|
},
|
|
1231
|
+
async schemaWriteTransaction(_graphId, fn) {
|
|
1232
|
+
return runSchemaWriteTransaction((target) => fn(target));
|
|
1233
|
+
},
|
|
1173
1234
|
async transaction(fn, options2) {
|
|
1174
1235
|
return backend.transactionWithNative((tx) => fn(tx), options2);
|
|
1175
1236
|
},
|
|
1176
1237
|
async transactionWithNative(fn, options2) {
|
|
1177
|
-
const temporaryWrites = options2?.temporaryWrites ===
|
|
1238
|
+
const temporaryWrites = options2?.temporaryWrites === chunk3PRKZW6D_cjs.INTERNAL_TEMPORARY_WRITES;
|
|
1178
1239
|
if (temporaryWrites && options2.accessMode !== "read_only") {
|
|
1179
|
-
throw new
|
|
1240
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
1180
1241
|
"Temporary-write transactions must be semantically read-only.",
|
|
1181
1242
|
{ dialect: "sqlite" }
|
|
1182
1243
|
);
|
|
@@ -1204,7 +1265,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1204
1265
|
);
|
|
1205
1266
|
try {
|
|
1206
1267
|
const result = await fn(
|
|
1207
|
-
|
|
1268
|
+
chunkST3LPB2V_cjs.gateFulltext(
|
|
1208
1269
|
txBackend,
|
|
1209
1270
|
contributionMaterializer.assertInitialized
|
|
1210
1271
|
),
|
|
@@ -1236,7 +1297,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1236
1297
|
"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)."
|
|
1237
1298
|
);
|
|
1238
1299
|
}
|
|
1239
|
-
|
|
1300
|
+
chunkST3LPB2V_cjs.assertAdoptedDialect(
|
|
1240
1301
|
externalTx,
|
|
1241
1302
|
sqliteCore.BaseSQLiteDatabase,
|
|
1242
1303
|
"sqlite"
|
|
@@ -1262,10 +1323,11 @@ function createTransactionBackend(options) {
|
|
|
1262
1323
|
tableNames: options.tableNames,
|
|
1263
1324
|
fulltextStrategy: options.fulltextStrategy,
|
|
1264
1325
|
vectorStrategy: options.vectorStrategy,
|
|
1265
|
-
contributionMaterializer: options.contributionMaterializer
|
|
1326
|
+
contributionMaterializer: options.contributionMaterializer,
|
|
1327
|
+
transactionScoped: true
|
|
1266
1328
|
});
|
|
1267
1329
|
}
|
|
1268
1330
|
|
|
1269
1331
|
exports.createSqliteBackend = createSqliteBackend;
|
|
1270
|
-
//# sourceMappingURL=chunk-
|
|
1271
|
-
//# sourceMappingURL=chunk-
|
|
1332
|
+
//# sourceMappingURL=chunk-OSZPLZIV.cjs.map
|
|
1333
|
+
//# sourceMappingURL=chunk-OSZPLZIV.cjs.map
|