@nicia-ai/typegraph 0.37.1 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -10
- package/dist/backend/drizzle/indexes.cjs +32 -0
- package/dist/backend/drizzle/indexes.cjs.map +1 -0
- package/dist/backend/drizzle/indexes.d.cts +43 -0
- package/dist/backend/drizzle/indexes.d.ts +43 -0
- package/dist/backend/drizzle/indexes.js +11 -0
- package/dist/backend/drizzle/indexes.js.map +1 -0
- package/dist/backend/index.cjs +161 -0
- package/dist/backend/index.cjs.map +1 -0
- package/dist/backend/index.d.cts +3 -0
- package/dist/backend/index.d.ts +3 -0
- package/dist/backend/index.js +8 -0
- package/dist/backend/index.js.map +1 -0
- package/dist/backend/postgres/index.cjs +32 -28
- package/dist/backend/postgres/index.d.cts +13 -12
- package/dist/backend/postgres/index.d.ts +13 -12
- package/dist/backend/postgres/index.js +19 -15
- package/dist/backend/postgres/pglite-store.cjs +67 -0
- package/dist/backend/postgres/pglite-store.cjs.map +1 -0
- package/dist/backend/postgres/pglite-store.d.cts +38 -0
- package/dist/backend/postgres/pglite-store.d.ts +38 -0
- package/dist/backend/postgres/pglite-store.js +65 -0
- package/dist/backend/postgres/pglite-store.js.map +1 -0
- package/dist/backend/postgres/pglite.cjs +25 -50
- package/dist/backend/postgres/pglite.cjs.map +1 -1
- package/dist/backend/postgres/pglite.d.cts +10 -9
- package/dist/backend/postgres/pglite.d.ts +10 -9
- package/dist/backend/postgres/pglite.js +20 -52
- package/dist/backend/postgres/pglite.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +29 -25
- package/dist/backend/sqlite/index.d.cts +11 -11
- package/dist/backend/sqlite/index.d.ts +11 -11
- package/dist/backend/sqlite/index.js +17 -13
- package/dist/backend/sqlite/libsql.cjs +23 -19
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +9 -10
- package/dist/backend/sqlite/libsql.d.ts +9 -10
- package/dist/backend/sqlite/libsql.js +19 -15
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +72 -0
- package/dist/backend/sqlite/local-store.cjs.map +1 -0
- package/dist/backend/sqlite/local-store.d.cts +42 -0
- package/dist/backend/sqlite/local-store.d.ts +42 -0
- package/dist/backend/sqlite/local-store.js +67 -0
- package/dist/backend/sqlite/local-store.js.map +1 -0
- package/dist/backend/sqlite/local.cjs +28 -183
- package/dist/backend/sqlite/local.cjs.map +1 -1
- package/dist/backend/sqlite/local.d.cts +8 -81
- package/dist/backend/sqlite/local.d.ts +8 -81
- package/dist/backend/sqlite/local.js +20 -180
- package/dist/backend/sqlite/local.js.map +1 -1
- package/dist/chunk-2EBMPJBO.js +16 -0
- package/dist/chunk-2EBMPJBO.js.map +1 -0
- package/dist/chunk-35S6P5ZU.js +27 -0
- package/dist/chunk-35S6P5ZU.js.map +1 -0
- package/dist/chunk-3LKL3S6X.js +50 -0
- package/dist/chunk-3LKL3S6X.js.map +1 -0
- package/dist/{chunk-RCVLFTCT.js → chunk-3SK4SVTW.js} +13 -12
- package/dist/chunk-3SK4SVTW.js.map +1 -0
- package/dist/chunk-3YFDFOYB.cjs +192 -0
- package/dist/chunk-3YFDFOYB.cjs.map +1 -0
- package/dist/{chunk-WOJMKB3N.cjs → chunk-5ELKD2FQ.cjs} +1677 -308
- package/dist/chunk-5ELKD2FQ.cjs.map +1 -0
- package/dist/{chunk-5AVRFNP4.cjs → chunk-6SRLCSAV.cjs} +3012 -1513
- package/dist/chunk-6SRLCSAV.cjs.map +1 -0
- package/dist/chunk-6XDBRDZE.js +312 -0
- package/dist/chunk-6XDBRDZE.js.map +1 -0
- package/dist/chunk-764JHTLT.cjs +15 -0
- package/dist/chunk-764JHTLT.cjs.map +1 -0
- package/dist/chunk-76HE7DJP.js +68 -0
- package/dist/chunk-76HE7DJP.js.map +1 -0
- package/dist/{chunk-VGDDG3XJ.cjs → chunk-7M3NACL3.cjs} +12 -12
- package/dist/{chunk-VGDDG3XJ.cjs.map → chunk-7M3NACL3.cjs.map} +1 -1
- package/dist/chunk-AOL64O4Z.js +165 -0
- package/dist/chunk-AOL64O4Z.js.map +1 -0
- package/dist/{chunk-27SSDCEP.cjs → chunk-B63IFHXR.cjs} +53 -74
- package/dist/chunk-B63IFHXR.cjs.map +1 -0
- package/dist/{chunk-3XXGYU62.cjs → chunk-BKAKAVRW.cjs} +56 -53
- package/dist/chunk-BKAKAVRW.cjs.map +1 -0
- package/dist/{chunk-YTSN73ND.js → chunk-BQITNFQJ.js} +3 -3
- package/dist/{chunk-YTSN73ND.js.map → chunk-BQITNFQJ.js.map} +1 -1
- package/dist/{chunk-GA4TT3DH.js → chunk-CBK2IVI2.js} +1999 -503
- package/dist/chunk-CBK2IVI2.js.map +1 -0
- package/dist/{chunk-6EEO3OVU.cjs → chunk-CWX77JB4.cjs} +22 -59
- package/dist/chunk-CWX77JB4.cjs.map +1 -0
- package/dist/{chunk-UGZUAYAR.js → chunk-D7PG5D5K.js} +4 -3
- package/dist/chunk-D7PG5D5K.js.map +1 -0
- package/dist/chunk-DDCIXXOO.js +9 -0
- package/dist/chunk-DDCIXXOO.js.map +1 -0
- package/dist/chunk-DDCYVIVV.cjs +44 -0
- package/dist/chunk-DDCYVIVV.cjs.map +1 -0
- package/dist/{chunk-UV3WP5WZ.js → chunk-DOKUXLFH.js} +61 -29
- package/dist/chunk-DOKUXLFH.js.map +1 -0
- package/dist/{chunk-XPCZADMT.cjs → chunk-DOVMTPKE.cjs} +89 -27
- package/dist/chunk-DOVMTPKE.cjs.map +1 -0
- package/dist/{chunk-5PNMDJ7J.js → chunk-DPNA466P.js} +14 -9
- package/dist/chunk-DPNA466P.js.map +1 -0
- package/dist/{chunk-BYPOGQWK.js → chunk-DRACN6XG.js} +6 -4
- package/dist/chunk-DRACN6XG.js.map +1 -0
- package/dist/{chunk-TGOMW4MB.cjs → chunk-E2Q7SP2K.cjs} +110 -109
- package/dist/chunk-E2Q7SP2K.cjs.map +1 -0
- package/dist/chunk-E6TXEISH.cjs +175 -0
- package/dist/chunk-E6TXEISH.cjs.map +1 -0
- package/dist/{chunk-3C2RYI6L.cjs → chunk-EOJFGECD.cjs} +11 -11
- package/dist/chunk-EOJFGECD.cjs.map +1 -0
- package/dist/{chunk-XWV4JT34.js → chunk-ERZ4QPQX.js} +27 -22
- package/dist/chunk-ERZ4QPQX.js.map +1 -0
- package/dist/{chunk-DFVLCOP6.js → chunk-EZH7FNUS.js} +3 -3
- package/dist/{chunk-DFVLCOP6.js.map → chunk-EZH7FNUS.js.map} +1 -1
- package/dist/{chunk-WWFHO375.cjs → chunk-FJMPR3OH.cjs} +4 -3
- package/dist/chunk-FJMPR3OH.cjs.map +1 -0
- package/dist/chunk-FMNUSGZ4.cjs +12 -0
- package/dist/chunk-FMNUSGZ4.cjs.map +1 -0
- package/dist/{chunk-EXU3RASM.js → chunk-G3CSQLLT.js} +20 -474
- package/dist/chunk-G3CSQLLT.js.map +1 -0
- package/dist/{chunk-EJYMTO3K.cjs → chunk-GKQU44SQ.cjs} +150 -118
- package/dist/chunk-GKQU44SQ.cjs.map +1 -0
- package/dist/chunk-GNPGGLAE.cjs +212 -0
- package/dist/chunk-GNPGGLAE.cjs.map +1 -0
- package/dist/{chunk-QARBLBXT.cjs → chunk-GUUWKPTK.cjs} +7 -7
- package/dist/{chunk-QARBLBXT.cjs.map → chunk-GUUWKPTK.cjs.map} +1 -1
- package/dist/chunk-GYA4JRP5.js +31 -0
- package/dist/chunk-GYA4JRP5.js.map +1 -0
- package/dist/{chunk-3GH67G4Z.cjs → chunk-HP6LWBLB.cjs} +16 -42
- package/dist/chunk-HP6LWBLB.cjs.map +1 -0
- package/dist/{chunk-NXQFATMF.cjs → chunk-HTQOBY75.cjs} +153 -123
- package/dist/chunk-HTQOBY75.cjs.map +1 -0
- package/dist/chunk-I6FX7AAG.js +39 -0
- package/dist/chunk-I6FX7AAG.js.map +1 -0
- package/dist/{chunk-VKGKDOKR.js → chunk-IFDXG2YJ.js} +1539 -206
- package/dist/chunk-IFDXG2YJ.js.map +1 -0
- package/dist/{chunk-IXGYRP2P.js → chunk-IFRPHG7O.js} +79 -49
- package/dist/chunk-IFRPHG7O.js.map +1 -0
- package/dist/chunk-IMQKXL4E.cjs +12 -0
- package/dist/{chunk-QSXTWU4U.cjs.map → chunk-IMQKXL4E.cjs.map} +1 -1
- package/dist/chunk-J6IJARLG.js +94 -0
- package/dist/chunk-J6IJARLG.js.map +1 -0
- package/dist/{chunk-3DS7Z4T4.cjs → chunk-JD2YC62H.cjs} +44 -43
- package/dist/chunk-JD2YC62H.cjs.map +1 -0
- package/dist/{chunk-W63OVYY4.js → chunk-K34OPSJK.js} +3 -3
- package/dist/{chunk-W63OVYY4.js.map → chunk-K34OPSJK.js.map} +1 -1
- package/dist/chunk-KAFXPB2L.js +184 -0
- package/dist/chunk-KAFXPB2L.js.map +1 -0
- package/dist/chunk-KIZSHRUI.cjs +49 -0
- package/dist/chunk-KIZSHRUI.cjs.map +1 -0
- package/dist/{chunk-K3Q3LJY3.js → chunk-KXFUQNF2.js} +201 -100
- package/dist/chunk-KXFUQNF2.js.map +1 -0
- package/dist/{chunk-UXLSNRYL.js → chunk-MTNEGGM2.js} +4 -4
- package/dist/chunk-MTNEGGM2.js.map +1 -0
- package/dist/{chunk-IP3CGGPA.cjs → chunk-N2V3HJFV.cjs} +92 -185
- package/dist/chunk-N2V3HJFV.cjs.map +1 -0
- package/dist/chunk-NAUA4PW5.cjs +28 -0
- package/dist/chunk-NAUA4PW5.cjs.map +1 -0
- package/dist/chunk-NMQ6C6TS.cjs +61 -0
- package/dist/chunk-NMQ6C6TS.cjs.map +1 -0
- package/dist/{chunk-2N6EOBTH.cjs → chunk-NPWACFQJ.cjs} +58 -53
- package/dist/chunk-NPWACFQJ.cjs.map +1 -0
- package/dist/{chunk-TKT2XHED.js → chunk-NQBYTLPW.js} +13 -12
- package/dist/chunk-NQBYTLPW.js.map +1 -0
- package/dist/{chunk-5KEQ74YU.cjs → chunk-NT6ILURI.cjs} +9 -86
- package/dist/chunk-NT6ILURI.cjs.map +1 -0
- package/dist/{chunk-3SLPDKHQ.js → chunk-PH4IJ3V5.js} +5 -77
- package/dist/chunk-PH4IJ3V5.js.map +1 -0
- package/dist/chunk-PWXGB77L.cjs +56 -0
- package/dist/chunk-PWXGB77L.cjs.map +1 -0
- package/dist/chunk-PZHC5GCD.js +193 -0
- package/dist/chunk-PZHC5GCD.js.map +1 -0
- package/dist/chunk-QMQLUA66.js +12 -0
- package/dist/chunk-QMQLUA66.js.map +1 -0
- package/dist/{chunk-5WWVZMVX.js → chunk-QZ7A6HBM.js} +2 -2
- package/dist/{chunk-5WWVZMVX.js.map → chunk-QZ7A6HBM.js.map} +1 -1
- package/dist/chunk-RW24SAHI.cjs +74 -0
- package/dist/chunk-RW24SAHI.cjs.map +1 -0
- package/dist/{chunk-BVRDGYXQ.cjs → chunk-SAFZ6JTI.cjs} +14 -9
- package/dist/chunk-SAFZ6JTI.cjs.map +1 -0
- package/dist/{chunk-L7HQ2OSI.js → chunk-SCTZRFW5.js} +87 -166
- package/dist/chunk-SCTZRFW5.js.map +1 -0
- package/dist/{chunk-5KPNWT6X.js → chunk-SDHV2MWU.js} +24 -45
- package/dist/chunk-SDHV2MWU.js.map +1 -0
- package/dist/{chunk-3RWZPJKV.js → chunk-SU7VQOJ3.js} +21 -78
- package/dist/chunk-SU7VQOJ3.js.map +1 -0
- package/dist/chunk-SVJ5GEXW.cjs +45 -0
- package/dist/chunk-SVJ5GEXW.cjs.map +1 -0
- package/dist/chunk-SVUKGWSN.cjs +102 -0
- package/dist/chunk-SVUKGWSN.cjs.map +1 -0
- package/dist/chunk-TAUGGLNQ.js +59 -0
- package/dist/chunk-TAUGGLNQ.js.map +1 -0
- package/dist/{chunk-A42GCBGX.cjs → chunk-TRF4EBJT.cjs} +6 -4
- package/dist/chunk-TRF4EBJT.cjs.map +1 -0
- package/dist/{chunk-KQJ54OG5.js → chunk-U4JDJKPD.js} +19 -56
- package/dist/chunk-U4JDJKPD.js.map +1 -0
- package/dist/chunk-UH2USOMG.cjs +627 -0
- package/dist/chunk-UH2USOMG.cjs.map +1 -0
- package/dist/{chunk-XGPUQ56G.js → chunk-UUIBACKJ.js} +15 -38
- package/dist/chunk-UUIBACKJ.js.map +1 -0
- package/dist/{chunk-5VQM6VWP.cjs → chunk-UWG5GX6E.cjs} +2 -2
- package/dist/{chunk-5VQM6VWP.cjs.map → chunk-UWG5GX6E.cjs.map} +1 -1
- package/dist/{chunk-K5UBVGJN.js → chunk-VDYA2HMS.js} +6 -6
- package/dist/{chunk-K5UBVGJN.js.map → chunk-VDYA2HMS.js.map} +1 -1
- package/dist/{chunk-NUIG3BCV.cjs → chunk-VXAFOF6Z.cjs} +93 -155
- package/dist/chunk-VXAFOF6Z.cjs.map +1 -0
- package/dist/chunk-X4PVHAZ6.cjs +83 -0
- package/dist/chunk-X4PVHAZ6.cjs.map +1 -0
- package/dist/{chunk-UYQMBBWJ.js → chunk-X6CNEA32.js} +23 -20
- package/dist/chunk-X6CNEA32.js.map +1 -0
- package/dist/chunk-X6RDQ5NB.cjs +335 -0
- package/dist/chunk-X6RDQ5NB.cjs.map +1 -0
- package/dist/{chunk-DEFQM7JU.cjs → chunk-XRU7V7FF.cjs} +7 -7
- package/dist/{chunk-DEFQM7JU.cjs.map → chunk-XRU7V7FF.cjs.map} +1 -1
- package/dist/{chunk-TPF25IG6.js → chunk-XZA3Y4YH.js} +3 -3
- package/dist/{chunk-TPF25IG6.js.map → chunk-XZA3Y4YH.js.map} +1 -1
- package/dist/{chunk-DIQ3AV5W.cjs → chunk-Y6UA55YS.cjs} +324 -224
- package/dist/chunk-Y6UA55YS.cjs.map +1 -0
- package/dist/chunk-Y7M44XEK.js +462 -0
- package/dist/chunk-Y7M44XEK.js.map +1 -0
- package/dist/{chunk-RRSNR3TP.js → chunk-YIRLBUNN.js} +3 -3
- package/dist/{chunk-RRSNR3TP.js.map → chunk-YIRLBUNN.js.map} +1 -1
- package/dist/chunk-YPUNPG2T.js +47 -0
- package/dist/chunk-YPUNPG2T.js.map +1 -0
- package/dist/{chunk-QERAIDRJ.js → chunk-Z2PPIVOO.js} +82 -22
- package/dist/chunk-Z2PPIVOO.js.map +1 -0
- package/dist/chunk-Z5QHVL5U.cjs +12 -0
- package/dist/chunk-Z5QHVL5U.cjs.map +1 -0
- package/dist/chunk-ZDH3DX3C.cjs +30 -0
- package/dist/chunk-ZDH3DX3C.cjs.map +1 -0
- package/dist/chunk-ZE6NVENI.js +77 -0
- package/dist/chunk-ZE6NVENI.js.map +1 -0
- package/dist/chunk-ZKZAIX42.cjs +479 -0
- package/dist/chunk-ZKZAIX42.cjs.map +1 -0
- package/dist/{chunk-TEDRJXOG.cjs → chunk-ZY4GXIVN.cjs} +5 -5
- package/dist/{chunk-TEDRJXOG.cjs.map → chunk-ZY4GXIVN.cjs.map} +1 -1
- package/dist/core/index.cjs +117 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +225 -0
- package/dist/core/index.d.ts +225 -0
- package/dist/core/index.js +12 -0
- package/dist/core/index.js.map +1 -0
- package/dist/{ddl-CS0KUVwB.d.ts → ddl-Dx3Z0_WC.d.ts} +3 -3
- package/dist/{ddl-BD-ZfKeX.d.cts → ddl-J6sDyABg.d.cts} +3 -3
- package/dist/define-graph-CzEvA_8F.d.cts +174 -0
- package/dist/define-graph-DRo9xpYN.d.ts +174 -0
- package/dist/{extension-types-BM2ACfYO.d.cts → extension-types-BLEVH4SG.d.cts} +1 -1
- package/dist/{extension-types-BM2ACfYO.d.ts → extension-types-BLEVH4SG.d.ts} +1 -1
- package/dist/graph-extension/index.cjs +21 -19
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +6 -4
- package/dist/graph-merge/index.cjs +267 -218
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +17 -93
- package/dist/graph-merge/index.d.ts +17 -93
- package/dist/graph-merge/index.js +143 -94
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-BeacbPoe.d.ts → index-BD_3TCgh.d.ts} +6 -4
- package/dist/{index-BPM59vsg.d.cts → index-BihFPsPu.d.cts} +6 -4
- package/dist/{fulltext-strategy-C27vXaeB.d.cts → index-Bq7vSPHy.d.ts} +3195 -2646
- package/dist/{fulltext-strategy-DebsMrqg.d.ts → index-CrFL_ENI.d.cts} +3195 -2646
- package/dist/index.cjs +326 -315
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -240
- package/dist/index.d.ts +59 -240
- package/dist/index.js +46 -79
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +26 -38
- package/dist/indexes/index.d.cts +6 -41
- package/dist/indexes/index.d.ts +6 -41
- package/dist/indexes/index.js +14 -10
- package/dist/interchange/index.cjs +48 -39
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +7 -8
- package/dist/interchange/index.d.ts +7 -8
- package/dist/interchange/index.js +23 -14
- package/dist/interchange/index.js.map +1 -1
- package/dist/local-options-CZ1BnIoF.d.cts +29 -0
- package/dist/local-options-CZ1BnIoF.d.ts +29 -0
- package/dist/{manager-D00_NXvT.d.ts → manager-CASfhmzV.d.ts} +4 -173
- package/dist/{manager-nU1vTJLy.d.cts → manager-nCEJiYBb.d.cts} +4 -173
- package/dist/{materialize-indexes-zK2J_flP.d.ts → materialize-indexes-D4iei4Kp.d.ts} +1 -1
- package/dist/{materialize-indexes-CuR3gAZb.d.cts → materialize-indexes-ExQ6OrAh.d.cts} +1 -1
- package/dist/{postgres-IaBA4RgE.d.ts → postgres-Cl1ZAN1G.d.ts} +1 -1
- package/dist/{postgres-YrYmPlaU.d.cts → postgres-DMgIKQU-.d.cts} +1 -1
- package/dist/postgres-execution-fKW0qRiN.d.cts +14 -0
- package/dist/postgres-execution-fKW0qRiN.d.ts +14 -0
- package/dist/profiler/index.cjs +9 -8
- package/dist/profiler/index.cjs.map +1 -1
- package/dist/profiler/index.d.cts +9 -17
- package/dist/profiler/index.d.ts +9 -17
- package/dist/profiler/index.js +8 -7
- package/dist/profiler/index.js.map +1 -1
- package/dist/provenance/index.cjs +61 -55
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -8
- package/dist/provenance/index.d.ts +7 -8
- package/dist/provenance/index.js +34 -28
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +46 -37
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +8 -10
- package/dist/schema/index.d.ts +8 -10
- package/dist/schema/index.js +22 -13
- package/dist/schema/index.js.map +1 -1
- package/dist/{sqlite-BUOHPx7p.d.ts → sqlite-BDkW39aa.d.cts} +1 -1
- package/dist/{sqlite-Pp8O19WE.d.cts → sqlite-CYfhvESj.d.ts} +1 -1
- package/dist/sqlite-execution-DwbE2a9y.d.cts +32 -0
- package/dist/sqlite-execution-DwbE2a9y.d.ts +32 -0
- package/dist/{store-view-X96Rd00T.d.cts → store-view-BJd6Vwpt.d.cts} +427 -1404
- package/dist/{store-view-ANL6mTph.d.ts → store-view-CLIhwMMX.d.ts} +427 -1404
- package/dist/temporal-BC_NQV5Y.d.cts +281 -0
- package/dist/temporal-DqtOEo_B.d.ts +281 -0
- package/dist/{types-r-Zyq2Hz.d.cts → types-COq3-vMC.d.cts} +2 -2
- package/dist/{types-wsvuBgPK.d.ts → types-CUevi_D1.d.ts} +2 -2
- package/dist/{where-CJOpJj3a.d.ts → where-BdE_cYtx.d.ts} +5 -5
- package/dist/{where-K3uBP33l.d.cts → where-C92TXCzT.d.cts} +5 -5
- package/package.json +37 -6
- package/dist/chunk-27SSDCEP.cjs.map +0 -1
- package/dist/chunk-2N6EOBTH.cjs.map +0 -1
- package/dist/chunk-3C2RYI6L.cjs.map +0 -1
- package/dist/chunk-3DS7Z4T4.cjs.map +0 -1
- package/dist/chunk-3GH67G4Z.cjs.map +0 -1
- package/dist/chunk-3RWZPJKV.js.map +0 -1
- package/dist/chunk-3SLPDKHQ.js.map +0 -1
- package/dist/chunk-3XXGYU62.cjs.map +0 -1
- package/dist/chunk-44TA22QT.js +0 -1478
- package/dist/chunk-44TA22QT.js.map +0 -1
- package/dist/chunk-5AVRFNP4.cjs.map +0 -1
- package/dist/chunk-5KEQ74YU.cjs.map +0 -1
- package/dist/chunk-5KPNWT6X.js.map +0 -1
- package/dist/chunk-5PNMDJ7J.js.map +0 -1
- package/dist/chunk-6EEO3OVU.cjs.map +0 -1
- package/dist/chunk-7YSP4V4R.cjs +0 -69
- package/dist/chunk-7YSP4V4R.cjs.map +0 -1
- package/dist/chunk-A42GCBGX.cjs.map +0 -1
- package/dist/chunk-BVRDGYXQ.cjs.map +0 -1
- package/dist/chunk-BYPOGQWK.js.map +0 -1
- package/dist/chunk-CUHM5CWJ.cjs +0 -12
- package/dist/chunk-CUHM5CWJ.cjs.map +0 -1
- package/dist/chunk-DIQ3AV5W.cjs.map +0 -1
- package/dist/chunk-EJYMTO3K.cjs.map +0 -1
- package/dist/chunk-EXU3RASM.js.map +0 -1
- package/dist/chunk-GA4TT3DH.js.map +0 -1
- package/dist/chunk-IP3CGGPA.cjs.map +0 -1
- package/dist/chunk-IPSVVTWT.cjs +0 -1540
- package/dist/chunk-IPSVVTWT.cjs.map +0 -1
- package/dist/chunk-IXGYRP2P.js.map +0 -1
- package/dist/chunk-K3Q3LJY3.js.map +0 -1
- package/dist/chunk-KQJ54OG5.js.map +0 -1
- package/dist/chunk-L7HQ2OSI.js.map +0 -1
- package/dist/chunk-M6VES7V6.js +0 -239
- package/dist/chunk-M6VES7V6.js.map +0 -1
- package/dist/chunk-NUIG3BCV.cjs.map +0 -1
- package/dist/chunk-NXQFATMF.cjs.map +0 -1
- package/dist/chunk-OHMP6N2J.js +0 -47
- package/dist/chunk-OHMP6N2J.js.map +0 -1
- package/dist/chunk-QERAIDRJ.js.map +0 -1
- package/dist/chunk-QSXTWU4U.cjs +0 -12
- package/dist/chunk-RCVLFTCT.js.map +0 -1
- package/dist/chunk-TGOMW4MB.cjs.map +0 -1
- package/dist/chunk-TKT2XHED.js.map +0 -1
- package/dist/chunk-UGZUAYAR.js.map +0 -1
- package/dist/chunk-UV3WP5WZ.js.map +0 -1
- package/dist/chunk-UXLSNRYL.js.map +0 -1
- package/dist/chunk-UYQMBBWJ.js.map +0 -1
- package/dist/chunk-VKGKDOKR.js.map +0 -1
- package/dist/chunk-VL2V6PEN.cjs +0 -261
- package/dist/chunk-VL2V6PEN.cjs.map +0 -1
- package/dist/chunk-WOJMKB3N.cjs.map +0 -1
- package/dist/chunk-WWFHO375.cjs.map +0 -1
- package/dist/chunk-XGPUQ56G.js.map +0 -1
- package/dist/chunk-XGU7DZDA.cjs +0 -1095
- package/dist/chunk-XGU7DZDA.cjs.map +0 -1
- package/dist/chunk-XPCZADMT.cjs.map +0 -1
- package/dist/chunk-XWV4JT34.js.map +0 -1
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { tables, createPostgresOperationStrategy, createCachedTableExistence, createContributionMaterializer, gateFulltextMethods, lockPostgresTrustedImportTables, assertTrustedImportDatabaseEmpty, suspendPostgresSecondaryIndexes, createPostgresTrustedImportSession, restoreSecondaryIndexes, analyzeImportedTables, EMBEDDING_UPSERT_PARAM_COUNT, createCommonOperationBackend, vectorSlotFromParams,
|
|
2
|
-
import { pgvectorStrategy, assertPgvectorEfSearch } from './chunk-
|
|
3
|
-
import { createNodeRowMapper, POSTGRES_ROW_MAPPER_CONFIG, createEdgeRowMapper, createUniqueRowMapper, createSchemaVersionRowMapper,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { tables, createPostgresOperationStrategy, createCachedTableExistence, createContributionMaterializer, gateFulltextMethods, lockPostgresTrustedImportTables, assertTrustedImportDatabaseEmpty, suspendPostgresSecondaryIndexes, createPostgresTrustedImportSession, restoreSecondaryIndexes, analyzeImportedTables, EMBEDDING_UPSERT_PARAM_COUNT, createCommonOperationBackend, vectorSlotFromParams, buildLiveNodeCandidates, mapVectorWriteError, mapHybridSearchRow, generatePgCreateTableSQL, mapContributionMaterializationRow, POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS, buildContributionInsertValues, buildContributionOnConflictSet, assertAdoptedDialect, buildKindRemovalInsertValues, POSTGRES_KIND_REMOVAL_TIMESTAMPS, buildKindRemovalOnConflictSet, mapKindRemovalRow, buildMaterializationInsertValues, POSTGRES_INDEX_MAT_TIMESTAMPS, buildMaterializationOnConflictSet, mapMaterializationRow, generatePostgresDDL, vectorSlotFromDropIndexParams, vectorSlotFromCreateIndexParams, gateFulltext, getOrCreateLru } from './chunk-KXFUQNF2.js';
|
|
2
|
+
import { pgvectorStrategy, assertPgvectorEfSearch } from './chunk-SDHV2MWU.js';
|
|
3
|
+
import { createNodeRowMapper, POSTGRES_ROW_MAPPER_CONFIG, createEdgeRowMapper, createUniqueRowMapper, createSchemaVersionRowMapper, nowIso, coerceNumericScore } from './chunk-AOL64O4Z.js';
|
|
4
|
+
import { toDrizzleSql, compileQueryWithDialect } from './chunk-Z2PPIVOO.js';
|
|
5
|
+
import { chunk } from './chunk-35S6P5ZU.js';
|
|
6
|
+
import { normalizeGraphAnalyticsCapabilities, createBackendOverlay, POSTGRES_MAX_BIND_PARAMETERS, INTERNAL_TEMPORARY_WRITES, POSTGRES_CAPABILITIES } from './chunk-PZHC5GCD.js';
|
|
7
|
+
import { isMissingTableError, isInsufficientResourcesError } from './chunk-UUIBACKJ.js';
|
|
8
|
+
import { tsvectorStrategy, assertVectorSearchLimit, buildFulltextCapabilities, buildVectorCapabilities } from './chunk-Y7M44XEK.js';
|
|
9
|
+
import { sql, isSqlFragment, shouldForceCustomPlan, annIndexScanTypes } from './chunk-6XDBRDZE.js';
|
|
10
|
+
import { requireDefined } from './chunk-QMQLUA66.js';
|
|
11
|
+
import { ConfigurationError, CompilerInvariantError, TransactionClosedError } from './chunk-DPNA466P.js';
|
|
12
|
+
import { getTableName, sql as sql$1, eq, and, isNull, inArray } from 'drizzle-orm';
|
|
13
|
+
import { PgTransaction } from 'drizzle-orm/pg-core';
|
|
10
14
|
|
|
11
15
|
// src/backend/drizzle/execution/postgres-execution.ts
|
|
12
16
|
function hasFunctionProperty(value, property) {
|
|
@@ -95,15 +99,15 @@ function wrapNodePgClientUnnamed(client) {
|
|
|
95
99
|
queryUnnamed
|
|
96
100
|
};
|
|
97
101
|
}
|
|
98
|
-
function adaptPostgresJsClient(
|
|
102
|
+
function adaptPostgresJsClient(sql3) {
|
|
99
103
|
async function query(sqlText, params) {
|
|
100
|
-
const rows = await
|
|
104
|
+
const rows = await sql3.unsafe(sqlText, params);
|
|
101
105
|
return { rows };
|
|
102
106
|
}
|
|
103
107
|
return {
|
|
104
108
|
query,
|
|
105
109
|
async queryUnnamed(sqlText, params) {
|
|
106
|
-
const rows = await
|
|
110
|
+
const rows = await sql3.unsafe(sqlText, params, { prepare: false });
|
|
107
111
|
return { rows };
|
|
108
112
|
}
|
|
109
113
|
};
|
|
@@ -157,7 +161,10 @@ function createPostgresExecutionAdapter(db, options = {}) {
|
|
|
157
161
|
return {
|
|
158
162
|
compile,
|
|
159
163
|
async execute(query) {
|
|
160
|
-
return executeDrizzleQuery(
|
|
164
|
+
return executeDrizzleQuery(
|
|
165
|
+
db,
|
|
166
|
+
isSqlFragment(query) ? toDrizzleSql(query, "postgres") : query
|
|
167
|
+
);
|
|
161
168
|
}
|
|
162
169
|
};
|
|
163
170
|
}
|
|
@@ -173,7 +180,7 @@ function createPostgresExecutionAdapter(db, options = {}) {
|
|
|
173
180
|
compile,
|
|
174
181
|
async execute(query) {
|
|
175
182
|
const compiled = compile(query);
|
|
176
|
-
if (shouldForceCustomPlan(query)) {
|
|
183
|
+
if (isSqlFragment(query) && shouldForceCustomPlan(query)) {
|
|
177
184
|
const result = await pgQueryClient.queryUnnamed(
|
|
178
185
|
compiled.sql,
|
|
179
186
|
compiled.params
|
|
@@ -333,7 +340,12 @@ function createPostgresBackend(db, options = {}) {
|
|
|
333
340
|
tableNames.edges,
|
|
334
341
|
getTableName(tables2.uniques),
|
|
335
342
|
tableNames.fulltext
|
|
336
|
-
].map(
|
|
343
|
+
].map(
|
|
344
|
+
(name) => toDrizzleSql(
|
|
345
|
+
sql`ANALYZE (SKIP_LOCKED) ${sql.identifier(name)}`,
|
|
346
|
+
"postgres"
|
|
347
|
+
)
|
|
348
|
+
);
|
|
337
349
|
const recordedAnalyzeTables = [
|
|
338
350
|
tableNames.recordedNodes,
|
|
339
351
|
tableNames.recordedEdges,
|
|
@@ -354,7 +366,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
354
366
|
);
|
|
355
367
|
const matTable = tables2.contributionMaterializations;
|
|
356
368
|
async function ensureContributionMaterializationsTableImpl() {
|
|
357
|
-
await db.execute(sql.raw(generatePgCreateTableSQL(matTable)));
|
|
369
|
+
await db.execute(sql$1.raw(generatePgCreateTableSQL(matTable)));
|
|
358
370
|
}
|
|
359
371
|
async function getContributionMaterializationRow(identity) {
|
|
360
372
|
const rows = await db.select().from(matTable).where(
|
|
@@ -416,7 +428,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
416
428
|
fulltextTableName: tables2.fulltextTableName,
|
|
417
429
|
vectorStrategy,
|
|
418
430
|
execDdl: async (statement) => {
|
|
419
|
-
await db.execute(sql.raw(statement));
|
|
431
|
+
await db.execute(sql$1.raw(statement));
|
|
420
432
|
},
|
|
421
433
|
ensureMarkerTable: ensureContributionMaterializationsTableImpl,
|
|
422
434
|
getMarkers: getContributionMaterializationRows,
|
|
@@ -447,7 +459,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
447
459
|
);
|
|
448
460
|
}
|
|
449
461
|
return db.transaction(async (tx) => {
|
|
450
|
-
await tx.execute(sql`SELECT pg_advisory_xact_lock(hashtext(${graphId}))`);
|
|
462
|
+
await tx.execute(sql$1`SELECT pg_advisory_xact_lock(hashtext(${graphId}))`);
|
|
451
463
|
const { backend: txBackend, drainAndClose } = createTransactionBackend({
|
|
452
464
|
db: tx,
|
|
453
465
|
adapterOptions,
|
|
@@ -490,7 +502,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
490
502
|
...operations,
|
|
491
503
|
...capabilities.transactions && executionAdapter.executeCompiled !== void 0 ? {
|
|
492
504
|
async trustedImport(fn) {
|
|
493
|
-
return backend.
|
|
505
|
+
return backend.transactionWithNative(async (tx, rawSql) => {
|
|
494
506
|
const trustedExecutionAdapter = createPostgresExecutionAdapter(
|
|
495
507
|
rawSql,
|
|
496
508
|
{ ...adapterOptions, useTransactionClient: true }
|
|
@@ -525,12 +537,12 @@ function createPostgresBackend(db, options = {}) {
|
|
|
525
537
|
async bootstrapTables() {
|
|
526
538
|
const statements = generatePostgresDDL(tables2, fulltextStrategy);
|
|
527
539
|
for (const statement of statements) {
|
|
528
|
-
await db.execute(sql.raw(statement));
|
|
540
|
+
await db.execute(sql$1.raw(statement));
|
|
529
541
|
}
|
|
530
542
|
},
|
|
531
543
|
async ensureRevisionOriginsTable() {
|
|
532
544
|
await db.execute(
|
|
533
|
-
sql.raw(generatePgCreateTableSQL(tables2.revisionOrigins))
|
|
545
|
+
sql$1.raw(generatePgCreateTableSQL(tables2.revisionOrigins))
|
|
534
546
|
);
|
|
535
547
|
},
|
|
536
548
|
// Every fulltext-touching method asserts the durable marker instead
|
|
@@ -543,27 +555,27 @@ function createPostgresBackend(db, options = {}) {
|
|
|
543
555
|
contributionMaterializer.assertInitialized
|
|
544
556
|
),
|
|
545
557
|
async executeDdl(ddl) {
|
|
546
|
-
await db.execute(sql.raw(ddl));
|
|
558
|
+
await db.execute(sql$1.raw(ddl));
|
|
547
559
|
},
|
|
548
560
|
async ensureIndexMaterializationsTable() {
|
|
549
561
|
await db.execute(
|
|
550
|
-
sql.raw(generatePgCreateTableSQL(tables2.indexMaterializations))
|
|
562
|
+
sql$1.raw(generatePgCreateTableSQL(tables2.indexMaterializations))
|
|
551
563
|
);
|
|
552
564
|
const tableName = getTableName(tables2.indexMaterializations);
|
|
553
565
|
await db.execute(
|
|
554
|
-
sql.raw(
|
|
566
|
+
sql$1.raw(
|
|
555
567
|
`ALTER TABLE "${tableName}" ADD COLUMN IF NOT EXISTS "building_since" timestamptz;`
|
|
556
568
|
)
|
|
557
569
|
);
|
|
558
570
|
await db.execute(
|
|
559
|
-
sql.raw(
|
|
571
|
+
sql$1.raw(
|
|
560
572
|
`ALTER TABLE "${tableName}" ADD COLUMN IF NOT EXISTS "claim_token" text;`
|
|
561
573
|
)
|
|
562
574
|
);
|
|
563
575
|
},
|
|
564
576
|
async claimIndexMaterialization(params) {
|
|
565
577
|
const t = tables2.indexMaterializations;
|
|
566
|
-
const rows = await db.execute(sql`
|
|
578
|
+
const rows = await db.execute(sql$1`
|
|
567
579
|
INSERT INTO ${t} (
|
|
568
580
|
"index_name", "graph_id", "entity", "kind", "signature",
|
|
569
581
|
"schema_version", "last_attempted_at", "building_since",
|
|
@@ -587,7 +599,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
587
599
|
},
|
|
588
600
|
async releaseIndexMaterializationClaim(params) {
|
|
589
601
|
const t = tables2.indexMaterializations;
|
|
590
|
-
await db.execute(sql`
|
|
602
|
+
await db.execute(sql$1`
|
|
591
603
|
UPDATE ${t}
|
|
592
604
|
SET "building_since" = NULL, "claim_token" = NULL
|
|
593
605
|
WHERE "index_name" = ${params.indexName}
|
|
@@ -634,7 +646,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
634
646
|
await contributionMaterializer.assertInitialized(graphId);
|
|
635
647
|
},
|
|
636
648
|
async ensureKindRemovalsTable() {
|
|
637
|
-
await db.execute(sql.raw(generatePgCreateTableSQL(tables2.kindRemovals)));
|
|
649
|
+
await db.execute(sql$1.raw(generatePgCreateTableSQL(tables2.kindRemovals)));
|
|
638
650
|
},
|
|
639
651
|
async getPendingKindRemovals(graphId) {
|
|
640
652
|
const t = tables2.kindRemovals;
|
|
@@ -664,7 +676,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
664
676
|
},
|
|
665
677
|
async ensureReconciliationMarkersTable() {
|
|
666
678
|
await db.execute(
|
|
667
|
-
sql.raw(generatePgCreateTableSQL(tables2.reconciliationMarkers))
|
|
679
|
+
sql$1.raw(generatePgCreateTableSQL(tables2.reconciliationMarkers))
|
|
668
680
|
);
|
|
669
681
|
},
|
|
670
682
|
async ensureRuntimeContributions(graphId) {
|
|
@@ -724,7 +736,10 @@ function createPostgresBackend(db, options = {}) {
|
|
|
724
736
|
const presentRecordedTables = tablePresence.filter((entry) => entry.exists).map((entry) => entry.tableName);
|
|
725
737
|
for (const tableName of presentRecordedTables) {
|
|
726
738
|
await db.execute(
|
|
727
|
-
|
|
739
|
+
toDrizzleSql(
|
|
740
|
+
sql`ANALYZE (SKIP_LOCKED) ${sql.identifier(tableName)}`,
|
|
741
|
+
"postgres"
|
|
742
|
+
)
|
|
728
743
|
);
|
|
729
744
|
}
|
|
730
745
|
},
|
|
@@ -741,6 +756,9 @@ function createPostgresBackend(db, options = {}) {
|
|
|
741
756
|
);
|
|
742
757
|
},
|
|
743
758
|
async transaction(fn, options2) {
|
|
759
|
+
return backend.transactionWithNative((tx) => fn(tx), options2);
|
|
760
|
+
},
|
|
761
|
+
async transactionWithNative(fn, options2) {
|
|
744
762
|
const temporaryWrites = options2?.temporaryWrites === INTERNAL_TEMPORARY_WRITES;
|
|
745
763
|
if (temporaryWrites && options2.accessMode !== "read_only") {
|
|
746
764
|
throw new ConfigurationError(
|
|
@@ -753,7 +771,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
753
771
|
isolationLevel: options2.isolationLevel.replace("_", " ")
|
|
754
772
|
},
|
|
755
773
|
...options2.accessMode === void 0 && !temporaryWrites ? {} : {
|
|
756
|
-
accessMode: temporaryWrites ? "read write" : options2.accessMode.replace("_", " ")
|
|
774
|
+
accessMode: temporaryWrites ? "read write" : requireDefined(options2.accessMode).replace("_", " ")
|
|
757
775
|
}
|
|
758
776
|
} : void 0;
|
|
759
777
|
return db.transaction(async (tx) => {
|
|
@@ -776,7 +794,11 @@ function createPostgresBackend(db, options = {}) {
|
|
|
776
794
|
}
|
|
777
795
|
);
|
|
778
796
|
}
|
|
779
|
-
assertAdoptedDialect(
|
|
797
|
+
assertAdoptedDialect(
|
|
798
|
+
externalTx,
|
|
799
|
+
PgTransaction,
|
|
800
|
+
"postgres"
|
|
801
|
+
);
|
|
780
802
|
return bindTransactionBackend(externalTx).backend;
|
|
781
803
|
},
|
|
782
804
|
async close() {
|
|
@@ -802,7 +824,7 @@ function createIterativeScanProbe() {
|
|
|
802
824
|
probe ??= (async () => {
|
|
803
825
|
try {
|
|
804
826
|
const [row] = await execAll(
|
|
805
|
-
sql`SELECT extversion AS v FROM pg_extension WHERE extname = 'vector'`
|
|
827
|
+
sql$1`SELECT extversion AS v FROM pg_extension WHERE extname = 'vector'`
|
|
806
828
|
);
|
|
807
829
|
if (typeof row?.v !== "string") return false;
|
|
808
830
|
const [major = 0, minor = 0] = row.v.split(".").map((part) => Number.parseInt(part, 10));
|
|
@@ -888,19 +910,19 @@ function createPostgresOperationBackend(options) {
|
|
|
888
910
|
const snapshots = [];
|
|
889
911
|
for (const override of overrides) {
|
|
890
912
|
const [setting] = await connection.execute(
|
|
891
|
-
sql`SELECT current_setting(${override.name}) AS v`
|
|
913
|
+
sql$1`SELECT current_setting(${override.name}) AS v`
|
|
892
914
|
);
|
|
893
915
|
if (setting !== void 0) {
|
|
894
916
|
snapshots.push({ name: override.name, value: setting.v });
|
|
895
917
|
}
|
|
896
918
|
await connection.execute(
|
|
897
|
-
sql`SELECT set_config(${override.name}, ${override.value}, true)`
|
|
919
|
+
sql$1`SELECT set_config(${override.name}, ${override.value}, true)`
|
|
898
920
|
);
|
|
899
921
|
}
|
|
900
922
|
const rows = await connection.execute(query);
|
|
901
923
|
for (const snapshot of snapshots) {
|
|
902
924
|
await connection.execute(
|
|
903
|
-
sql`SELECT set_config(${snapshot.name}, ${snapshot.value}, true)`
|
|
925
|
+
sql$1`SELECT set_config(${snapshot.name}, ${snapshot.value}, true)`
|
|
904
926
|
);
|
|
905
927
|
}
|
|
906
928
|
return rows;
|
|
@@ -917,7 +939,7 @@ function createPostgresOperationBackend(options) {
|
|
|
917
939
|
const txAdapter = createPostgresExecutionAdapter(tx, adapterOptions);
|
|
918
940
|
for (const override of overrides) {
|
|
919
941
|
await txAdapter.execute(
|
|
920
|
-
sql`SELECT set_config(${override.name}, ${override.value}, true)`
|
|
942
|
+
sql$1`SELECT set_config(${override.name}, ${override.value}, true)`
|
|
921
943
|
);
|
|
922
944
|
}
|
|
923
945
|
return txAdapter.execute(query);
|
|
@@ -1035,9 +1057,11 @@ function createPostgresOperationBackend(options) {
|
|
|
1035
1057
|
params,
|
|
1036
1058
|
// Store-compiled candidates (predicates + subclass + currency)
|
|
1037
1059
|
// take precedence; the live-node default covers direct backend use.
|
|
1038
|
-
params.candidates ??
|
|
1060
|
+
params.candidates ?? buildLiveNodeCandidates(
|
|
1061
|
+
tableNames.nodes,
|
|
1039
1062
|
params.graphId,
|
|
1040
|
-
params.nodeKind
|
|
1063
|
+
params.nodeKind,
|
|
1064
|
+
nowIso()
|
|
1041
1065
|
)
|
|
1042
1066
|
);
|
|
1043
1067
|
const gucOverrides = await vectorSearchGucOverrides(params);
|
|
@@ -1068,9 +1092,11 @@ function createPostgresOperationBackend(options) {
|
|
|
1068
1092
|
metric: params.vector.metric,
|
|
1069
1093
|
indexType: params.vector.indexType
|
|
1070
1094
|
});
|
|
1071
|
-
const candidates = params.candidates ??
|
|
1095
|
+
const candidates = params.candidates ?? buildLiveNodeCandidates(
|
|
1096
|
+
tableNames.nodes,
|
|
1072
1097
|
params.graphId,
|
|
1073
|
-
params.nodeKind
|
|
1098
|
+
params.nodeKind,
|
|
1099
|
+
nowIso()
|
|
1074
1100
|
);
|
|
1075
1101
|
const vectorParams = {
|
|
1076
1102
|
graphId: params.graphId,
|
|
@@ -1086,11 +1112,11 @@ function createPostgresOperationBackend(options) {
|
|
|
1086
1112
|
const vectorSql = vectorStrategy.buildSearch(
|
|
1087
1113
|
slot,
|
|
1088
1114
|
vectorParams,
|
|
1089
|
-
|
|
1115
|
+
sql.raw("SELECT node_id FROM tg_hybrid_cand")
|
|
1090
1116
|
);
|
|
1091
1117
|
const statement = operationStrategy.buildHybridSearch(
|
|
1092
1118
|
{ ...params, candidates },
|
|
1093
|
-
vectorSql,
|
|
1119
|
+
toDrizzleSql(vectorSql, "postgres"),
|
|
1094
1120
|
params.vector.metric === "cosine"
|
|
1095
1121
|
);
|
|
1096
1122
|
const gucOverrides = await vectorSearchGucOverrides({
|
|
@@ -1136,18 +1162,22 @@ function createPostgresOperationBackend(options) {
|
|
|
1136
1162
|
if (dropStatement !== void 0) {
|
|
1137
1163
|
await execRun(dropStatement);
|
|
1138
1164
|
}
|
|
1139
|
-
const table =
|
|
1165
|
+
const table = sql.identifier(
|
|
1140
1166
|
vectorStrategy.tableName(
|
|
1141
1167
|
slot.graphId,
|
|
1142
1168
|
slot.nodeKind,
|
|
1143
1169
|
slot.fieldPath
|
|
1144
1170
|
)
|
|
1145
1171
|
);
|
|
1146
|
-
await execRun(
|
|
1172
|
+
await execRun(
|
|
1173
|
+
sql`ALTER TABLE ${table} SET (parallel_workers = 0)`
|
|
1174
|
+
);
|
|
1147
1175
|
try {
|
|
1148
1176
|
await execRun(indexStatement);
|
|
1149
1177
|
} finally {
|
|
1150
|
-
await execRun(
|
|
1178
|
+
await execRun(
|
|
1179
|
+
sql`ALTER TABLE ${table} RESET (parallel_workers)`
|
|
1180
|
+
);
|
|
1151
1181
|
}
|
|
1152
1182
|
}
|
|
1153
1183
|
}
|
|
@@ -1223,7 +1253,7 @@ function createPostgresOperationBackend(options) {
|
|
|
1223
1253
|
},
|
|
1224
1254
|
// === Query Execution ===
|
|
1225
1255
|
async execute(query) {
|
|
1226
|
-
const annTypes = annIndexScanTypes(query);
|
|
1256
|
+
const annTypes = isSqlFragment(query) ? annIndexScanTypes(query) : void 0;
|
|
1227
1257
|
if (annTypes !== void 0 && vectorStrategy !== void 0) {
|
|
1228
1258
|
const overrides = [];
|
|
1229
1259
|
for (const indexType of annTypes) {
|
|
@@ -1262,5 +1292,5 @@ function createTransactionBackend(options) {
|
|
|
1262
1292
|
}
|
|
1263
1293
|
|
|
1264
1294
|
export { createPostgresBackend };
|
|
1265
|
-
//# sourceMappingURL=chunk-
|
|
1266
|
-
//# sourceMappingURL=chunk-
|
|
1295
|
+
//# sourceMappingURL=chunk-IFRPHG7O.js.map
|
|
1296
|
+
//# sourceMappingURL=chunk-IFRPHG7O.js.map
|