@nicia-ai/typegraph 0.40.0 → 0.42.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 -2
- package/dist/backend/drizzle/indexes.d.ts +1 -2
- package/dist/backend/drizzle/indexes.js +5 -5
- package/dist/backend/index.cjs +50 -50
- package/dist/backend/index.d.cts +3 -4
- package/dist/backend/index.d.ts +3 -4
- package/dist/backend/index.js +11 -11
- package/dist/backend/postgres/index.cjs +26 -26
- package/dist/backend/postgres/index.d.cts +5 -6
- package/dist/backend/postgres/index.d.ts +5 -6
- package/dist/backend/postgres/index.js +13 -13
- package/dist/backend/postgres/pglite-store.cjs +34 -34
- package/dist/backend/postgres/pglite-store.d.cts +7 -8
- package/dist/backend/postgres/pglite-store.d.ts +7 -8
- package/dist/backend/postgres/pglite-store.js +30 -30
- package/dist/backend/postgres/pglite.cjs +15 -15
- package/dist/backend/postgres/pglite.d.cts +2 -3
- package/dist/backend/postgres/pglite.d.ts +2 -3
- package/dist/backend/postgres/pglite.js +14 -14
- package/dist/backend/sqlite/index.cjs +23 -23
- package/dist/backend/sqlite/index.d.cts +5 -6
- package/dist/backend/sqlite/index.d.ts +5 -6
- package/dist/backend/sqlite/index.js +11 -11
- package/dist/backend/sqlite/libsql.cjs +17 -17
- package/dist/backend/sqlite/libsql.d.cts +2 -3
- package/dist/backend/sqlite/libsql.d.ts +2 -3
- package/dist/backend/sqlite/libsql.js +13 -13
- package/dist/backend/sqlite/local-store.cjs +35 -35
- package/dist/backend/sqlite/local-store.d.cts +7 -8
- package/dist/backend/sqlite/local-store.d.ts +7 -8
- package/dist/backend/sqlite/local-store.js +31 -31
- package/dist/backend/sqlite/local.cjs +16 -16
- package/dist/backend/sqlite/local.d.cts +2 -3
- package/dist/backend/sqlite/local.d.ts +2 -3
- package/dist/backend/sqlite/local.js +14 -14
- package/dist/{chunk-H6I36MGT.cjs → chunk-277UZV7X.cjs} +1191 -1090
- package/dist/chunk-277UZV7X.cjs.map +1 -0
- package/dist/{chunk-2I3DNNBU.js → chunk-2G6ZEGYO.js} +4 -4
- package/dist/{chunk-2I3DNNBU.js.map → chunk-2G6ZEGYO.js.map} +1 -1
- package/dist/{chunk-76HE7DJP.js → chunk-2HKIID5K.js} +5 -5
- package/dist/{chunk-76HE7DJP.js.map → chunk-2HKIID5K.js.map} +1 -1
- package/dist/{chunk-QOHTVDHU.js → chunk-2OOY4OYT.js} +4 -4
- package/dist/{chunk-QOHTVDHU.js.map → chunk-2OOY4OYT.js.map} +1 -1
- package/dist/{chunk-UCHW2MGP.cjs → chunk-2SO5I5AI.cjs} +196 -196
- package/dist/{chunk-UCHW2MGP.cjs.map → chunk-2SO5I5AI.cjs.map} +1 -1
- package/dist/{chunk-LFFVD5ZR.cjs → chunk-33PAKPED.cjs} +41 -41
- package/dist/{chunk-LFFVD5ZR.cjs.map → chunk-33PAKPED.cjs.map} +1 -1
- package/dist/chunk-3RPQDGUE.cjs +83 -0
- package/dist/chunk-3RPQDGUE.cjs.map +1 -0
- package/dist/{chunk-PH4IJ3V5.js → chunk-3V6D5DEC.js} +3 -3
- package/dist/{chunk-PH4IJ3V5.js.map → chunk-3V6D5DEC.js.map} +1 -1
- package/dist/{chunk-Y5UC3IXF.js → chunk-42XYPKZU.js} +3 -3
- package/dist/{chunk-Y5UC3IXF.js.map → chunk-42XYPKZU.js.map} +1 -1
- package/dist/{chunk-XZA3Y4YH.js → chunk-4WYFRACU.js} +3 -3
- package/dist/{chunk-XZA3Y4YH.js.map → chunk-4WYFRACU.js.map} +1 -1
- package/dist/{chunk-AQVDAKXH.js → chunk-4XRP2N6B.js} +3 -3
- package/dist/{chunk-AQVDAKXH.js.map → chunk-4XRP2N6B.js.map} +1 -1
- package/dist/{chunk-PWXGB77L.cjs → chunk-5AERZSHC.cjs} +4 -4
- package/dist/{chunk-PWXGB77L.cjs.map → chunk-5AERZSHC.cjs.map} +1 -1
- package/dist/{chunk-K6CD6W5J.js → chunk-5C75HQYQ.js} +5 -5
- package/dist/{chunk-K6CD6W5J.js.map → chunk-5C75HQYQ.js.map} +1 -1
- package/dist/{chunk-2J5NMMVR.cjs → chunk-5GV4JQNA.cjs} +43 -43
- package/dist/{chunk-2J5NMMVR.cjs.map → chunk-5GV4JQNA.cjs.map} +1 -1
- package/dist/{chunk-KHNKYSGP.cjs → chunk-5P6IPIT6.cjs} +41 -41
- package/dist/{chunk-KHNKYSGP.cjs.map → chunk-5P6IPIT6.cjs.map} +1 -1
- package/dist/{chunk-53BSOG3O.js → chunk-6NB73BXV.js} +11 -11
- package/dist/{chunk-53BSOG3O.js.map → chunk-6NB73BXV.js.map} +1 -1
- package/dist/{chunk-SE422RES.cjs → chunk-6TJ6PKPS.cjs} +27 -27
- package/dist/{chunk-SE422RES.cjs.map → chunk-6TJ6PKPS.cjs.map} +1 -1
- package/dist/{chunk-QXKVUJLI.cjs → chunk-7TOT7RKY.cjs} +120 -120
- package/dist/{chunk-QXKVUJLI.cjs.map → chunk-7TOT7RKY.cjs.map} +1 -1
- package/dist/{chunk-7WLEQIHA.cjs → chunk-7Y6BV3TK.cjs} +100 -100
- package/dist/{chunk-7WLEQIHA.cjs.map → chunk-7Y6BV3TK.cjs.map} +1 -1
- package/dist/{chunk-HP6LWBLB.cjs → chunk-AO2WPYFZ.cjs} +4 -4
- package/dist/{chunk-HP6LWBLB.cjs.map → chunk-AO2WPYFZ.cjs.map} +1 -1
- package/dist/{chunk-7UTUKH4E.cjs → chunk-AQR6BHB3.cjs} +10 -10
- package/dist/{chunk-7UTUKH4E.cjs.map → chunk-AQR6BHB3.cjs.map} +1 -1
- package/dist/{chunk-X4PVHAZ6.cjs → chunk-ARN3ZODS.cjs} +6 -6
- package/dist/{chunk-X4PVHAZ6.cjs.map → chunk-ARN3ZODS.cjs.map} +1 -1
- package/dist/{chunk-EFZ4S22A.js → chunk-BGXKXGDI.js} +12 -12
- package/dist/{chunk-EFZ4S22A.js.map → chunk-BGXKXGDI.js.map} +1 -1
- package/dist/{chunk-YYLMXERH.js → chunk-CDYRPI5U.js} +4 -4
- package/dist/{chunk-YYLMXERH.js.map → chunk-CDYRPI5U.js.map} +1 -1
- package/dist/{chunk-3LKL3S6X.js → chunk-CI5NPLXX.js} +3 -3
- package/dist/{chunk-3LKL3S6X.js.map → chunk-CI5NPLXX.js.map} +1 -1
- package/dist/{chunk-UUIBACKJ.js → chunk-CUPJL6TS.js} +3 -3
- package/dist/{chunk-UUIBACKJ.js.map → chunk-CUPJL6TS.js.map} +1 -1
- package/dist/{chunk-JZYMOHHM.cjs → chunk-CVK4T34X.cjs} +22 -22
- package/dist/{chunk-JZYMOHHM.cjs.map → chunk-CVK4T34X.cjs.map} +1 -1
- package/dist/{chunk-L3DDZUZP.js → chunk-CVNGKTHO.js} +4 -4
- package/dist/{chunk-L3DDZUZP.js.map → chunk-CVNGKTHO.js.map} +1 -1
- package/dist/{chunk-RW24SAHI.cjs → chunk-DMZEVJGL.cjs} +13 -13
- package/dist/{chunk-RW24SAHI.cjs.map → chunk-DMZEVJGL.cjs.map} +1 -1
- package/dist/{chunk-3BL3JFHL.js → chunk-DP7KC6CL.js} +126 -25
- package/dist/{chunk-3BL3JFHL.js.map → chunk-DP7KC6CL.js.map} +1 -1
- package/dist/{chunk-QYDUCWD2.cjs → chunk-ECU53PMN.cjs} +4 -4
- package/dist/{chunk-QYDUCWD2.cjs.map → chunk-ECU53PMN.cjs.map} +1 -1
- package/dist/{chunk-SCTZRFW5.js → chunk-EQOQOT55.js} +5 -5
- package/dist/{chunk-SCTZRFW5.js.map → chunk-EQOQOT55.js.map} +1 -1
- package/dist/{chunk-JHK6NPFV.js → chunk-EVFL2ZY5.js} +9 -9
- package/dist/{chunk-JHK6NPFV.js.map → chunk-EVFL2ZY5.js.map} +1 -1
- package/dist/{chunk-SAMJLDGG.cjs → chunk-F2KVJ6FF.cjs} +112 -112
- package/dist/{chunk-SAMJLDGG.cjs.map → chunk-F2KVJ6FF.cjs.map} +1 -1
- package/dist/{chunk-NMQ6C6TS.cjs → chunk-F7TDKSVB.cjs} +4 -4
- package/dist/{chunk-NMQ6C6TS.cjs.map → chunk-F7TDKSVB.cjs.map} +1 -1
- package/dist/{chunk-HQRZEYYB.cjs → chunk-FFQGI67R.cjs} +44 -44
- package/dist/{chunk-HQRZEYYB.cjs.map → chunk-FFQGI67R.cjs.map} +1 -1
- package/dist/{chunk-YIRLBUNN.js → chunk-FMPZPOUD.js} +3 -3
- package/dist/{chunk-YIRLBUNN.js.map → chunk-FMPZPOUD.js.map} +1 -1
- package/dist/{chunk-LL5D5T5W.cjs → chunk-FSCJOTHF.cjs} +10 -10
- package/dist/{chunk-LL5D5T5W.cjs.map → chunk-FSCJOTHF.cjs.map} +1 -1
- package/dist/{chunk-2X73QTIC.cjs → chunk-FY4VY5EV.cjs} +20 -20
- package/dist/{chunk-2X73QTIC.cjs.map → chunk-FY4VY5EV.cjs.map} +1 -1
- package/dist/{chunk-3SHAUJRB.js → chunk-GT7NEXSU.js} +3 -3
- package/dist/{chunk-3SHAUJRB.js.map → chunk-GT7NEXSU.js.map} +1 -1
- package/dist/{chunk-W66YCXWT.js → chunk-HHBKGPEI.js} +11 -10
- package/dist/chunk-HHBKGPEI.js.map +1 -0
- package/dist/{chunk-CKFBZ4LV.cjs → chunk-I73ATSAH.cjs} +4 -4
- package/dist/{chunk-CKFBZ4LV.cjs.map → chunk-I73ATSAH.cjs.map} +1 -1
- package/dist/{chunk-ELA3V6UN.js → chunk-JOYPNY33.js} +9 -9
- package/dist/{chunk-ELA3V6UN.js.map → chunk-JOYPNY33.js.map} +1 -1
- package/dist/{chunk-YIX3BEBR.cjs → chunk-K2HHCWZO.cjs} +108 -108
- package/dist/{chunk-YIX3BEBR.cjs.map → chunk-K2HHCWZO.cjs.map} +1 -1
- package/dist/{chunk-SAFZ6JTI.cjs → chunk-KTBTSHU6.cjs} +19 -2
- package/dist/chunk-KTBTSHU6.cjs.map +1 -0
- package/dist/chunk-LDCWO5B6.js +81 -0
- package/dist/chunk-LDCWO5B6.js.map +1 -0
- package/dist/{chunk-I5CRUPKO.js → chunk-LQLVJWUH.js} +7 -7
- package/dist/{chunk-I5CRUPKO.js.map → chunk-LQLVJWUH.js.map} +1 -1
- package/dist/{chunk-ZE7E46IZ.js → chunk-LTVBD56M.js} +6 -6
- package/dist/{chunk-ZE7E46IZ.js.map → chunk-LTVBD56M.js.map} +1 -1
- package/dist/{chunk-6N7QBIWN.js → chunk-M4GYQF2H.js} +3 -3
- package/dist/{chunk-6N7QBIWN.js.map → chunk-M4GYQF2H.js.map} +1 -1
- package/dist/{chunk-XRU7V7FF.cjs → chunk-O2GZM7UK.cjs} +7 -7
- package/dist/{chunk-XRU7V7FF.cjs.map → chunk-O2GZM7UK.cjs.map} +1 -1
- package/dist/{chunk-ZE6NVENI.js → chunk-O3USVVWS.js} +3 -3
- package/dist/{chunk-ZE6NVENI.js.map → chunk-O3USVVWS.js.map} +1 -1
- package/dist/{chunk-UDS5DZNY.cjs → chunk-O7XVCLXW.cjs} +68 -67
- package/dist/chunk-O7XVCLXW.cjs.map +1 -0
- package/dist/{chunk-KLR77R5A.cjs → chunk-OM6RIOA5.cjs} +13 -13
- package/dist/{chunk-KLR77R5A.cjs.map → chunk-OM6RIOA5.cjs.map} +1 -1
- package/dist/{chunk-LLHMAHG4.cjs → chunk-OMQ2NBOR.cjs} +27 -27
- package/dist/{chunk-LLHMAHG4.cjs.map → chunk-OMQ2NBOR.cjs.map} +1 -1
- package/dist/{chunk-DPNA466P.js → chunk-OYJSYDIH.js} +19 -3
- package/dist/chunk-OYJSYDIH.js.map +1 -0
- package/dist/{chunk-CU3LPYNB.js → chunk-RAWG2FEU.js} +138 -22
- package/dist/chunk-RAWG2FEU.js.map +1 -0
- package/dist/{chunk-M2RPZS7J.cjs → chunk-RTUCOEIO.cjs} +12 -12
- package/dist/{chunk-M2RPZS7J.cjs.map → chunk-RTUCOEIO.cjs.map} +1 -1
- package/dist/{chunk-TAUGGLNQ.js → chunk-RXOAXO3R.js} +3 -3
- package/dist/{chunk-TAUGGLNQ.js.map → chunk-RXOAXO3R.js.map} +1 -1
- package/dist/{chunk-LLE25NRD.cjs → chunk-TRC646QQ.cjs} +7 -7
- package/dist/{chunk-LLE25NRD.cjs.map → chunk-TRC646QQ.cjs.map} +1 -1
- package/dist/chunk-U3YRCZ5L.cjs +12 -0
- package/dist/{chunk-IMQKXL4E.cjs.map → chunk-U3YRCZ5L.cjs.map} +1 -1
- package/dist/{chunk-ZVME6OSV.js → chunk-UJRWOV5B.js} +5 -5
- package/dist/{chunk-ZVME6OSV.js.map → chunk-UJRWOV5B.js.map} +1 -1
- package/dist/{chunk-HAQVISUF.cjs → chunk-UTTW2Q3M.cjs} +133 -133
- package/dist/{chunk-HAQVISUF.cjs.map → chunk-UTTW2Q3M.cjs.map} +1 -1
- package/dist/{chunk-L5ET7FYQ.js → chunk-UZLEQFTV.js} +3 -3
- package/dist/{chunk-L5ET7FYQ.js.map → chunk-UZLEQFTV.js.map} +1 -1
- package/dist/{chunk-K4FB2RMO.cjs → chunk-V2GZBPY2.cjs} +184 -65
- package/dist/chunk-V2GZBPY2.cjs.map +1 -0
- package/dist/{chunk-BUZWMDNL.js → chunk-VC26BUNP.js} +5 -5
- package/dist/{chunk-BUZWMDNL.js.map → chunk-VC26BUNP.js.map} +1 -1
- package/dist/chunk-VGMNGWBR.cjs +12 -0
- package/dist/{chunk-5YBDB7UG.cjs.map → chunk-VGMNGWBR.cjs.map} +1 -1
- package/dist/{chunk-XMEYZYGE.js → chunk-WYQILW5V.js} +8 -8
- package/dist/{chunk-XMEYZYGE.js.map → chunk-WYQILW5V.js.map} +1 -1
- package/dist/{chunk-YX3H63VV.cjs → chunk-X2XOQZT3.cjs} +9 -9
- package/dist/{chunk-YX3H63VV.cjs.map → chunk-X2XOQZT3.cjs.map} +1 -1
- package/dist/{chunk-N2V3HJFV.cjs → chunk-XDMPDUKL.cjs} +9 -9
- package/dist/{chunk-N2V3HJFV.cjs.map → chunk-XDMPDUKL.cjs.map} +1 -1
- package/dist/{chunk-5J4VNCUD.js → chunk-Z3WIL6S3.js} +5 -5
- package/dist/{chunk-5J4VNCUD.js.map → chunk-Z3WIL6S3.js.map} +1 -1
- package/dist/{chunk-MNURF4RF.cjs → chunk-ZBV4LQD2.cjs} +4 -4
- package/dist/{chunk-MNURF4RF.cjs.map → chunk-ZBV4LQD2.cjs.map} +1 -1
- package/dist/{chunk-YGX4PMG6.js → chunk-ZGOUVMVS.js} +5 -5
- package/dist/{chunk-YGX4PMG6.js.map → chunk-ZGOUVMVS.js.map} +1 -1
- package/dist/{chunk-QZYGZVUI.js → chunk-ZIRC2U6G.js} +11 -11
- package/dist/{chunk-QZYGZVUI.js.map → chunk-ZIRC2U6G.js.map} +1 -1
- package/dist/{chunk-6QP4QXBR.js → chunk-ZOHCFYXE.js} +3 -3
- package/dist/{chunk-6QP4QXBR.js.map → chunk-ZOHCFYXE.js.map} +1 -1
- package/dist/{chunk-VWEFXG73.js → chunk-ZP2KPDNN.js} +3 -3
- package/dist/{chunk-VWEFXG73.js.map → chunk-ZP2KPDNN.js.map} +1 -1
- package/dist/{chunk-NT6ILURI.cjs → chunk-ZPCKPLMX.cjs} +8 -8
- package/dist/{chunk-NT6ILURI.cjs.map → chunk-ZPCKPLMX.cjs.map} +1 -1
- package/dist/core/index.cjs +28 -28
- package/dist/core/index.d.cts +5 -6
- package/dist/core/index.d.ts +5 -6
- package/dist/core/index.js +8 -8
- package/dist/{ddl-KnCdF_le.d.cts → ddl-3unqC-kg.d.cts} +3 -3
- package/dist/{ddl-BLEzHw6j.d.ts → ddl-Bc4Dl8fu.d.ts} +3 -3
- package/dist/{define-graph-DQnj3fNH.d.ts → define-graph-Byslw2OO.d.cts} +1 -2
- package/dist/{define-graph-Cv3CFwKm.d.cts → define-graph-DBFnc7u_.d.ts} +1 -2
- 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 +105 -105
- package/dist/graph-merge/index.d.cts +8 -9
- package/dist/graph-merge/index.d.ts +8 -9
- package/dist/graph-merge/index.js +25 -25
- package/dist/{index-BD_3TCgh.d.ts → index-DHXw7QAl.d.cts} +19 -4
- package/dist/{index-BihFPsPu.d.cts → index-DQzVJBHa.d.ts} +19 -4
- package/dist/index.cjs +209 -200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -15
- package/dist/index.d.ts +13 -15
- package/dist/index.js +35 -34
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +13 -13
- package/dist/indexes/index.d.cts +4 -5
- package/dist/indexes/index.d.ts +4 -5
- package/dist/indexes/index.js +6 -6
- package/dist/interchange/index.cjs +40 -40
- package/dist/interchange/index.d.cts +9 -10
- package/dist/interchange/index.d.ts +9 -10
- package/dist/interchange/index.js +14 -14
- package/dist/{manager-DjE6Mhag.d.ts → manager-Dl0-er1G.d.ts} +45 -156
- package/dist/{manager-mqee5MVB.d.cts → manager-U9_zopqr.d.cts} +45 -156
- package/dist/materialize-indexes-BM3u0aXE.d.ts +258 -0
- package/dist/materialize-indexes-DzMCetZe.d.cts +258 -0
- package/dist/{postgres-Bm4DyFQU.d.cts → postgres-C5-WMKFA.d.ts} +1 -1
- package/dist/{postgres-DtaVALOZ.d.ts → postgres-DpJqtbSX.d.cts} +1 -1
- package/dist/profiler/index.d.cts +9 -10
- package/dist/profiler/index.d.ts +9 -10
- package/dist/provenance/index.cjs +39 -39
- package/dist/provenance/index.d.cts +7 -8
- package/dist/provenance/index.d.ts +7 -8
- package/dist/provenance/index.js +9 -9
- package/dist/schema/index.cjs +55 -112
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +57 -58
- package/dist/schema/index.d.ts +57 -58
- package/dist/schema/index.js +15 -92
- package/dist/schema/index.js.map +1 -1
- package/dist/{searchable-BxlJQVFw.d.cts → searchable-B4mUXZT6.d.cts} +2 -2
- package/dist/{searchable-ChJ29MCd.d.ts → searchable-C7jmPNLT.d.ts} +2 -2
- package/dist/{sqlite-m9Izphk_.d.ts → sqlite-Ch5tSYQY.d.ts} +1 -1
- package/dist/{sqlite-DT6tTHOG.d.cts → sqlite-Da7jiYu9.d.cts} +1 -1
- package/dist/{store-view-CagdeyNn.d.ts → store-view-6C2vTWqf.d.ts} +68 -16
- package/dist/{store-view-C-buB8Q8.d.cts → store-view-CNcOG8bQ.d.cts} +68 -16
- package/dist/{temporal-CyFsSPe8.d.ts → temporal-BtrTYTiB.d.ts} +1 -1
- package/dist/{temporal-Dn_JADWY.d.cts → temporal-CMpigMCW.d.cts} +1 -1
- package/dist/{types-CYdXzZef.d.ts → types-D2rU5Taq.d.ts} +1 -2
- package/dist/{types-D8szWDUo.d.ts → types-Dh-EgT-w.d.cts} +569 -2
- package/dist/{types-C5pZeKTl.d.cts → types-Dh-EgT-w.d.ts} +569 -2
- package/dist/{types-CqSfMRW3.d.cts → types-G4sVM-76.d.cts} +1 -2
- package/dist/{where-sQL4u5h-.d.ts → where-B8Y21kig.d.ts} +1 -2
- package/dist/{where-C3-HRgUq.d.cts → where-DbZ9XDOI.d.cts} +1 -2
- package/package.json +1 -1
- package/dist/chunk-5YBDB7UG.cjs +0 -12
- package/dist/chunk-CU3LPYNB.js.map +0 -1
- package/dist/chunk-DPNA466P.js.map +0 -1
- package/dist/chunk-H6I36MGT.cjs.map +0 -1
- package/dist/chunk-IMQKXL4E.cjs +0 -12
- package/dist/chunk-K4FB2RMO.cjs.map +0 -1
- package/dist/chunk-SAFZ6JTI.cjs.map +0 -1
- package/dist/chunk-UDS5DZNY.cjs.map +0 -1
- package/dist/chunk-W66YCXWT.js.map +0 -1
- package/dist/extension-types-BLEVH4SG.d.cts +0 -571
- package/dist/extension-types-BLEVH4SG.d.ts +0 -571
- package/dist/materialize-indexes-D4iei4Kp.d.ts +0 -90
- package/dist/materialize-indexes-ExQ6OrAh.d.cts +0 -90
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkAQR6BHB3_cjs = require('./chunk-AQR6BHB3.cjs');
|
|
4
|
+
var chunkOMQ2NBOR_cjs = require('./chunk-OMQ2NBOR.cjs');
|
|
5
|
+
var chunk6TJ6PKPS_cjs = require('./chunk-6TJ6PKPS.cjs');
|
|
6
6
|
var chunkZDH3DX3C_cjs = require('./chunk-ZDH3DX3C.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkECU53PMN_cjs = require('./chunk-ECU53PMN.cjs');
|
|
8
8
|
var chunkACSVZPK7_cjs = require('./chunk-ACSVZPK7.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunkAO2WPYFZ_cjs = require('./chunk-AO2WPYFZ.cjs');
|
|
10
10
|
var chunkZY4GXIVN_cjs = require('./chunk-ZY4GXIVN.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunkX2XOQZT3_cjs = require('./chunk-X2XOQZT3.cjs');
|
|
12
12
|
var chunk764JHTLT_cjs = require('./chunk-764JHTLT.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkKTBTSHU6_cjs = require('./chunk-KTBTSHU6.cjs');
|
|
14
14
|
var drizzleOrm = require('drizzle-orm');
|
|
15
15
|
|
|
16
16
|
// src/backend/live-node-candidates.ts
|
|
17
17
|
function buildLiveNodeCandidates(nodesTableName, graphId, nodeKind, now) {
|
|
18
|
-
const nodes =
|
|
19
|
-
return
|
|
18
|
+
const nodes = chunkX2XOQZT3_cjs.sql.identifier(nodesTableName);
|
|
19
|
+
return chunkX2XOQZT3_cjs.sql`
|
|
20
20
|
SELECT "id" AS node_id
|
|
21
21
|
FROM ${nodes}
|
|
22
22
|
WHERE "graph_id" = ${graphId}
|
|
@@ -57,10 +57,10 @@ function vectorSlotFromDropIndexParams(params) {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function mapVectorWriteError(error, params) {
|
|
60
|
-
const mismatch =
|
|
60
|
+
const mismatch = chunkAO2WPYFZ_cjs.parseDimensionMismatch(error);
|
|
61
61
|
if (mismatch === void 0) return error;
|
|
62
62
|
const attempted = mismatch.actual ?? "a different number of";
|
|
63
|
-
return new
|
|
63
|
+
return new chunkKTBTSHU6_cjs.EmbeddingDimensionChangedError(
|
|
64
64
|
`Embedding "${params.nodeKind}.${params.fieldPath}" was written with ${attempted} dimensions, but its per-field storage expects ${mismatch.expected}. The field's embedding dimension changed; existing vectors must be recreated and re-embedded.`,
|
|
65
65
|
{
|
|
66
66
|
kind: params.nodeKind,
|
|
@@ -76,7 +76,7 @@ var SQLITE_CONTRIBUTION_MAT_TIMESTAMPS = {
|
|
|
76
76
|
encode: (value) => value
|
|
77
77
|
};
|
|
78
78
|
var POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS = {
|
|
79
|
-
decode:
|
|
79
|
+
decode: chunkAQR6BHB3_cjs.formatPostgresTimestamp,
|
|
80
80
|
encode: (value) => new Date(value)
|
|
81
81
|
};
|
|
82
82
|
function mapContributionMaterializationRow(row, decode) {
|
|
@@ -190,7 +190,7 @@ function gateFulltextMethods(source, assert) {
|
|
|
190
190
|
return gated;
|
|
191
191
|
}
|
|
192
192
|
function gateFulltext(tx, assert) {
|
|
193
|
-
return
|
|
193
|
+
return chunkECU53PMN_cjs.createBackendOverlay(
|
|
194
194
|
tx,
|
|
195
195
|
gateFulltextMethods(tx, assert)
|
|
196
196
|
);
|
|
@@ -237,7 +237,7 @@ function createContributionMaterializer(deps) {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
function runtimeContributions() {
|
|
240
|
-
return
|
|
240
|
+
return chunkOMQ2NBOR_cjs.runtimeStrategyContributions(fulltextStrategy, fulltextTableName);
|
|
241
241
|
}
|
|
242
242
|
async function materializeOne(graphId, contribution, signature, existing, options) {
|
|
243
243
|
const force = options?.force === true;
|
|
@@ -259,13 +259,13 @@ function createContributionMaterializer(deps) {
|
|
|
259
259
|
await deps.recordMarker({
|
|
260
260
|
...identity,
|
|
261
261
|
signature,
|
|
262
|
-
attemptedAt:
|
|
262
|
+
attemptedAt: chunkAQR6BHB3_cjs.nowIso(),
|
|
263
263
|
materializedAt: void 0,
|
|
264
264
|
error: error.message
|
|
265
265
|
});
|
|
266
266
|
throw error;
|
|
267
267
|
}
|
|
268
|
-
const attemptedAt =
|
|
268
|
+
const attemptedAt = chunkAQR6BHB3_cjs.nowIso();
|
|
269
269
|
try {
|
|
270
270
|
for (const statement of contribution.createDdl) {
|
|
271
271
|
await deps.execDdl(statement);
|
|
@@ -301,7 +301,7 @@ function createContributionMaterializer(deps) {
|
|
|
301
301
|
rows: indexMarkerRows(graphId, await deps.getMarkers(graphId))
|
|
302
302
|
};
|
|
303
303
|
} catch (error) {
|
|
304
|
-
if (!
|
|
304
|
+
if (!chunkAO2WPYFZ_cjs.isMissingTableError(error)) throw error;
|
|
305
305
|
return { kind: "missing-table", error };
|
|
306
306
|
}
|
|
307
307
|
}
|
|
@@ -373,7 +373,7 @@ function createContributionMaterializer(deps) {
|
|
|
373
373
|
if (read.kind === "missing-table") {
|
|
374
374
|
const first = pending[0];
|
|
375
375
|
if (first === void 0) return;
|
|
376
|
-
throw new
|
|
376
|
+
throw new chunkKTBTSHU6_cjs.StoreNotInitializedError(graphId, "missing", {
|
|
377
377
|
cause: read.error,
|
|
378
378
|
details: { logicalName: first.contribution.logicalName }
|
|
379
379
|
});
|
|
@@ -382,7 +382,7 @@ function createContributionMaterializer(deps) {
|
|
|
382
382
|
const { contribution, key, signature } = entry;
|
|
383
383
|
const state = evaluateContributionState(read.rows.get(key), signature);
|
|
384
384
|
if (state !== "initialized") {
|
|
385
|
-
throw new
|
|
385
|
+
throw new chunkKTBTSHU6_cjs.StoreNotInitializedError(graphId, state, {
|
|
386
386
|
details: { logicalName: contribution.logicalName }
|
|
387
387
|
});
|
|
388
388
|
}
|
|
@@ -446,7 +446,7 @@ var SQLITE_INDEX_MAT_TIMESTAMPS = {
|
|
|
446
446
|
encode: (value) => value
|
|
447
447
|
};
|
|
448
448
|
var POSTGRES_INDEX_MAT_TIMESTAMPS = {
|
|
449
|
-
decode:
|
|
449
|
+
decode: chunkAQR6BHB3_cjs.formatPostgresTimestamp,
|
|
450
450
|
encode: (value) => new Date(value)
|
|
451
451
|
};
|
|
452
452
|
function mapMaterializationRow(row, decode) {
|
|
@@ -504,7 +504,7 @@ var SQLITE_KIND_REMOVAL_TIMESTAMPS = {
|
|
|
504
504
|
encode: (value) => value
|
|
505
505
|
};
|
|
506
506
|
var POSTGRES_KIND_REMOVAL_TIMESTAMPS = {
|
|
507
|
-
decode:
|
|
507
|
+
decode: chunkAQR6BHB3_cjs.formatPostgresTimestamp,
|
|
508
508
|
encode: (value) => new Date(value)
|
|
509
509
|
};
|
|
510
510
|
function mapKindRemovalRow(row, decode) {
|
|
@@ -671,12 +671,12 @@ function present(value) {
|
|
|
671
671
|
function mapHybridSearchRow(row, toNodeRow) {
|
|
672
672
|
return {
|
|
673
673
|
node: toNodeRow(row),
|
|
674
|
-
fusedScore:
|
|
674
|
+
fusedScore: chunkAQR6BHB3_cjs.coerceNumericScore(row["fused_score"]),
|
|
675
675
|
...present(row["vector_rank"]) ? { vectorRank: Number(row["vector_rank"]) } : {},
|
|
676
|
-
...present(row["vector_score"]) ? { vectorScore:
|
|
676
|
+
...present(row["vector_score"]) ? { vectorScore: chunkAQR6BHB3_cjs.coerceNumericScore(row["vector_score"]) } : {},
|
|
677
677
|
...present(row["fulltext_rank"]) ? { fulltextRank: Number(row["fulltext_rank"]) } : {},
|
|
678
678
|
...present(row["fulltext_score"]) ? {
|
|
679
|
-
fulltextScore:
|
|
679
|
+
fulltextScore: chunkAQR6BHB3_cjs.coerceNumericScore(
|
|
680
680
|
row["fulltext_score"]
|
|
681
681
|
)
|
|
682
682
|
} : {},
|
|
@@ -1082,11 +1082,11 @@ function buildFulltextSearch(tableName, params, strategy, dialect, candidates) {
|
|
|
1082
1082
|
assertValidSearchParams(params);
|
|
1083
1083
|
const mode = resolveMode(params.mode);
|
|
1084
1084
|
const table = quotedTableName(tableName);
|
|
1085
|
-
const matchCondition =
|
|
1085
|
+
const matchCondition = chunk6TJ6PKPS_cjs.toDrizzleSql(
|
|
1086
1086
|
strategy.matchCondition(tableName, params.query, mode, params.language),
|
|
1087
1087
|
dialect
|
|
1088
1088
|
);
|
|
1089
|
-
const rankExpression =
|
|
1089
|
+
const rankExpression = chunk6TJ6PKPS_cjs.toDrizzleSql(
|
|
1090
1090
|
strategy.rankExpression(tableName, params.query, mode, params.language),
|
|
1091
1091
|
dialect
|
|
1092
1092
|
);
|
|
@@ -1099,10 +1099,10 @@ function buildFulltextSearch(tableName, params, strategy, dialect, candidates) {
|
|
|
1099
1099
|
conditions.push(drizzleOrm.sql`${rankExpression} >= ${params.minScore}`);
|
|
1100
1100
|
}
|
|
1101
1101
|
if (candidates !== void 0) {
|
|
1102
|
-
const candidateSql =
|
|
1102
|
+
const candidateSql = chunkX2XOQZT3_cjs.isSqlFragment(candidates) ? chunk6TJ6PKPS_cjs.toDrizzleSql(candidates, dialect) : candidates;
|
|
1103
1103
|
conditions.push(drizzleOrm.sql`"node_id" IN (${candidateSql})`);
|
|
1104
1104
|
}
|
|
1105
|
-
const snippetExpr = params.includeSnippets === true && strategy.supportsSnippets ?
|
|
1105
|
+
const snippetExpr = params.includeSnippets === true && strategy.supportsSnippets ? chunk6TJ6PKPS_cjs.toDrizzleSql(
|
|
1106
1106
|
strategy.snippetExpression(
|
|
1107
1107
|
tableName,
|
|
1108
1108
|
params.query,
|
|
@@ -1587,15 +1587,15 @@ function createCommonOperationStrategy(tables, dialect, fulltextStrategy) {
|
|
|
1587
1587
|
);
|
|
1588
1588
|
const fulltextTable = tables.fulltextTableName;
|
|
1589
1589
|
const fulltextBuilders = {
|
|
1590
|
-
buildUpsertFulltext: (params, timestamp) => fulltextStrategy.buildUpsert(fulltextTable, params, timestamp).map((statement) =>
|
|
1591
|
-
buildDeleteFulltext: (params) => fulltextStrategy.buildDelete(fulltextTable, params).map((statement) =>
|
|
1590
|
+
buildUpsertFulltext: (params, timestamp) => fulltextStrategy.buildUpsert(fulltextTable, params, timestamp).map((statement) => chunk6TJ6PKPS_cjs.toDrizzleSql(statement, dialect)),
|
|
1591
|
+
buildDeleteFulltext: (params) => fulltextStrategy.buildDelete(fulltextTable, params).map((statement) => chunk6TJ6PKPS_cjs.toDrizzleSql(statement, dialect)),
|
|
1592
1592
|
buildDeleteFulltextByNode: (graphId, nodeKind, nodeId) => fulltextStrategy.buildDelete(fulltextTable, {
|
|
1593
1593
|
graphId,
|
|
1594
1594
|
nodeKind,
|
|
1595
1595
|
nodeId
|
|
1596
|
-
}).map((statement) =>
|
|
1597
|
-
buildUpsertFulltextBatch: (params, timestamp) => fulltextStrategy.buildBatchUpsert(fulltextTable, params, timestamp).map((statement) =>
|
|
1598
|
-
buildDeleteFulltextBatch: (params) => fulltextStrategy.buildBatchDelete(fulltextTable, params).map((statement) =>
|
|
1596
|
+
}).map((statement) => chunk6TJ6PKPS_cjs.toDrizzleSql(statement, dialect)),
|
|
1597
|
+
buildUpsertFulltextBatch: (params, timestamp) => fulltextStrategy.buildBatchUpsert(fulltextTable, params, timestamp).map((statement) => chunk6TJ6PKPS_cjs.toDrizzleSql(statement, dialect)),
|
|
1598
|
+
buildDeleteFulltextBatch: (params) => fulltextStrategy.buildBatchDelete(fulltextTable, params).map((statement) => chunk6TJ6PKPS_cjs.toDrizzleSql(statement, dialect)),
|
|
1599
1599
|
buildFulltextSearch: (params) => buildFulltextSearch(
|
|
1600
1600
|
fulltextTable,
|
|
1601
1601
|
params,
|
|
@@ -1607,7 +1607,7 @@ function createCommonOperationStrategy(tables, dialect, fulltextStrategy) {
|
|
|
1607
1607
|
tables.nodes,
|
|
1608
1608
|
params.graphId,
|
|
1609
1609
|
params.nodeKind,
|
|
1610
|
-
|
|
1610
|
+
chunkAQR6BHB3_cjs.nowIso()
|
|
1611
1611
|
)
|
|
1612
1612
|
),
|
|
1613
1613
|
buildHybridSearch: (params, vectorSql, vectorScoreDescending) => {
|
|
@@ -1615,7 +1615,7 @@ function createCommonOperationStrategy(tables, dialect, fulltextStrategy) {
|
|
|
1615
1615
|
tables.nodes,
|
|
1616
1616
|
params.graphId,
|
|
1617
1617
|
params.nodeKind,
|
|
1618
|
-
|
|
1618
|
+
chunkAQR6BHB3_cjs.nowIso()
|
|
1619
1619
|
);
|
|
1620
1620
|
const fulltextSql = buildFulltextSearch(
|
|
1621
1621
|
fulltextTable,
|
|
@@ -1636,7 +1636,7 @@ function createCommonOperationStrategy(tables, dialect, fulltextStrategy) {
|
|
|
1636
1636
|
hybridCandidatesRef()
|
|
1637
1637
|
);
|
|
1638
1638
|
return buildHybridSearchStatement({
|
|
1639
|
-
candidatesSql:
|
|
1639
|
+
candidatesSql: chunkX2XOQZT3_cjs.isSqlFragment(candidates) ? chunk6TJ6PKPS_cjs.toDrizzleSql(candidates, dialect) : candidates,
|
|
1640
1640
|
vectorSql,
|
|
1641
1641
|
vectorScoreDescending,
|
|
1642
1642
|
fulltextSql,
|
|
@@ -1730,7 +1730,7 @@ var DRIZZLE_DIALECT_LABELS = {
|
|
|
1730
1730
|
function assertAdoptedDialect(externalTx, brand, backend) {
|
|
1731
1731
|
if (drizzleOrm.is(externalTx, brand)) return;
|
|
1732
1732
|
const label = DRIZZLE_DIALECT_LABELS[backend];
|
|
1733
|
-
throw new
|
|
1733
|
+
throw new chunkKTBTSHU6_cjs.ConfigurationError(
|
|
1734
1734
|
`adoptTransaction received a handle that is not a ${label} Drizzle transaction. Pass the \`tx\` from a ${label} \`db.transaction(...)\` opened on this backend's connection.`,
|
|
1735
1735
|
{ backend, capability: "adoptTransaction" }
|
|
1736
1736
|
);
|
|
@@ -1738,7 +1738,7 @@ function assertAdoptedDialect(externalTx, brand, backend) {
|
|
|
1738
1738
|
function verifyExpectedActiveVersion(graphId, expected, actualActiveVersion) {
|
|
1739
1739
|
const expectedVersion = expected.kind === "active" ? expected.version : 0;
|
|
1740
1740
|
if (actualActiveVersion !== expectedVersion) {
|
|
1741
|
-
throw new
|
|
1741
|
+
throw new chunkKTBTSHU6_cjs.StaleVersionError({
|
|
1742
1742
|
graphId,
|
|
1743
1743
|
expected: expectedVersion,
|
|
1744
1744
|
actual: actualActiveVersion
|
|
@@ -1747,7 +1747,7 @@ function verifyExpectedActiveVersion(graphId, expected, actualActiveVersion) {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
function createCommonOperationBackend(options) {
|
|
1749
1749
|
const { batchConfig, execution, operationStrategy, rowMappers } = options;
|
|
1750
|
-
const nowIso2 = options.nowIso ??
|
|
1750
|
+
const nowIso2 = options.nowIso ?? chunkAQR6BHB3_cjs.nowIso;
|
|
1751
1751
|
const requiredClearTableExists = createCachedTableExistence(
|
|
1752
1752
|
(tableName) => execution.execGet(
|
|
1753
1753
|
operationStrategy.buildTableExists(tableName)
|
|
@@ -1778,7 +1778,7 @@ function createCommonOperationBackend(options) {
|
|
|
1778
1778
|
const query = operationStrategy.buildInsertNode(params, timestamp);
|
|
1779
1779
|
const row = await execution.execGet(query);
|
|
1780
1780
|
if (!row)
|
|
1781
|
-
throw new
|
|
1781
|
+
throw new chunkKTBTSHU6_cjs.DatabaseOperationError(
|
|
1782
1782
|
"Insert node failed: no row returned",
|
|
1783
1783
|
{ operation: "insert", entity: "node" }
|
|
1784
1784
|
);
|
|
@@ -1838,7 +1838,7 @@ function createCommonOperationBackend(options) {
|
|
|
1838
1838
|
const query = operationStrategy.buildUpdateNode(params, timestamp);
|
|
1839
1839
|
const row = await execution.execGet(query);
|
|
1840
1840
|
if (!row)
|
|
1841
|
-
throw new
|
|
1841
|
+
throw new chunkKTBTSHU6_cjs.DatabaseOperationError(
|
|
1842
1842
|
"Update node failed: no row returned",
|
|
1843
1843
|
{ operation: "update", entity: "node" }
|
|
1844
1844
|
);
|
|
@@ -1886,7 +1886,7 @@ function createCommonOperationBackend(options) {
|
|
|
1886
1886
|
const query = operationStrategy.buildInsertEdge(params, timestamp);
|
|
1887
1887
|
const row = await execution.execGet(query);
|
|
1888
1888
|
if (!row)
|
|
1889
|
-
throw new
|
|
1889
|
+
throw new chunkKTBTSHU6_cjs.DatabaseOperationError(
|
|
1890
1890
|
"Insert edge failed: no row returned",
|
|
1891
1891
|
{ operation: "insert", entity: "edge" }
|
|
1892
1892
|
);
|
|
@@ -1946,7 +1946,7 @@ function createCommonOperationBackend(options) {
|
|
|
1946
1946
|
const query = operationStrategy.buildUpdateEdge(params, timestamp);
|
|
1947
1947
|
const row = await execution.execGet(query);
|
|
1948
1948
|
if (!row)
|
|
1949
|
-
throw new
|
|
1949
|
+
throw new chunkKTBTSHU6_cjs.DatabaseOperationError(
|
|
1950
1950
|
"Update edge failed: no row returned",
|
|
1951
1951
|
{ operation: "update", entity: "edge" }
|
|
1952
1952
|
);
|
|
@@ -2028,7 +2028,7 @@ function createCommonOperationBackend(options) {
|
|
|
2028
2028
|
const query = operationStrategy.buildInsertUnique(params);
|
|
2029
2029
|
const result = await execution.execGet(query);
|
|
2030
2030
|
if (result && result.node_id !== params.nodeId) {
|
|
2031
|
-
throw new
|
|
2031
|
+
throw new chunkKTBTSHU6_cjs.UniquenessError({
|
|
2032
2032
|
constraintName: params.constraintName,
|
|
2033
2033
|
kind: params.nodeKind,
|
|
2034
2034
|
existingId: result.node_id,
|
|
@@ -2048,7 +2048,7 @@ function createCommonOperationBackend(options) {
|
|
|
2048
2048
|
continue;
|
|
2049
2049
|
}
|
|
2050
2050
|
if (existing.nodeId !== entry.nodeId) {
|
|
2051
|
-
throw new
|
|
2051
|
+
throw new chunkKTBTSHU6_cjs.UniquenessError({
|
|
2052
2052
|
constraintName: entry.constraintName,
|
|
2053
2053
|
kind: entry.nodeKind,
|
|
2054
2054
|
existingId: existing.nodeId,
|
|
@@ -2073,7 +2073,7 @@ function createCommonOperationBackend(options) {
|
|
|
2073
2073
|
for (const entry of chunk2) {
|
|
2074
2074
|
const owner = ownerByTarget.get(targetKey(entry));
|
|
2075
2075
|
if (owner !== void 0 && owner !== entry.nodeId) {
|
|
2076
|
-
throw new
|
|
2076
|
+
throw new chunkKTBTSHU6_cjs.UniquenessError({
|
|
2077
2077
|
constraintName: entry.constraintName,
|
|
2078
2078
|
kind: entry.nodeKind,
|
|
2079
2079
|
existingId: owner,
|
|
@@ -2128,7 +2128,7 @@ function createCommonOperationBackend(options) {
|
|
|
2128
2128
|
if (existingRaw !== void 0) {
|
|
2129
2129
|
const existing = rowMappers.toSchemaVersionRow(existingRaw);
|
|
2130
2130
|
if (existing.schema_hash !== params.schemaHash) {
|
|
2131
|
-
throw new
|
|
2131
|
+
throw new chunkKTBTSHU6_cjs.SchemaContentConflictError({
|
|
2132
2132
|
graphId: params.graphId,
|
|
2133
2133
|
version: params.version,
|
|
2134
2134
|
existingHash: existing.schema_hash,
|
|
@@ -2176,7 +2176,7 @@ function createCommonOperationBackend(options) {
|
|
|
2176
2176
|
);
|
|
2177
2177
|
const insertedRaw = await execution.execGet(insertQuery);
|
|
2178
2178
|
if (!insertedRaw) {
|
|
2179
|
-
throw new
|
|
2179
|
+
throw new chunkKTBTSHU6_cjs.DatabaseOperationError(
|
|
2180
2180
|
"Insert schema failed: no row returned",
|
|
2181
2181
|
{ operation: "insert", entity: "schema" }
|
|
2182
2182
|
);
|
|
@@ -2194,12 +2194,13 @@ function createCommonOperationBackend(options) {
|
|
|
2194
2194
|
operationStrategy.buildGetSchemaVersion(params.graphId, params.version)
|
|
2195
2195
|
);
|
|
2196
2196
|
if (!targetRaw) {
|
|
2197
|
-
throw new
|
|
2197
|
+
throw new chunkKTBTSHU6_cjs.MigrationError(
|
|
2198
2198
|
`Cannot activate version ${params.version}: version does not exist for graph "${params.graphId}".`,
|
|
2199
2199
|
{
|
|
2200
2200
|
graphId: params.graphId,
|
|
2201
2201
|
fromVersion: actualActiveVersion,
|
|
2202
|
-
toVersion: params.version
|
|
2202
|
+
toVersion: params.version,
|
|
2203
|
+
reason: "version-not-found"
|
|
2203
2204
|
}
|
|
2204
2205
|
);
|
|
2205
2206
|
}
|
|
@@ -2226,7 +2227,7 @@ function quoteSqlIdentifier(identifier) {
|
|
|
2226
2227
|
}
|
|
2227
2228
|
function requireRawExecution(backend) {
|
|
2228
2229
|
if (backend.executeRaw === void 0) {
|
|
2229
|
-
throw new
|
|
2230
|
+
throw new chunkKTBTSHU6_cjs.TrustedImportError(
|
|
2230
2231
|
"This backend cannot execute the raw statements required by trusted import.",
|
|
2231
2232
|
"backend_unsupported"
|
|
2232
2233
|
);
|
|
@@ -2235,7 +2236,7 @@ function requireRawExecution(backend) {
|
|
|
2235
2236
|
}
|
|
2236
2237
|
function requireStatementExecution(backend) {
|
|
2237
2238
|
if (backend.executeStatement === void 0) {
|
|
2238
|
-
throw new
|
|
2239
|
+
throw new chunkKTBTSHU6_cjs.TrustedImportError(
|
|
2239
2240
|
"This backend cannot execute the index lifecycle required by trusted import.",
|
|
2240
2241
|
"backend_unsupported"
|
|
2241
2242
|
);
|
|
@@ -2257,7 +2258,7 @@ async function assertTrustedImportDatabaseEmpty(backend, tableNames) {
|
|
|
2257
2258
|
[]
|
|
2258
2259
|
);
|
|
2259
2260
|
if (!rowIndicatesExistingData(rows[0])) return;
|
|
2260
|
-
throw new
|
|
2261
|
+
throw new chunkKTBTSHU6_cjs.TrustedImportError(
|
|
2261
2262
|
"Trusted import requires globally empty TypeGraph node and edge tables.",
|
|
2262
2263
|
"database_not_empty",
|
|
2263
2264
|
{ tables: [tableNames.nodes, tableNames.edges] },
|
|
@@ -2269,8 +2270,8 @@ async function assertTrustedImportDatabaseEmpty(backend, tableNames) {
|
|
|
2269
2270
|
async function lockPostgresTrustedImportTables(backend, tableNames) {
|
|
2270
2271
|
const executeStatement = requireStatementExecution(backend);
|
|
2271
2272
|
await executeStatement(
|
|
2272
|
-
|
|
2273
|
-
|
|
2273
|
+
chunkX2XOQZT3_cjs.asCompiledStatementSql(
|
|
2274
|
+
chunkX2XOQZT3_cjs.sql.raw(
|
|
2274
2275
|
`LOCK TABLE ${quoteSqlIdentifier(tableNames.nodes)}, ${quoteSqlIdentifier(tableNames.edges)} IN ACCESS EXCLUSIVE MODE`
|
|
2275
2276
|
)
|
|
2276
2277
|
)
|
|
@@ -2290,8 +2291,8 @@ async function suspendSqliteSecondaryIndexes(backend, tableNames) {
|
|
|
2290
2291
|
);
|
|
2291
2292
|
for (const definition of definitions) {
|
|
2292
2293
|
await executeStatement(
|
|
2293
|
-
|
|
2294
|
-
|
|
2294
|
+
chunkX2XOQZT3_cjs.asCompiledStatementSql(
|
|
2295
|
+
chunkX2XOQZT3_cjs.sql.raw(`DROP INDEX ${quoteSqlIdentifier(definition.index_name)}`)
|
|
2295
2296
|
)
|
|
2296
2297
|
);
|
|
2297
2298
|
}
|
|
@@ -2321,8 +2322,8 @@ async function suspendPostgresSecondaryIndexes(backend, tableNames) {
|
|
|
2321
2322
|
);
|
|
2322
2323
|
for (const definition of definitions) {
|
|
2323
2324
|
await executeStatement(
|
|
2324
|
-
|
|
2325
|
-
|
|
2325
|
+
chunkX2XOQZT3_cjs.asCompiledStatementSql(
|
|
2326
|
+
chunkX2XOQZT3_cjs.sql.raw(`DROP INDEX ${quoteSqlIdentifier(definition.index_name)}`)
|
|
2326
2327
|
)
|
|
2327
2328
|
);
|
|
2328
2329
|
}
|
|
@@ -2332,20 +2333,20 @@ async function restoreSecondaryIndexes(backend, definitions) {
|
|
|
2332
2333
|
const executeStatement = requireStatementExecution(backend);
|
|
2333
2334
|
for (const definition of definitions) {
|
|
2334
2335
|
await executeStatement(
|
|
2335
|
-
|
|
2336
|
+
chunkX2XOQZT3_cjs.asCompiledStatementSql(chunkX2XOQZT3_cjs.sql.raw(definition.index_definition))
|
|
2336
2337
|
);
|
|
2337
2338
|
}
|
|
2338
2339
|
}
|
|
2339
2340
|
async function analyzeImportedTables(backend, tableNames) {
|
|
2340
2341
|
const executeStatement = requireStatementExecution(backend);
|
|
2341
2342
|
await executeStatement(
|
|
2342
|
-
|
|
2343
|
-
|
|
2343
|
+
chunkX2XOQZT3_cjs.asCompiledStatementSql(
|
|
2344
|
+
chunkX2XOQZT3_cjs.sql.raw(`ANALYZE ${quoteSqlIdentifier(tableNames.nodes)}`)
|
|
2344
2345
|
)
|
|
2345
2346
|
);
|
|
2346
2347
|
await executeStatement(
|
|
2347
|
-
|
|
2348
|
-
|
|
2348
|
+
chunkX2XOQZT3_cjs.asCompiledStatementSql(
|
|
2349
|
+
chunkX2XOQZT3_cjs.sql.raw(`ANALYZE ${quoteSqlIdentifier(tableNames.edges)}`)
|
|
2349
2350
|
)
|
|
2350
2351
|
);
|
|
2351
2352
|
}
|
|
@@ -2360,7 +2361,7 @@ function postgresArray(values) {
|
|
|
2360
2361
|
function createSqliteTrustedImportSession(executionAdapter, tableNames) {
|
|
2361
2362
|
const executePreparedRunBatch = executionAdapter.executePreparedRunBatch;
|
|
2362
2363
|
if (executePreparedRunBatch === void 0) {
|
|
2363
|
-
throw new
|
|
2364
|
+
throw new chunkKTBTSHU6_cjs.TrustedImportError(
|
|
2364
2365
|
"Trusted import requires a synchronous SQLite driver with prepared statement support.",
|
|
2365
2366
|
"backend_unsupported"
|
|
2366
2367
|
);
|
|
@@ -2527,5 +2528,5 @@ exports.suspendSqliteSecondaryIndexes = suspendSqliteSecondaryIndexes;
|
|
|
2527
2528
|
exports.vectorSlotFromCreateIndexParams = vectorSlotFromCreateIndexParams;
|
|
2528
2529
|
exports.vectorSlotFromDropIndexParams = vectorSlotFromDropIndexParams;
|
|
2529
2530
|
exports.vectorSlotFromParams = vectorSlotFromParams;
|
|
2530
|
-
//# sourceMappingURL=chunk-
|
|
2531
|
-
//# sourceMappingURL=chunk-
|
|
2531
|
+
//# sourceMappingURL=chunk-O7XVCLXW.cjs.map
|
|
2532
|
+
//# sourceMappingURL=chunk-O7XVCLXW.cjs.map
|