@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,16 +1,36 @@
|
|
|
1
|
-
import { formatPostgresTimestamp, coerceNumericScore, nowIso } from './chunk-
|
|
2
|
-
import { runtimeStrategyContributions } from './chunk-
|
|
3
|
-
import { toDrizzleSql } from './chunk-
|
|
1
|
+
import { formatPostgresTimestamp, coerceNumericScore, nowIso } from './chunk-PHXITZE4.js';
|
|
2
|
+
import { runtimeStrategyContributions } from './chunk-7G32LIQM.js';
|
|
3
|
+
import { toDrizzleSql } from './chunk-GWEDD3DH.js';
|
|
4
4
|
import { chunk } from './chunk-35S6P5ZU.js';
|
|
5
|
-
import { createBackendOverlay } from './chunk-
|
|
5
|
+
import { createBackendOverlay } from './chunk-FMMIX6N4.js';
|
|
6
6
|
import { sortedReplacer } from './chunk-UR7W5YQK.js';
|
|
7
|
-
import { parseDimensionMismatch, isMissingTableError } from './chunk-
|
|
7
|
+
import { parseDimensionMismatch, isMissingTableError } from './chunk-B75XRV3O.js';
|
|
8
8
|
import { sha256Hex } from './chunk-K34OPSJK.js';
|
|
9
|
-
import { sql as sql$1, asCompiledStatementSql, isSqlFragment } from './chunk-
|
|
9
|
+
import { sql as sql$1, asCompiledStatementSql, isSqlFragment } from './chunk-6DCB664D.js';
|
|
10
10
|
import { isPresent } from './chunk-QMQLUA66.js';
|
|
11
|
-
import { EmbeddingDimensionChangedError, ConfigurationError, MigrationError, SchemaContentConflictError, DatabaseOperationError, UniquenessError, TrustedImportError,
|
|
11
|
+
import { EmbeddingDimensionChangedError, ConfigurationError, StaleVersionError, MigrationError, SchemaContentConflictError, DatabaseOperationError, UniquenessError, TrustedImportError, StoreNotInitializedError } from './chunk-4MB3AQAQ.js';
|
|
12
12
|
import { sql, is, getTableName } from 'drizzle-orm';
|
|
13
13
|
|
|
14
|
+
// src/backend/edge-endpoint-sets.ts
|
|
15
|
+
var FIND_EDGES_ENDPOINT_FIXED_PARAM_COUNT = 6;
|
|
16
|
+
function resolveEdgeEndpointIds(params) {
|
|
17
|
+
const { limitPerEndpoint } = params;
|
|
18
|
+
if (limitPerEndpoint !== void 0 && (!Number.isInteger(limitPerEndpoint) || limitPerEndpoint <= 0)) {
|
|
19
|
+
throw new ConfigurationError(
|
|
20
|
+
`findEdgesByEndpointSet \`limitPerEndpoint\` must be a positive integer, received ${String(limitPerEndpoint)}.`,
|
|
21
|
+
{
|
|
22
|
+
code: "EDGE_ENDPOINT_SET_INVALID",
|
|
23
|
+
graphId: params.graphId,
|
|
24
|
+
kind: params.kind
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
suggestion: "Pass a positive integer to cap each endpoint's rows, or omit it for an unbounded read."
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
return [...new Set(params.endpointIds)];
|
|
32
|
+
}
|
|
33
|
+
|
|
14
34
|
// src/backend/live-node-candidates.ts
|
|
15
35
|
function buildLiveNodeCandidates(nodesTableName, graphId, nodeKind, now) {
|
|
16
36
|
const nodes = sql$1.identifier(nodesTableName);
|
|
@@ -133,6 +153,29 @@ function evaluateContributionState(row, signature) {
|
|
|
133
153
|
if (row.materializedAt === void 0) return "missing";
|
|
134
154
|
return "initialized";
|
|
135
155
|
}
|
|
156
|
+
function diagnoseContribution(row, signature, tableExists) {
|
|
157
|
+
if (!tableExists) {
|
|
158
|
+
if (row === void 0) return void 0;
|
|
159
|
+
if (row.materializedAt !== void 0) return "orphaned-marker";
|
|
160
|
+
return row.lastError === void 0 ? void 0 : "failed-materialization";
|
|
161
|
+
}
|
|
162
|
+
const state = evaluateContributionState(row, signature);
|
|
163
|
+
switch (state) {
|
|
164
|
+
case "initialized": {
|
|
165
|
+
return void 0;
|
|
166
|
+
}
|
|
167
|
+
case "stale": {
|
|
168
|
+
return "stale";
|
|
169
|
+
}
|
|
170
|
+
case "missing":
|
|
171
|
+
case "failed": {
|
|
172
|
+
return "missing-marker";
|
|
173
|
+
}
|
|
174
|
+
default: {
|
|
175
|
+
return state;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
136
179
|
function identityOf(graphId, contribution) {
|
|
137
180
|
return {
|
|
138
181
|
graphId,
|
|
@@ -205,6 +248,7 @@ function contributionKey(graphId, contribution) {
|
|
|
205
248
|
function createContributionMaterializer(deps) {
|
|
206
249
|
const { dialect, fulltextStrategy, fulltextTableName } = deps;
|
|
207
250
|
const initializedSignatures = /* @__PURE__ */ new Map();
|
|
251
|
+
const uncacheableKeys = /* @__PURE__ */ new Set();
|
|
208
252
|
const computedSignatures = /* @__PURE__ */ new Map();
|
|
209
253
|
async function resolveContributionSignature(key, contribution) {
|
|
210
254
|
const cached = computedSignatures.get(key);
|
|
@@ -237,6 +281,11 @@ function createContributionMaterializer(deps) {
|
|
|
237
281
|
function runtimeContributions() {
|
|
238
282
|
return runtimeStrategyContributions(fulltextStrategy, fulltextTableName);
|
|
239
283
|
}
|
|
284
|
+
function cacheInitializedSignature(key, signature) {
|
|
285
|
+
if (!uncacheableKeys.has(key)) {
|
|
286
|
+
initializedSignatures.set(key, signature);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
240
289
|
async function materializeOne(graphId, contribution, signature, existing, options) {
|
|
241
290
|
const force = options?.force === true;
|
|
242
291
|
const identity = identityOf(graphId, contribution);
|
|
@@ -316,7 +365,7 @@ function createContributionMaterializer(deps) {
|
|
|
316
365
|
})
|
|
317
366
|
);
|
|
318
367
|
const pending = force ? entries : entries.filter(
|
|
319
|
-
(entry) => initializedSignatures.get(entry.key) !== entry.signature
|
|
368
|
+
(entry) => uncacheableKeys.has(entry.key) || initializedSignatures.get(entry.key) !== entry.signature
|
|
320
369
|
);
|
|
321
370
|
if (pending.length === 0) return;
|
|
322
371
|
const initialRead = force ? void 0 : await readMarkerRows(graphId);
|
|
@@ -327,7 +376,7 @@ function createContributionMaterializer(deps) {
|
|
|
327
376
|
) === "initialized"
|
|
328
377
|
)) {
|
|
329
378
|
for (const entry of pending) {
|
|
330
|
-
|
|
379
|
+
cacheInitializedSignature(entry.key, entry.signature);
|
|
331
380
|
}
|
|
332
381
|
return;
|
|
333
382
|
}
|
|
@@ -348,7 +397,7 @@ function createContributionMaterializer(deps) {
|
|
|
348
397
|
}
|
|
349
398
|
);
|
|
350
399
|
if (outcome === "materialized") {
|
|
351
|
-
|
|
400
|
+
cacheInitializedSignature(entry.key, entry.signature);
|
|
352
401
|
}
|
|
353
402
|
}
|
|
354
403
|
}
|
|
@@ -364,7 +413,7 @@ function createContributionMaterializer(deps) {
|
|
|
364
413
|
})
|
|
365
414
|
);
|
|
366
415
|
const pending = entries.filter(
|
|
367
|
-
(entry) => initializedSignatures.get(entry.key) !== entry.signature
|
|
416
|
+
(entry) => uncacheableKeys.has(entry.key) || initializedSignatures.get(entry.key) !== entry.signature
|
|
368
417
|
);
|
|
369
418
|
if (pending.length === 0) return;
|
|
370
419
|
const read = await readMarkerRows(graphId);
|
|
@@ -384,7 +433,7 @@ function createContributionMaterializer(deps) {
|
|
|
384
433
|
details: { logicalName: contribution.logicalName }
|
|
385
434
|
});
|
|
386
435
|
}
|
|
387
|
-
|
|
436
|
+
cacheInitializedSignature(key, signature);
|
|
388
437
|
}
|
|
389
438
|
}
|
|
390
439
|
async function ensureRuntimeContributions(graphId) {
|
|
@@ -420,15 +469,85 @@ function createContributionMaterializer(deps) {
|
|
|
420
469
|
await assertContributions(graphId, contributions);
|
|
421
470
|
}
|
|
422
471
|
}
|
|
423
|
-
async function
|
|
472
|
+
async function verifyContributions(graphId, vectorSlots) {
|
|
473
|
+
const targetsByGraph = /* @__PURE__ */ new Map();
|
|
474
|
+
function addTarget(id, target) {
|
|
475
|
+
const existing = targetsByGraph.get(id);
|
|
476
|
+
if (existing === void 0) targetsByGraph.set(id, [target]);
|
|
477
|
+
else existing.push(target);
|
|
478
|
+
}
|
|
479
|
+
for (const contribution of runtimeContributions()) {
|
|
480
|
+
addTarget(graphId, { contribution });
|
|
481
|
+
}
|
|
482
|
+
const { vectorStrategy } = deps;
|
|
483
|
+
if (vectorStrategy !== void 0) {
|
|
484
|
+
for (const slot of vectorSlots) {
|
|
485
|
+
for (const contribution of vectorStrategy.ownedTables(slot)) {
|
|
486
|
+
addTarget(slot.graphId, {
|
|
487
|
+
contribution,
|
|
488
|
+
kind: slot.nodeKind,
|
|
489
|
+
fieldPath: slot.fieldPath
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
const probes = /* @__PURE__ */ new Map();
|
|
495
|
+
function tableExists(tableName) {
|
|
496
|
+
const pending = probes.get(tableName);
|
|
497
|
+
if (pending !== void 0) return pending;
|
|
498
|
+
const probe = deps.tableExists(tableName);
|
|
499
|
+
probes.set(tableName, probe);
|
|
500
|
+
return probe;
|
|
501
|
+
}
|
|
502
|
+
const diagnostics = [];
|
|
503
|
+
for (const [id, targets] of targetsByGraph) {
|
|
504
|
+
const read = await readMarkerRows(id);
|
|
505
|
+
const rows = read.kind === "rows" ? read.rows : /* @__PURE__ */ new Map();
|
|
506
|
+
for (const { contribution, kind, fieldPath } of targets) {
|
|
507
|
+
const key = contributionKey(id, contribution);
|
|
508
|
+
const row = rows.get(key);
|
|
509
|
+
const state = diagnoseContribution(
|
|
510
|
+
row,
|
|
511
|
+
await resolveContributionSignature(key, contribution),
|
|
512
|
+
await tableExists(contribution.tableName)
|
|
513
|
+
);
|
|
514
|
+
if (state === void 0) continue;
|
|
515
|
+
diagnostics.push({
|
|
516
|
+
owner: contribution.owner,
|
|
517
|
+
logicalName: contribution.logicalName,
|
|
518
|
+
physicalName: contribution.tableName,
|
|
519
|
+
...kind === void 0 ? {} : { kind },
|
|
520
|
+
...fieldPath === void 0 ? {} : { fieldPath },
|
|
521
|
+
state,
|
|
522
|
+
// The recorded reason, carried through verbatim. `state` folds
|
|
523
|
+
// several marker verdicts together because they share a repair;
|
|
524
|
+
// this is what keeps the fold from also discarding the one thing
|
|
525
|
+
// the catalog can never tell the operator.
|
|
526
|
+
...row?.lastError === void 0 ? {} : { lastError: row.lastError }
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
return diagnostics;
|
|
531
|
+
}
|
|
532
|
+
function evictVectorSlot(slot) {
|
|
424
533
|
if (deps.vectorStrategy === void 0) return;
|
|
425
534
|
for (const contribution of deps.vectorStrategy.ownedTables(slot)) {
|
|
426
|
-
await deps.deleteMarker(identityOf(slot.graphId, contribution));
|
|
427
535
|
const key = contributionKey(slot.graphId, contribution);
|
|
536
|
+
uncacheableKeys.add(key);
|
|
428
537
|
initializedSignatures.delete(key);
|
|
429
538
|
computedSignatures.delete(key);
|
|
430
539
|
}
|
|
431
540
|
}
|
|
541
|
+
async function dropVectorSlot(slot) {
|
|
542
|
+
if (deps.vectorStrategy === void 0) return;
|
|
543
|
+
try {
|
|
544
|
+
for (const contribution of deps.vectorStrategy.ownedTables(slot)) {
|
|
545
|
+
await deps.deleteMarker(identityOf(slot.graphId, contribution));
|
|
546
|
+
}
|
|
547
|
+
} finally {
|
|
548
|
+
evictVectorSlot(slot);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
432
551
|
return {
|
|
433
552
|
ensureRuntimeContributions,
|
|
434
553
|
assertInitialized,
|
|
@@ -436,7 +555,9 @@ function createContributionMaterializer(deps) {
|
|
|
436
555
|
ensureVectorSlots,
|
|
437
556
|
assertVectorSlot,
|
|
438
557
|
assertVectorSlots,
|
|
439
|
-
dropVectorSlot
|
|
558
|
+
dropVectorSlot,
|
|
559
|
+
evictVectorSlot,
|
|
560
|
+
verifyContributions
|
|
440
561
|
};
|
|
441
562
|
}
|
|
442
563
|
var SQLITE_INDEX_MAT_TIMESTAMPS = {
|
|
@@ -788,6 +909,19 @@ function buildCountNodesByKind(tables, params) {
|
|
|
788
909
|
WHERE ${whereClause}
|
|
789
910
|
`;
|
|
790
911
|
}
|
|
912
|
+
function buildIdSetCondition(column, ids) {
|
|
913
|
+
return sql`${column} IN (${sql.join(
|
|
914
|
+
ids.map((id) => sql`${id}`),
|
|
915
|
+
sql`, `
|
|
916
|
+
)})`;
|
|
917
|
+
}
|
|
918
|
+
function buildEdgeOrdering(tables, orderBy) {
|
|
919
|
+
const { edges } = tables;
|
|
920
|
+
return orderBy === "id" ? { qualified: sql`${edges.id} ASC`, bare: sql.raw(`"id" ASC`) } : {
|
|
921
|
+
qualified: sql`${edges.createdAt} DESC, ${edges.id} DESC`,
|
|
922
|
+
bare: sql.raw(`"created_at" DESC, "id" DESC`)
|
|
923
|
+
};
|
|
924
|
+
}
|
|
791
925
|
function buildFindEdgesByKind(tables, params) {
|
|
792
926
|
const { edges } = tables;
|
|
793
927
|
const conditions = [
|
|
@@ -811,7 +945,10 @@ function buildFindEdgesByKind(tables, params) {
|
|
|
811
945
|
conditions.push(sql`${edges.id} > ${params.after}`);
|
|
812
946
|
}
|
|
813
947
|
const whereClause = sql.join(conditions, sql` AND `);
|
|
814
|
-
const
|
|
948
|
+
const { qualified: orderByClause } = buildEdgeOrdering(
|
|
949
|
+
tables,
|
|
950
|
+
params.orderBy
|
|
951
|
+
);
|
|
815
952
|
if (params.limit !== void 0 && params.offset !== void 0) {
|
|
816
953
|
return sql`
|
|
817
954
|
SELECT * FROM ${edges}
|
|
@@ -834,6 +971,42 @@ function buildFindEdgesByKind(tables, params) {
|
|
|
834
971
|
ORDER BY ${orderByClause}
|
|
835
972
|
`;
|
|
836
973
|
}
|
|
974
|
+
function buildFindEdgesByEndpointSet(tables, params, endpointIds) {
|
|
975
|
+
const { edges } = tables;
|
|
976
|
+
const fromSide = params.side === "from";
|
|
977
|
+
const kindColumn = fromSide ? edges.fromKind : edges.toKind;
|
|
978
|
+
const idColumn = fromSide ? edges.fromId : edges.toId;
|
|
979
|
+
const whereClause = sql.join(
|
|
980
|
+
[
|
|
981
|
+
sql`${edges.graphId} = ${params.graphId}`,
|
|
982
|
+
sql`${edges.kind} = ${params.kind}`,
|
|
983
|
+
...buildTemporalConditions(edges, params),
|
|
984
|
+
sql`${kindColumn} = ${params.endpointKind}`,
|
|
985
|
+
buildIdSetCondition(idColumn, endpointIds)
|
|
986
|
+
],
|
|
987
|
+
sql` AND `
|
|
988
|
+
);
|
|
989
|
+
const { qualified: orderByClause, bare: derivedOrderByClause } = buildEdgeOrdering(tables, void 0);
|
|
990
|
+
if (params.limitPerEndpoint === void 0) {
|
|
991
|
+
return sql`
|
|
992
|
+
SELECT * FROM ${edges}
|
|
993
|
+
WHERE ${whereClause}
|
|
994
|
+
ORDER BY ${orderByClause}
|
|
995
|
+
`;
|
|
996
|
+
}
|
|
997
|
+
const ranked = sql`
|
|
998
|
+
SELECT *, ROW_NUMBER() OVER (
|
|
999
|
+
PARTITION BY ${idColumn} ORDER BY ${orderByClause}
|
|
1000
|
+
) AS endpoint_rank
|
|
1001
|
+
FROM ${edges}
|
|
1002
|
+
WHERE ${whereClause}
|
|
1003
|
+
`;
|
|
1004
|
+
return sql`
|
|
1005
|
+
SELECT * FROM (${ranked}) AS ranked_edges
|
|
1006
|
+
WHERE endpoint_rank <= ${params.limitPerEndpoint}
|
|
1007
|
+
ORDER BY ${derivedOrderByClause}
|
|
1008
|
+
`;
|
|
1009
|
+
}
|
|
837
1010
|
function buildCountEdgesByKind(tables, params) {
|
|
838
1011
|
const { edges } = tables;
|
|
839
1012
|
const conditions = [
|
|
@@ -1571,6 +1744,7 @@ var COMMON_TABLE_OPERATION_BUILDERS = {
|
|
|
1571
1744
|
buildFindNodesByKind,
|
|
1572
1745
|
buildCountNodesByKind,
|
|
1573
1746
|
buildFindEdgesByKind,
|
|
1747
|
+
buildFindEdgesByEndpointSet,
|
|
1574
1748
|
buildCountEdgesByKind,
|
|
1575
1749
|
buildDeleteUnique,
|
|
1576
1750
|
buildHardDeleteUniquesByNode,
|
|
@@ -1584,6 +1758,7 @@ function createCommonOperationStrategy(tables, dialect, fulltextStrategy) {
|
|
|
1584
1758
|
COMMON_TABLE_OPERATION_BUILDERS
|
|
1585
1759
|
);
|
|
1586
1760
|
const fulltextTable = tables.fulltextTableName;
|
|
1761
|
+
const contributionMaterializations = tables.contributionMaterializations;
|
|
1587
1762
|
const fulltextBuilders = {
|
|
1588
1763
|
buildUpsertFulltext: (params, timestamp) => fulltextStrategy.buildUpsert(fulltextTable, params, timestamp).map((statement) => toDrizzleSql(statement, dialect)),
|
|
1589
1764
|
buildDeleteFulltext: (params) => fulltextStrategy.buildDelete(fulltextTable, params).map((statement) => toDrizzleSql(statement, dialect)),
|
|
@@ -1650,9 +1825,19 @@ function createCommonOperationStrategy(tables, dialect, fulltextStrategy) {
|
|
|
1650
1825
|
});
|
|
1651
1826
|
}
|
|
1652
1827
|
};
|
|
1828
|
+
function buildDeleteContributionMaterialization(identity) {
|
|
1829
|
+
return sql`
|
|
1830
|
+
DELETE FROM ${contributionMaterializations}
|
|
1831
|
+
WHERE graph_id = ${identity.graphId}
|
|
1832
|
+
AND logical_name = ${identity.logicalName}
|
|
1833
|
+
AND owner = ${identity.owner}
|
|
1834
|
+
AND table_name = ${identity.tableName}
|
|
1835
|
+
`;
|
|
1836
|
+
}
|
|
1653
1837
|
return {
|
|
1654
1838
|
...tableOperations,
|
|
1655
1839
|
...fulltextBuilders,
|
|
1840
|
+
buildDeleteContributionMaterialization,
|
|
1656
1841
|
buildInsertUnique(params) {
|
|
1657
1842
|
return buildInsertUnique(tables, dialect, params);
|
|
1658
1843
|
},
|
|
@@ -1735,6 +1920,9 @@ function assertAdoptedDialect(externalTx, brand, backend) {
|
|
|
1735
1920
|
}
|
|
1736
1921
|
function verifyExpectedActiveVersion(graphId, expected, actualActiveVersion) {
|
|
1737
1922
|
const expectedVersion = expected.kind === "active" ? expected.version : 0;
|
|
1923
|
+
assertActiveSchemaVersion(graphId, expectedVersion, actualActiveVersion);
|
|
1924
|
+
}
|
|
1925
|
+
function assertActiveSchemaVersion(graphId, expectedVersion, actualActiveVersion) {
|
|
1738
1926
|
if (actualActiveVersion !== expectedVersion) {
|
|
1739
1927
|
throw new StaleVersionError({
|
|
1740
1928
|
graphId,
|
|
@@ -1743,17 +1931,52 @@ function verifyExpectedActiveVersion(graphId, expected, actualActiveVersion) {
|
|
|
1743
1931
|
});
|
|
1744
1932
|
}
|
|
1745
1933
|
}
|
|
1934
|
+
async function commitSchemaVersionIfKindsEmpty(backend, params, probes) {
|
|
1935
|
+
const [existing, active] = await Promise.all([
|
|
1936
|
+
backend.getSchemaVersion(params.graphId, params.version),
|
|
1937
|
+
backend.getActiveSchema(params.graphId)
|
|
1938
|
+
]);
|
|
1939
|
+
if (existing !== void 0 && (existing.is_active || existing.schema_hash !== params.schemaHash)) {
|
|
1940
|
+
return {
|
|
1941
|
+
status: "committed",
|
|
1942
|
+
row: await backend.commitSchemaVersion(params)
|
|
1943
|
+
};
|
|
1944
|
+
}
|
|
1945
|
+
verifyExpectedActiveVersion(
|
|
1946
|
+
params.graphId,
|
|
1947
|
+
params.expected,
|
|
1948
|
+
active?.version ?? 0
|
|
1949
|
+
);
|
|
1950
|
+
const populated = [];
|
|
1951
|
+
for (const probe of probes) {
|
|
1952
|
+
const count = probe.entity === "node" ? await backend.countNodesByKind({
|
|
1953
|
+
graphId: params.graphId,
|
|
1954
|
+
kind: probe.kind
|
|
1955
|
+
}) : await backend.countEdgesByKind({
|
|
1956
|
+
graphId: params.graphId,
|
|
1957
|
+
kind: probe.kind
|
|
1958
|
+
});
|
|
1959
|
+
if (count > 0) populated.push({ ...probe, count });
|
|
1960
|
+
}
|
|
1961
|
+
if (populated.length > 0) {
|
|
1962
|
+
return { status: "populated", kinds: populated };
|
|
1963
|
+
}
|
|
1964
|
+
return {
|
|
1965
|
+
status: "committed",
|
|
1966
|
+
row: await backend.commitSchemaVersion(params)
|
|
1967
|
+
};
|
|
1968
|
+
}
|
|
1746
1969
|
function createCommonOperationBackend(options) {
|
|
1747
1970
|
const { batchConfig, execution, operationStrategy, rowMappers } = options;
|
|
1748
1971
|
const nowIso2 = options.nowIso ?? nowIso;
|
|
1749
|
-
const
|
|
1972
|
+
const tableExists = createCachedTableExistence(
|
|
1750
1973
|
(tableName) => execution.execGet(
|
|
1751
1974
|
operationStrategy.buildTableExists(tableName)
|
|
1752
1975
|
),
|
|
1753
1976
|
options.tableExistenceCache
|
|
1754
1977
|
);
|
|
1755
1978
|
async function runIgnorableClearStatement(statement) {
|
|
1756
|
-
if (statement.ignoreMissingTable === true && statement.requiredTableName !== void 0 && !await
|
|
1979
|
+
if (statement.ignoreMissingTable === true && statement.requiredTableName !== void 0 && !await tableExists(statement.requiredTableName)) {
|
|
1757
1980
|
return;
|
|
1758
1981
|
}
|
|
1759
1982
|
await execution.execRun(statement.query);
|
|
@@ -1765,6 +1988,10 @@ function createCommonOperationBackend(options) {
|
|
|
1765
1988
|
return row === void 0 ? 0 : rowMappers.toSchemaVersionRow(row).version;
|
|
1766
1989
|
}
|
|
1767
1990
|
return {
|
|
1991
|
+
tableExists,
|
|
1992
|
+
async executeSchemaDdl(ddl) {
|
|
1993
|
+
await execution.execRun(asCompiledStatementSql(sql$1.raw(ddl)));
|
|
1994
|
+
},
|
|
1768
1995
|
async executeStatement(query) {
|
|
1769
1996
|
await execution.execRun(query);
|
|
1770
1997
|
},
|
|
@@ -2017,6 +2244,22 @@ function createCommonOperationBackend(options) {
|
|
|
2017
2244
|
const rows = await execution.execAll(query);
|
|
2018
2245
|
return rows.map((row) => rowMappers.toEdgeRow(row));
|
|
2019
2246
|
},
|
|
2247
|
+
async findEdgesByEndpointSet(params) {
|
|
2248
|
+
const ids = resolveEdgeEndpointIds(params);
|
|
2249
|
+
const edgeRows = [];
|
|
2250
|
+
for (const idChunk of chunk(
|
|
2251
|
+
ids,
|
|
2252
|
+
batchConfig.findEdgesEndpointChunkSize
|
|
2253
|
+
)) {
|
|
2254
|
+
const query = operationStrategy.buildFindEdgesByEndpointSet(
|
|
2255
|
+
params,
|
|
2256
|
+
idChunk
|
|
2257
|
+
);
|
|
2258
|
+
const rows = await execution.execAll(query);
|
|
2259
|
+
for (const row of rows) edgeRows.push(rowMappers.toEdgeRow(row));
|
|
2260
|
+
}
|
|
2261
|
+
return edgeRows;
|
|
2262
|
+
},
|
|
2020
2263
|
async countEdgesByKind(params) {
|
|
2021
2264
|
const query = operationStrategy.buildCountEdgesByKind(params);
|
|
2022
2265
|
const row = await execution.execGet(query);
|
|
@@ -2487,6 +2730,6 @@ function getOrCreateLru(cache, key, cacheMax, create) {
|
|
|
2487
2730
|
return value;
|
|
2488
2731
|
}
|
|
2489
2732
|
|
|
2490
|
-
export { EMBEDDING_UPSERT_PARAM_COUNT, POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS, POSTGRES_INDEX_MAT_TIMESTAMPS, POSTGRES_KIND_REMOVAL_TIMESTAMPS, SQLITE_CONTRIBUTION_MAT_TIMESTAMPS, SQLITE_INDEX_MAT_TIMESTAMPS, SQLITE_KIND_REMOVAL_TIMESTAMPS, analyzeImportedTables, assertAdoptedDialect, assertTrustedImportDatabaseEmpty, buildContributionInsertValues, buildContributionOnConflictSet, buildKindRemovalInsertValues, buildKindRemovalOnConflictSet, buildLiveNodeCandidates, buildMaterializationInsertValues, buildMaterializationOnConflictSet, createCachedTableExistence, createCommonOperationBackend, createContributionMaterializer, createPostgresOperationStrategy, createPostgresTrustedImportSession, createSqliteOperationStrategy, createSqliteTrustedImportSession, gateFulltext, gateFulltextMethods, getOrCreateLru, lockPostgresTrustedImportTables, mapContributionMaterializationRow, mapHybridSearchRow, mapKindRemovalRow, mapMaterializationRow, mapVectorWriteError, restoreSecondaryIndexes, suspendPostgresSecondaryIndexes, suspendSqliteSecondaryIndexes, vectorSlotFromCreateIndexParams, vectorSlotFromDropIndexParams, vectorSlotFromParams };
|
|
2491
|
-
//# sourceMappingURL=chunk-
|
|
2492
|
-
//# sourceMappingURL=chunk-
|
|
2733
|
+
export { EMBEDDING_UPSERT_PARAM_COUNT, FIND_EDGES_ENDPOINT_FIXED_PARAM_COUNT, POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS, POSTGRES_INDEX_MAT_TIMESTAMPS, POSTGRES_KIND_REMOVAL_TIMESTAMPS, SQLITE_CONTRIBUTION_MAT_TIMESTAMPS, SQLITE_INDEX_MAT_TIMESTAMPS, SQLITE_KIND_REMOVAL_TIMESTAMPS, analyzeImportedTables, assertActiveSchemaVersion, assertAdoptedDialect, assertTrustedImportDatabaseEmpty, buildContributionInsertValues, buildContributionOnConflictSet, buildKindRemovalInsertValues, buildKindRemovalOnConflictSet, buildLiveNodeCandidates, buildMaterializationInsertValues, buildMaterializationOnConflictSet, commitSchemaVersionIfKindsEmpty, createCachedTableExistence, createCommonOperationBackend, createContributionMaterializer, createPostgresOperationStrategy, createPostgresTrustedImportSession, createSqliteOperationStrategy, createSqliteTrustedImportSession, gateFulltext, gateFulltextMethods, getOrCreateLru, lockPostgresTrustedImportTables, mapContributionMaterializationRow, mapHybridSearchRow, mapKindRemovalRow, mapMaterializationRow, mapVectorWriteError, restoreSecondaryIndexes, suspendPostgresSecondaryIndexes, suspendSqliteSecondaryIndexes, tableExistsFromRow, vectorSlotFromCreateIndexParams, vectorSlotFromDropIndexParams, vectorSlotFromParams };
|
|
2734
|
+
//# sourceMappingURL=chunk-SQRD2CYF.js.map
|
|
2735
|
+
//# sourceMappingURL=chunk-SQRD2CYF.js.map
|