@nicia-ai/typegraph 0.45.0 → 0.46.1
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 +11 -11
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +7 -7
- package/dist/backend/index.cjs +53 -54
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +13 -14
- package/dist/backend/postgres/index.cjs +29 -30
- package/dist/backend/postgres/index.d.cts +7 -7
- package/dist/backend/postgres/index.d.ts +7 -7
- package/dist/backend/postgres/index.js +16 -17
- package/dist/backend/postgres/pglite-store.cjs +48 -42
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +15 -9
- package/dist/backend/postgres/pglite-store.d.ts +15 -9
- package/dist/backend/postgres/pglite-store.js +44 -38
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +18 -19
- package/dist/backend/postgres/pglite.d.cts +4 -4
- package/dist/backend/postgres/pglite.d.ts +4 -4
- package/dist/backend/postgres/pglite.js +17 -18
- package/dist/backend/sqlite/index.cjs +26 -27
- package/dist/backend/sqlite/index.d.cts +6 -6
- package/dist/backend/sqlite/index.d.ts +6 -6
- package/dist/backend/sqlite/index.js +14 -15
- package/dist/backend/sqlite/libsql.cjs +21 -22
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +15 -8
- package/dist/backend/sqlite/libsql.d.ts +15 -8
- package/dist/backend/sqlite/libsql.js +17 -18
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +49 -43
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- package/dist/backend/sqlite/local-store.d.cts +15 -10
- package/dist/backend/sqlite/local-store.d.ts +15 -10
- package/dist/backend/sqlite/local-store.js +45 -39
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +19 -20
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +17 -18
- package/dist/{chunk-S3ZRKJHY.js → chunk-2LG2XB2M.js} +3 -3
- package/dist/{chunk-S3ZRKJHY.js.map → chunk-2LG2XB2M.js.map} +1 -1
- package/dist/{chunk-7PF2L3H6.cjs → chunk-2NA5DYLO.cjs} +4 -4
- package/dist/{chunk-7PF2L3H6.cjs.map → chunk-2NA5DYLO.cjs.map} +1 -1
- package/dist/chunk-2Z2Z3ZD6.js +58 -0
- package/dist/chunk-2Z2Z3ZD6.js.map +1 -0
- package/dist/{chunk-VVQM4CZD.cjs → chunk-3DHZCOT7.cjs} +20 -20
- package/dist/{chunk-VVQM4CZD.cjs.map → chunk-3DHZCOT7.cjs.map} +1 -1
- package/dist/{chunk-JXUTCSXX.cjs → chunk-4UGOKMI5.cjs} +250 -158
- package/dist/chunk-4UGOKMI5.cjs.map +1 -0
- package/dist/{chunk-RFRM3Q5K.js → chunk-5262ZMTR.js} +14 -5
- package/dist/chunk-5262ZMTR.js.map +1 -0
- package/dist/{chunk-QRNYDV5Z.js → chunk-5763DULU.js} +214 -69
- package/dist/chunk-5763DULU.js.map +1 -0
- package/dist/{chunk-BGYJW37L.js → chunk-5UVRGXD3.js} +277 -7
- package/dist/chunk-5UVRGXD3.js.map +1 -0
- package/dist/{chunk-QR24DJDF.cjs → chunk-62ZP23AW.cjs} +15 -15
- package/dist/{chunk-QR24DJDF.cjs.map → chunk-62ZP23AW.cjs.map} +1 -1
- package/dist/{chunk-ZI6VQSZA.cjs → chunk-65E3XWGF.cjs} +724 -577
- package/dist/chunk-65E3XWGF.cjs.map +1 -0
- package/dist/{chunk-S4KQ5LV4.js → chunk-775A4ZMN.js} +40 -6
- package/dist/chunk-775A4ZMN.js.map +1 -0
- package/dist/{chunk-J2ICGNHO.cjs → chunk-7BQXPCGN.cjs} +830 -169
- package/dist/chunk-7BQXPCGN.cjs.map +1 -0
- package/dist/{chunk-FJMPR3OH.cjs → chunk-7EO3TCQB.cjs} +33 -7
- package/dist/chunk-7EO3TCQB.cjs.map +1 -0
- package/dist/{chunk-DXEEHSGN.js → chunk-7VQXLT5O.js} +436 -43
- package/dist/chunk-7VQXLT5O.js.map +1 -0
- package/dist/chunk-A4OC4DVN.cjs +12 -0
- package/dist/{chunk-4SZ6XPTG.cjs.map → chunk-A4OC4DVN.cjs.map} +1 -1
- package/dist/{chunk-TDXIBCGY.cjs → chunk-A7J2YDDI.cjs} +5 -3
- package/dist/chunk-A7J2YDDI.cjs.map +1 -0
- package/dist/{chunk-55ITBQJI.js → chunk-AKLS3BYZ.js} +56 -5
- package/dist/chunk-AKLS3BYZ.js.map +1 -0
- package/dist/{chunk-D7PG5D5K.js → chunk-AMKPPFUO.js} +32 -6
- package/dist/chunk-AMKPPFUO.js.map +1 -0
- package/dist/{chunk-WUFASQUO.js → chunk-ASTI57H3.js} +3 -3
- package/dist/{chunk-WUFASQUO.js.map → chunk-ASTI57H3.js.map} +1 -1
- package/dist/{chunk-4QIKLIGG.js → chunk-BKCUOV7A.js} +15 -5
- package/dist/chunk-BKCUOV7A.js.map +1 -0
- package/dist/{chunk-JQXSZHF2.cjs → chunk-BSFJMMV3.cjs} +134 -7
- package/dist/chunk-BSFJMMV3.cjs.map +1 -0
- package/dist/{chunk-4GUTQPVO.js → chunk-C23WSN5E.js} +185 -24
- package/dist/chunk-C23WSN5E.js.map +1 -0
- package/dist/{chunk-QLUXRWKL.js → chunk-CBTIUB76.js} +3 -3
- package/dist/{chunk-QLUXRWKL.js.map → chunk-CBTIUB76.js.map} +1 -1
- package/dist/chunk-CMWHLBVN.cjs +2082 -0
- package/dist/chunk-CMWHLBVN.cjs.map +1 -0
- package/dist/{chunk-QB6VMOJ2.cjs → chunk-CXBHOOIQ.cjs} +45 -10
- package/dist/chunk-CXBHOOIQ.cjs.map +1 -0
- package/dist/{chunk-FL5UQRES.js → chunk-DCQVHAYQ.js} +5 -5
- package/dist/{chunk-FL5UQRES.js.map → chunk-DCQVHAYQ.js.map} +1 -1
- package/dist/chunk-DTVWX77L.cjs +3432 -0
- package/dist/chunk-DTVWX77L.cjs.map +1 -0
- package/dist/chunk-DYATYRY4.js +47 -0
- package/dist/chunk-DYATYRY4.js.map +1 -0
- package/dist/chunk-E4WNQBEF.cjs +217 -0
- package/dist/chunk-E4WNQBEF.cjs.map +1 -0
- package/dist/{chunk-G6Q5UM7U.js → chunk-FWJKWH6U.js} +5 -3
- package/dist/chunk-FWJKWH6U.js.map +1 -0
- package/dist/chunk-GF3KXUTW.js +3393 -0
- package/dist/chunk-GF3KXUTW.js.map +1 -0
- package/dist/{chunk-VTN3C3CH.js → chunk-HFHTMECK.js} +7 -7
- package/dist/{chunk-VTN3C3CH.js.map → chunk-HFHTMECK.js.map} +1 -1
- package/dist/{chunk-FLEQ2HBK.js → chunk-I5MOXA4H.js} +20 -14
- package/dist/chunk-I5MOXA4H.js.map +1 -0
- package/dist/{chunk-4MB3AQAQ.js → chunk-J3WZ3FA2.js} +77 -3
- package/dist/chunk-J3WZ3FA2.js.map +1 -0
- package/dist/{chunk-UR7W5YQK.js → chunk-JBQQ7THH.js} +5 -3
- package/dist/chunk-JBQQ7THH.js.map +1 -0
- package/dist/{chunk-TKP5T34P.js → chunk-JXA2ZP2Q.js} +6 -16
- package/dist/chunk-JXA2ZP2Q.js.map +1 -0
- package/dist/{chunk-GYA4JRP5.js → chunk-JXXDZTMN.js} +2 -2
- package/dist/chunk-JXXDZTMN.js.map +1 -0
- package/dist/chunk-JZUR7ZWE.js +254 -0
- package/dist/chunk-JZUR7ZWE.js.map +1 -0
- package/dist/{chunk-42PYUGLS.js → chunk-K5ELX2GT.js} +108 -8
- package/dist/chunk-K5ELX2GT.js.map +1 -0
- package/dist/{chunk-Q6EDCUXV.js → chunk-L65OU2U3.js} +556 -204
- package/dist/chunk-L65OU2U3.js.map +1 -0
- package/dist/{chunk-D54WH24V.cjs → chunk-LBJKZXDE.cjs} +115 -13
- package/dist/chunk-LBJKZXDE.cjs.map +1 -0
- package/dist/{chunk-FQ7ZPOTZ.js → chunk-LGHCOKTT.js} +637 -493
- package/dist/chunk-LGHCOKTT.js.map +1 -0
- package/dist/chunk-M3WP7RQZ.js +736 -0
- package/dist/chunk-M3WP7RQZ.js.map +1 -0
- package/dist/{chunk-4MEWSUVM.cjs → chunk-M4BDU5RX.cjs} +12 -12
- package/dist/chunk-M4BDU5RX.cjs.map +1 -0
- package/dist/chunk-MCLYU6BN.cjs +332 -0
- package/dist/chunk-MCLYU6BN.cjs.map +1 -0
- package/dist/{chunk-MIJKEVV7.js → chunk-MSY7FSX4.js} +37 -4
- package/dist/chunk-MSY7FSX4.js.map +1 -0
- package/dist/{chunk-H7VE3FL4.cjs → chunk-MUK4BU7K.cjs} +519 -125
- package/dist/chunk-MUK4BU7K.cjs.map +1 -0
- package/dist/{chunk-D56XG4EI.cjs → chunk-MXJDTH5B.cjs} +56 -45
- package/dist/chunk-MXJDTH5B.cjs.map +1 -0
- package/dist/{chunk-5EKPX6QU.js → chunk-MZLPX2R7.js} +8 -9
- package/dist/chunk-MZLPX2R7.js.map +1 -0
- package/dist/chunk-N66HCGCY.cjs +57 -0
- package/dist/chunk-N66HCGCY.cjs.map +1 -0
- package/dist/{chunk-CPEL3YIR.cjs → chunk-NFCVHQ5P.cjs} +55 -22
- package/dist/chunk-NFCVHQ5P.cjs.map +1 -0
- package/dist/{chunk-C4F7VJ5D.cjs → chunk-NI72YOJB.cjs} +84 -2
- package/dist/chunk-NI72YOJB.cjs.map +1 -0
- package/dist/{chunk-BNS75YNF.cjs → chunk-NK5Q7UNE.cjs} +10 -20
- package/dist/chunk-NK5Q7UNE.cjs.map +1 -0
- package/dist/{chunk-TKORQCG4.js → chunk-NLI2AVEF.js} +386 -862
- package/dist/chunk-NLI2AVEF.js.map +1 -0
- package/dist/{chunk-YMTXMPV6.js → chunk-NMWDXFPH.js} +4 -4
- package/dist/{chunk-YMTXMPV6.js.map → chunk-NMWDXFPH.js.map} +1 -1
- package/dist/{chunk-J7LXTUTP.cjs → chunk-PF6F5NLJ.cjs} +604 -1094
- package/dist/chunk-PF6F5NLJ.cjs.map +1 -0
- package/dist/{chunk-NAAMUYMS.cjs → chunk-PNN7RHVR.cjs} +58 -48
- package/dist/chunk-PNN7RHVR.cjs.map +1 -0
- package/dist/{chunk-YOALGKRE.cjs → chunk-PNTCATDE.cjs} +3528 -1763
- package/dist/chunk-PNTCATDE.cjs.map +1 -0
- package/dist/{chunk-6DCB664D.js → chunk-PQBQG7IM.js} +3 -3
- package/dist/{chunk-6DCB664D.js.map → chunk-PQBQG7IM.js.map} +1 -1
- package/dist/{chunk-UCQ3BFSY.cjs → chunk-PT7RIRIZ.cjs} +684 -332
- package/dist/chunk-PT7RIRIZ.cjs.map +1 -0
- package/dist/{chunk-ACSVZPK7.cjs → chunk-PWLJ77UV.cjs} +5 -3
- package/dist/chunk-PWLJ77UV.cjs.map +1 -0
- package/dist/chunk-Q3G6A4I3.cjs +755 -0
- package/dist/chunk-Q3G6A4I3.cjs.map +1 -0
- package/dist/{chunk-Z3WO6MND.cjs → chunk-RMQLSPA2.cjs} +297 -27
- package/dist/chunk-RMQLSPA2.cjs.map +1 -0
- package/dist/{chunk-SJDMVITW.cjs → chunk-RT5ZY4XA.cjs} +6 -5
- package/dist/chunk-RT5ZY4XA.cjs.map +1 -0
- package/dist/{chunk-ID4WXTKL.js → chunk-S6PW7VV5.js} +2382 -617
- package/dist/chunk-S6PW7VV5.js.map +1 -0
- package/dist/{chunk-4GUBTVPV.js → chunk-T4XNKYXB.js} +780 -126
- package/dist/chunk-T4XNKYXB.js.map +1 -0
- package/dist/{chunk-YDWLUT5V.cjs → chunk-TQR4KBY2.cjs} +323 -178
- package/dist/chunk-TQR4KBY2.cjs.map +1 -0
- package/dist/{chunk-OOA273IJ.cjs → chunk-U5SON7R2.cjs} +27 -27
- package/dist/{chunk-OOA273IJ.cjs.map → chunk-U5SON7R2.cjs.map} +1 -1
- package/dist/{chunk-IX64T5OL.cjs → chunk-U63GDNRC.cjs} +32 -26
- package/dist/chunk-U63GDNRC.cjs.map +1 -0
- package/dist/{chunk-WDBXJOU5.cjs → chunk-UDISNXDL.cjs} +56 -47
- package/dist/chunk-UDISNXDL.cjs.map +1 -0
- package/dist/{chunk-EFEOOCJ3.js → chunk-UV3SN74I.js} +5 -5
- package/dist/{chunk-EFEOOCJ3.js.map → chunk-UV3SN74I.js.map} +1 -1
- package/dist/{chunk-U5W4LKZV.cjs → chunk-VCRRKBLN.cjs} +9 -9
- package/dist/{chunk-U5W4LKZV.cjs.map → chunk-VCRRKBLN.cjs.map} +1 -1
- package/dist/{chunk-ISLPNELU.js → chunk-VGTJPTIC.js} +16 -5
- package/dist/chunk-VGTJPTIC.js.map +1 -0
- package/dist/chunk-VLT6PEWR.cjs +60 -0
- package/dist/chunk-VLT6PEWR.cjs.map +1 -0
- package/dist/chunk-VQH4VAWD.cjs +12 -0
- package/dist/{chunk-B3F2D3SP.cjs.map → chunk-VQH4VAWD.cjs.map} +1 -1
- package/dist/{chunk-SNXVDZAJ.js → chunk-W6OG3HDG.js} +5 -4
- package/dist/chunk-W6OG3HDG.js.map +1 -0
- package/dist/chunk-WDGA7IYB.js +207 -0
- package/dist/chunk-WDGA7IYB.js.map +1 -0
- package/dist/chunk-WQZLUGVR.js +2057 -0
- package/dist/chunk-WQZLUGVR.js.map +1 -0
- package/dist/{chunk-EKFUG4G7.cjs → chunk-XBYVV3MP.cjs} +60 -5
- package/dist/chunk-XBYVV3MP.cjs.map +1 -0
- package/dist/{chunk-5GAONX5G.cjs → chunk-XCAGZAKP.cjs} +7 -7
- package/dist/{chunk-5GAONX5G.cjs.map → chunk-XCAGZAKP.cjs.map} +1 -1
- package/dist/chunk-XL7SLCXS.js +309 -0
- package/dist/chunk-XL7SLCXS.js.map +1 -0
- package/dist/{chunk-SVJ5GEXW.cjs → chunk-XUO3KQFO.cjs} +2 -2
- package/dist/chunk-XUO3KQFO.cjs.map +1 -0
- package/dist/{chunk-F4NHQHEZ.cjs → chunk-YAAM3M2S.cjs} +10 -10
- package/dist/{chunk-F4NHQHEZ.cjs.map → chunk-YAAM3M2S.cjs.map} +1 -1
- package/dist/{chunk-RUQS6M7G.js → chunk-YBFHZUXX.js} +6 -6
- package/dist/chunk-YBFHZUXX.js.map +1 -0
- package/dist/{chunk-KMXWZLQX.cjs → chunk-YBQOHKHN.cjs} +99 -100
- package/dist/chunk-YBQOHKHN.cjs.map +1 -0
- package/dist/{chunk-PVUI6KGR.js → chunk-YDFDBE6D.js} +93 -6
- package/dist/chunk-YDFDBE6D.js.map +1 -0
- package/dist/{chunk-P7GTYOLB.cjs → chunk-YVWGEQJE.cjs} +297 -135
- package/dist/chunk-YVWGEQJE.cjs.map +1 -0
- package/dist/{chunk-QT6V3YRH.js → chunk-YWGVVALJ.js} +3 -3
- package/dist/{chunk-QT6V3YRH.js.map → chunk-YWGVVALJ.js.map} +1 -1
- package/dist/core/index.cjs +40 -40
- package/dist/core/index.d.cts +4 -5
- package/dist/core/index.d.ts +4 -5
- package/dist/core/index.js +8 -8
- package/dist/{ddl-BG4J805L.d.cts → ddl-BJcOp4WZ.d.cts} +3 -3
- package/dist/{ddl-CgiS9QLj.d.ts → ddl-BXfGHbPN.d.ts} +3 -3
- package/dist/graph-extension/index.cjs +26 -22
- package/dist/graph-extension/index.d.cts +16 -6
- package/dist/graph-extension/index.d.ts +16 -6
- package/dist/graph-extension/index.js +7 -7
- package/dist/graph-merge/index.cjs +2459 -654
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +170 -33
- package/dist/graph-merge/index.d.ts +170 -33
- package/dist/graph-merge/index.js +2269 -467
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-C3y_98iN.d.cts → index-BSHvKfok.d.ts} +221 -10
- package/dist/{index-BBxZCUdu.d.ts → index-DxaYCv8Y.d.cts} +221 -10
- package/dist/index.cjs +330 -268
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +590 -576
- package/dist/index.d.ts +590 -576
- package/dist/index.js +73 -49
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +17 -17
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +10 -10
- package/dist/interchange/index.cjs +165 -51
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +261 -16
- package/dist/interchange/index.d.ts +261 -16
- package/dist/interchange/index.js +128 -25
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-YoLEfcc1.d.ts → manager-CfZAimti.d.ts} +36 -5
- package/dist/{manager-KS7CGQQT.d.cts → manager-HGk6E_HW.d.cts} +36 -5
- package/dist/{materialize-indexes-Bhhyb1B3.d.ts → materialize-indexes-6A7dWGtb.d.cts} +10 -2
- package/dist/{materialize-indexes-OHRWypW6.d.cts → materialize-indexes-BMJP6Tms.d.ts} +10 -2
- package/dist/{postgres-DpkW3R5Y.d.cts → postgres-DFYWENdR.d.cts} +1961 -439
- package/dist/{postgres-DwqyIniy.d.ts → postgres-e7a9TdvR.d.ts} +1961 -439
- package/dist/profiler/index.cjs +15 -15
- package/dist/profiler/index.d.cts +9 -10
- package/dist/profiler/index.d.ts +9 -10
- package/dist/profiler/index.js +4 -4
- package/dist/provenance/index.cjs +46 -48
- 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 +12 -14
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +50 -48
- package/dist/schema/index.d.cts +9 -16
- package/dist/schema/index.d.ts +9 -16
- package/dist/schema/index.js +23 -21
- package/dist/{searchable-DLWEfC4a.d.ts → searchable-9OQoPuRs.d.ts} +1 -2
- package/dist/{searchable-CIZL8Hyw.d.cts → searchable-CIje5XYD.d.cts} +1 -2
- package/dist/{sqlite-DY0WODUK.d.cts → sqlite-DerU5tc7.d.ts} +2029 -347
- package/dist/{sqlite-L-VIRzqA.d.ts → sqlite-DitnISa9.d.cts} +2029 -347
- package/dist/{store-view-A85FFRnk.d.cts → store-B0h6x7wo.d.cts} +1289 -767
- package/dist/{store-view-66p92IPi.d.ts → store-ClQ-MZQS.d.ts} +1289 -767
- package/dist/{temporal-BNbjXqer.d.cts → temporal-Bn-Fi8FJ.d.cts} +1 -1
- package/dist/{temporal-Bob6Nfbp.d.ts → temporal-BtM4UALv.d.ts} +1 -1
- package/dist/{types-DeORZhxn.d.cts → types-CoIx8HX5.d.cts} +1 -1
- package/dist/{types-Ch9a0Dx6.d.ts → types-HkveCCx0.d.cts} +726 -5
- package/dist/{types-Ch9a0Dx6.d.cts → types-HkveCCx0.d.ts} +726 -5
- package/dist/{types-ClCzT-dT.d.ts → types-KFfk-8Ah.d.ts} +1 -1
- package/dist/{where-DPw52ksb.d.cts → where--fk7_0kv.d.cts} +1 -1
- package/dist/{where-kWUZPvEA.d.ts → where-ws5hf-Ov.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-2L54C2C2.js +0 -144
- package/dist/chunk-2L54C2C2.js.map +0 -1
- package/dist/chunk-35S6P5ZU.js +0 -27
- package/dist/chunk-35S6P5ZU.js.map +0 -1
- package/dist/chunk-42PYUGLS.js.map +0 -1
- package/dist/chunk-4GUBTVPV.js.map +0 -1
- package/dist/chunk-4GUTQPVO.js.map +0 -1
- package/dist/chunk-4MB3AQAQ.js.map +0 -1
- package/dist/chunk-4MEWSUVM.cjs.map +0 -1
- package/dist/chunk-4QIKLIGG.js.map +0 -1
- package/dist/chunk-4SZ6XPTG.cjs +0 -12
- package/dist/chunk-55ITBQJI.js.map +0 -1
- package/dist/chunk-5EKPX6QU.js.map +0 -1
- package/dist/chunk-6RYPD3NJ.cjs +0 -1282
- package/dist/chunk-6RYPD3NJ.cjs.map +0 -1
- package/dist/chunk-764JHTLT.cjs +0 -15
- package/dist/chunk-764JHTLT.cjs.map +0 -1
- package/dist/chunk-ACSVZPK7.cjs.map +0 -1
- package/dist/chunk-B3F2D3SP.cjs +0 -12
- package/dist/chunk-BGYJW37L.js.map +0 -1
- package/dist/chunk-BNS75YNF.cjs.map +0 -1
- package/dist/chunk-C4F7VJ5D.cjs.map +0 -1
- package/dist/chunk-CBKG6HEP.js +0 -1263
- package/dist/chunk-CBKG6HEP.js.map +0 -1
- package/dist/chunk-CPEL3YIR.cjs.map +0 -1
- package/dist/chunk-D54WH24V.cjs.map +0 -1
- package/dist/chunk-D56XG4EI.cjs.map +0 -1
- package/dist/chunk-D7PG5D5K.js.map +0 -1
- package/dist/chunk-DI74SMXS.cjs +0 -29
- package/dist/chunk-DI74SMXS.cjs.map +0 -1
- package/dist/chunk-DK2S42XB.js +0 -77
- package/dist/chunk-DK2S42XB.js.map +0 -1
- package/dist/chunk-DRACN6XG.js +0 -27
- package/dist/chunk-DRACN6XG.js.map +0 -1
- package/dist/chunk-DXEEHSGN.js.map +0 -1
- package/dist/chunk-EKFUG4G7.cjs.map +0 -1
- package/dist/chunk-EQ7JKLZO.cjs +0 -157
- package/dist/chunk-EQ7JKLZO.cjs.map +0 -1
- package/dist/chunk-FJMPR3OH.cjs.map +0 -1
- package/dist/chunk-FLEQ2HBK.js.map +0 -1
- package/dist/chunk-FQ7ZPOTZ.js.map +0 -1
- package/dist/chunk-G6Q5UM7U.js.map +0 -1
- package/dist/chunk-GYA4JRP5.js.map +0 -1
- package/dist/chunk-H7VE3FL4.cjs.map +0 -1
- package/dist/chunk-ID4WXTKL.js.map +0 -1
- package/dist/chunk-ISLPNELU.js.map +0 -1
- package/dist/chunk-ITE4IXAK.js +0 -25
- package/dist/chunk-ITE4IXAK.js.map +0 -1
- package/dist/chunk-IX64T5OL.cjs.map +0 -1
- package/dist/chunk-J2ICGNHO.cjs.map +0 -1
- package/dist/chunk-J7LXTUTP.cjs.map +0 -1
- package/dist/chunk-JQXSZHF2.cjs.map +0 -1
- package/dist/chunk-JXUTCSXX.cjs.map +0 -1
- package/dist/chunk-KCO5EFJU.js +0 -79
- package/dist/chunk-KCO5EFJU.js.map +0 -1
- package/dist/chunk-KKYELPZ2.cjs +0 -83
- package/dist/chunk-KKYELPZ2.cjs.map +0 -1
- package/dist/chunk-KMXWZLQX.cjs.map +0 -1
- package/dist/chunk-MIJKEVV7.js.map +0 -1
- package/dist/chunk-NAAMUYMS.cjs.map +0 -1
- package/dist/chunk-P7GTYOLB.cjs.map +0 -1
- package/dist/chunk-PVUI6KGR.js.map +0 -1
- package/dist/chunk-Q6EDCUXV.js.map +0 -1
- package/dist/chunk-QB6VMOJ2.cjs.map +0 -1
- package/dist/chunk-QC4MCOFV.cjs +0 -83
- package/dist/chunk-QC4MCOFV.cjs.map +0 -1
- package/dist/chunk-QMQLUA66.js +0 -12
- package/dist/chunk-QMQLUA66.js.map +0 -1
- package/dist/chunk-QRNYDV5Z.js.map +0 -1
- package/dist/chunk-RFRM3Q5K.js.map +0 -1
- package/dist/chunk-RUQS6M7G.js.map +0 -1
- package/dist/chunk-S4KQ5LV4.js.map +0 -1
- package/dist/chunk-SJDMVITW.cjs.map +0 -1
- package/dist/chunk-SNXVDZAJ.js.map +0 -1
- package/dist/chunk-SVJ5GEXW.cjs.map +0 -1
- package/dist/chunk-TDXIBCGY.cjs.map +0 -1
- package/dist/chunk-TKORQCG4.js.map +0 -1
- package/dist/chunk-TKP5T34P.js.map +0 -1
- package/dist/chunk-TRF4EBJT.cjs +0 -30
- package/dist/chunk-TRF4EBJT.cjs.map +0 -1
- package/dist/chunk-UCQ3BFSY.cjs.map +0 -1
- package/dist/chunk-UR7W5YQK.js.map +0 -1
- package/dist/chunk-V34A6R5V.js +0 -134
- package/dist/chunk-V34A6R5V.js.map +0 -1
- package/dist/chunk-WDAVPX46.js +0 -81
- package/dist/chunk-WDAVPX46.js.map +0 -1
- package/dist/chunk-WDBXJOU5.cjs.map +0 -1
- package/dist/chunk-YDWLUT5V.cjs.map +0 -1
- package/dist/chunk-YOALGKRE.cjs.map +0 -1
- package/dist/chunk-Z3WO6MND.cjs.map +0 -1
- package/dist/chunk-ZDH3DX3C.cjs +0 -30
- package/dist/chunk-ZDH3DX3C.cjs.map +0 -1
- package/dist/chunk-ZI6VQSZA.cjs.map +0 -1
- package/dist/chunk-ZTAJL4DT.cjs +0 -85
- package/dist/chunk-ZTAJL4DT.cjs.map +0 -1
- package/dist/define-graph-BGrJahvp.d.ts +0 -173
- package/dist/define-graph-alREY2wj.d.cts +0 -173
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var chunkC4F7VJ5D_cjs = require('./chunk-C4F7VJ5D.cjs');
|
|
3
|
+
var chunkMUK4BU7K_cjs = require('./chunk-MUK4BU7K.cjs');
|
|
4
|
+
var chunkMXJDTH5B_cjs = require('./chunk-MXJDTH5B.cjs');
|
|
5
|
+
var chunkYAAM3M2S_cjs = require('./chunk-YAAM3M2S.cjs');
|
|
6
|
+
var chunkRMQLSPA2_cjs = require('./chunk-RMQLSPA2.cjs');
|
|
7
|
+
var chunkU5SON7R2_cjs = require('./chunk-U5SON7R2.cjs');
|
|
8
|
+
var chunkBSFJMMV3_cjs = require('./chunk-BSFJMMV3.cjs');
|
|
9
|
+
var chunkXBYVV3MP_cjs = require('./chunk-XBYVV3MP.cjs');
|
|
10
|
+
var chunk4UGOKMI5_cjs = require('./chunk-4UGOKMI5.cjs');
|
|
11
|
+
var chunkVCRRKBLN_cjs = require('./chunk-VCRRKBLN.cjs');
|
|
12
|
+
var chunkNI72YOJB_cjs = require('./chunk-NI72YOJB.cjs');
|
|
13
|
+
var chunkN66HCGCY_cjs = require('./chunk-N66HCGCY.cjs');
|
|
15
14
|
var drizzleOrm = require('drizzle-orm');
|
|
16
15
|
var pgCore = require('drizzle-orm/pg-core');
|
|
17
16
|
|
|
@@ -30,8 +29,12 @@ function isPgliteClient(candidate) {
|
|
|
30
29
|
return typeof candidate === "object" && hasFunctionProperty(candidate, "query") && hasFunctionProperty(candidate, "dumpDataDir");
|
|
31
30
|
}
|
|
32
31
|
var PGLITE_MAX_BIND_PARAMETERS = 32767;
|
|
32
|
+
function getPgliteClient(db) {
|
|
33
|
+
const client = db.$client;
|
|
34
|
+
return isPgliteClient(client) ? client : void 0;
|
|
35
|
+
}
|
|
33
36
|
function isPgliteDatabase(db) {
|
|
34
|
-
return
|
|
37
|
+
return getPgliteClient(db) !== void 0;
|
|
35
38
|
}
|
|
36
39
|
function transactionSession(carrier) {
|
|
37
40
|
return carrier.session ?? carrier._?.session;
|
|
@@ -50,7 +53,7 @@ var DEFAULT_POSTGRES_STATEMENT_CACHE_MAX = 256;
|
|
|
50
53
|
var STATEMENT_NAME_CACHE = /* @__PURE__ */ new Map();
|
|
51
54
|
var nextStatementId = 0;
|
|
52
55
|
function statementNameFor(sqlText, cacheMax) {
|
|
53
|
-
return
|
|
56
|
+
return chunkMUK4BU7K_cjs.getOrCreateLru(STATEMENT_NAME_CACHE, sqlText, cacheMax, () => {
|
|
54
57
|
const name = `tg_${nextStatementId}`;
|
|
55
58
|
nextStatementId += 1;
|
|
56
59
|
return name;
|
|
@@ -164,7 +167,7 @@ function createPostgresExecutionAdapter(db, options = {}) {
|
|
|
164
167
|
options.useTransactionClient ?? false
|
|
165
168
|
);
|
|
166
169
|
function compile(query) {
|
|
167
|
-
return
|
|
170
|
+
return chunkU5SON7R2_cjs.compileQueryWithDialect(db, query, "PostgreSQL");
|
|
168
171
|
}
|
|
169
172
|
function assertCompiledWithinBindParameterLimit(compiledQuery) {
|
|
170
173
|
assertWithinBindParameterLimit(
|
|
@@ -179,7 +182,7 @@ function createPostgresExecutionAdapter(db, options = {}) {
|
|
|
179
182
|
assertCompiledWithinBindParameterLimit(compile(query));
|
|
180
183
|
return executeDrizzleQuery(
|
|
181
184
|
db,
|
|
182
|
-
|
|
185
|
+
chunkVCRRKBLN_cjs.isSqlFragment(query) ? chunkU5SON7R2_cjs.toDrizzleSql(query, "postgres") : query
|
|
183
186
|
);
|
|
184
187
|
}
|
|
185
188
|
};
|
|
@@ -198,7 +201,7 @@ function createPostgresExecutionAdapter(db, options = {}) {
|
|
|
198
201
|
async execute(query) {
|
|
199
202
|
const compiled = compile(query);
|
|
200
203
|
assertCompiledWithinBindParameterLimit(compiled);
|
|
201
|
-
if (
|
|
204
|
+
if (chunkVCRRKBLN_cjs.isSqlFragment(query) && chunkVCRRKBLN_cjs.shouldForceCustomPlan(query)) {
|
|
202
205
|
const result = await pgQueryClient.queryUnnamed(
|
|
203
206
|
compiled.sql,
|
|
204
207
|
compiled.params
|
|
@@ -221,7 +224,7 @@ function assertWithinBindParameterLimit(parameterCount, maxBindParameters) {
|
|
|
221
224
|
if (maxBindParameters === void 0 || parameterCount <= maxBindParameters) {
|
|
222
225
|
return;
|
|
223
226
|
}
|
|
224
|
-
throw new
|
|
227
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
225
228
|
`PostgreSQL statement uses ${parameterCount} bound parameters, exceeding this backend's limit of ${maxBindParameters}.`,
|
|
226
229
|
{
|
|
227
230
|
capability: "maxBindParameters",
|
|
@@ -242,7 +245,7 @@ function createStatementQueue() {
|
|
|
242
245
|
let closed = false;
|
|
243
246
|
return {
|
|
244
247
|
enqueue(task) {
|
|
245
|
-
if (closed) return Promise.reject(new
|
|
248
|
+
if (closed) return Promise.reject(new chunkNI72YOJB_cjs.TransactionClosedError());
|
|
246
249
|
const result = tail.then(() => task());
|
|
247
250
|
tail = result.then(ignoreOutcome, ignoreOutcome);
|
|
248
251
|
return result;
|
|
@@ -307,11 +310,11 @@ function computePostgresBatchChunkSizes(maxBindParameters) {
|
|
|
307
310
|
),
|
|
308
311
|
embeddingUpsertBatchSize: Math.max(
|
|
309
312
|
1,
|
|
310
|
-
Math.floor(maxBindParameters /
|
|
313
|
+
Math.floor(maxBindParameters / chunkMUK4BU7K_cjs.EMBEDDING_UPSERT_PARAM_COUNT)
|
|
311
314
|
),
|
|
312
315
|
findEdgesEndpointChunkSize: Math.max(
|
|
313
316
|
1,
|
|
314
|
-
maxBindParameters -
|
|
317
|
+
maxBindParameters - chunkMUK4BU7K_cjs.FIND_EDGES_ENDPOINT_FIXED_PARAM_COUNT
|
|
315
318
|
),
|
|
316
319
|
fulltextDeleteChunkSize: Math.max(
|
|
317
320
|
1,
|
|
@@ -343,23 +346,30 @@ function computePostgresBatchChunkSizes(maxBindParameters) {
|
|
|
343
346
|
)
|
|
344
347
|
};
|
|
345
348
|
}
|
|
346
|
-
var
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
var IDENTITY_TABLE_LOGICAL_NAMES = /* @__PURE__ */ new Set([
|
|
350
|
+
"identityAssertions",
|
|
351
|
+
"recordedIdentityAssertions",
|
|
352
|
+
"identityClosure",
|
|
353
|
+
"identitySeparation"
|
|
354
|
+
]);
|
|
355
|
+
var toNodeRow = chunkYAAM3M2S_cjs.createNodeRowMapper(chunkYAAM3M2S_cjs.POSTGRES_ROW_MAPPER_CONFIG);
|
|
356
|
+
var toEdgeRow = chunkYAAM3M2S_cjs.createEdgeRowMapper(chunkYAAM3M2S_cjs.POSTGRES_ROW_MAPPER_CONFIG);
|
|
357
|
+
var toUniqueRow = chunkYAAM3M2S_cjs.createUniqueRowMapper(chunkYAAM3M2S_cjs.POSTGRES_ROW_MAPPER_CONFIG);
|
|
358
|
+
var toSchemaVersionRow = chunkYAAM3M2S_cjs.createSchemaVersionRowMapper(
|
|
359
|
+
chunkYAAM3M2S_cjs.POSTGRES_ROW_MAPPER_CONFIG
|
|
351
360
|
);
|
|
352
361
|
function buildPostgresCapabilities(fulltextStrategy, vectorStrategy) {
|
|
353
362
|
return {
|
|
354
|
-
...
|
|
355
|
-
...vectorStrategy === void 0 ? {} : { vector:
|
|
356
|
-
fulltext:
|
|
363
|
+
...chunkXBYVV3MP_cjs.POSTGRES_CAPABILITIES,
|
|
364
|
+
...vectorStrategy === void 0 ? {} : { vector: chunk4UGOKMI5_cjs.buildVectorCapabilities(vectorStrategy) },
|
|
365
|
+
fulltext: chunk4UGOKMI5_cjs.buildFulltextCapabilities(fulltextStrategy)
|
|
357
366
|
};
|
|
358
367
|
}
|
|
359
368
|
function createPostgresBackend(db, options = {}) {
|
|
360
|
-
const
|
|
361
|
-
const
|
|
362
|
-
const
|
|
369
|
+
const serializedClient = getSerializedPostgresClient(db);
|
|
370
|
+
const tables2 = options.tables ?? chunkRMQLSPA2_cjs.tables;
|
|
371
|
+
const fulltextStrategy = options.fulltext ?? chunk4UGOKMI5_cjs.tsvectorStrategy;
|
|
372
|
+
const vectorStrategy = options.vector === false ? void 0 : options.vector ?? chunkMXJDTH5B_cjs.pgvectorStrategy;
|
|
363
373
|
const iterativeScanProbe = createIterativeScanProbe();
|
|
364
374
|
const baseCapabilities = buildPostgresCapabilities(
|
|
365
375
|
fulltextStrategy,
|
|
@@ -372,23 +382,35 @@ function createPostgresBackend(db, options = {}) {
|
|
|
372
382
|
supported: false
|
|
373
383
|
}
|
|
374
384
|
} : {};
|
|
375
|
-
const configuredMaxBindParameters = options.capabilities?.maxBindParameters ??
|
|
385
|
+
const configuredMaxBindParameters = options.capabilities?.maxBindParameters ?? chunkXBYVV3MP_cjs.POSTGRES_MAX_BIND_PARAMETERS;
|
|
376
386
|
const driverBindParameterOverrides = isPgliteDatabase(db) ? {
|
|
377
387
|
maxBindParameters: Math.min(
|
|
378
388
|
configuredMaxBindParameters,
|
|
379
389
|
PGLITE_MAX_BIND_PARAMETERS
|
|
380
390
|
)
|
|
381
391
|
} : {};
|
|
382
|
-
const
|
|
392
|
+
const declaredCapabilities = chunkXBYVV3MP_cjs.normalizeGraphAnalyticsCapabilities({
|
|
383
393
|
...baseCapabilities,
|
|
384
394
|
...httpOnlyOverrides,
|
|
385
395
|
...options.capabilities,
|
|
386
396
|
...driverBindParameterOverrides
|
|
387
397
|
});
|
|
398
|
+
const capabilities = {
|
|
399
|
+
...declaredCapabilities,
|
|
400
|
+
contributions: {
|
|
401
|
+
supported: true,
|
|
402
|
+
probe: true,
|
|
403
|
+
rebuild: chunkMUK4BU7K_cjs.contributionRebuildSupported(
|
|
404
|
+
fulltextStrategy,
|
|
405
|
+
tables2.fulltextTableName,
|
|
406
|
+
declaredCapabilities.transactions
|
|
407
|
+
)
|
|
408
|
+
}
|
|
409
|
+
};
|
|
388
410
|
const adapterOptions = {
|
|
389
411
|
...options.prepareStatements === void 0 ? {} : { prepareStatements: options.prepareStatements },
|
|
390
412
|
...options.preparedStatementCacheMax === void 0 ? {} : { preparedStatementCacheMax: options.preparedStatementCacheMax },
|
|
391
|
-
maxBindParameters: capabilities.maxBindParameters ??
|
|
413
|
+
maxBindParameters: capabilities.maxBindParameters ?? chunkXBYVV3MP_cjs.POSTGRES_MAX_BIND_PARAMETERS
|
|
392
414
|
};
|
|
393
415
|
const executionAdapter = createPostgresExecutionAdapter(db, adapterOptions);
|
|
394
416
|
const tableNames = {
|
|
@@ -398,6 +420,10 @@ function createPostgresBackend(db, options = {}) {
|
|
|
398
420
|
recordedEdges: drizzleOrm.getTableName(tables2.recordedEdges),
|
|
399
421
|
recordedClock: drizzleOrm.getTableName(tables2.recordedClock),
|
|
400
422
|
revisionOrigins: drizzleOrm.getTableName(tables2.revisionOrigins),
|
|
423
|
+
identityAssertions: drizzleOrm.getTableName(tables2.identityAssertions),
|
|
424
|
+
recordedIdentityAssertions: drizzleOrm.getTableName(tables2.recordedIdentityAssertions),
|
|
425
|
+
identityClosure: drizzleOrm.getTableName(tables2.identityClosure),
|
|
426
|
+
identitySeparation: drizzleOrm.getTableName(tables2.identitySeparation),
|
|
401
427
|
fulltext: tables2.fulltextTableName,
|
|
402
428
|
uniques: drizzleOrm.getTableName(tables2.uniques)
|
|
403
429
|
};
|
|
@@ -407,21 +433,25 @@ function createPostgresBackend(db, options = {}) {
|
|
|
407
433
|
drizzleOrm.getTableName(tables2.uniques),
|
|
408
434
|
tableNames.fulltext
|
|
409
435
|
].map(
|
|
410
|
-
(name) =>
|
|
411
|
-
|
|
436
|
+
(name) => chunkU5SON7R2_cjs.toDrizzleSql(
|
|
437
|
+
chunkVCRRKBLN_cjs.sql`ANALYZE (SKIP_LOCKED) ${chunkVCRRKBLN_cjs.sql.identifier(name)}`,
|
|
412
438
|
"postgres"
|
|
413
439
|
)
|
|
414
440
|
);
|
|
415
|
-
const
|
|
441
|
+
const guardedAnalyzeTables = [
|
|
416
442
|
tableNames.recordedNodes,
|
|
417
443
|
tableNames.recordedEdges,
|
|
418
|
-
tableNames.recordedClock
|
|
444
|
+
tableNames.recordedClock,
|
|
445
|
+
tableNames.recordedIdentityAssertions,
|
|
446
|
+
tableNames.identityAssertions,
|
|
447
|
+
tableNames.identityClosure,
|
|
448
|
+
tableNames.identitySeparation
|
|
419
449
|
];
|
|
420
|
-
const operationStrategy =
|
|
450
|
+
const operationStrategy = chunkMUK4BU7K_cjs.createPostgresOperationStrategy(
|
|
421
451
|
tables2,
|
|
422
452
|
fulltextStrategy
|
|
423
453
|
);
|
|
424
|
-
const
|
|
454
|
+
const guardedTableExists = chunkMUK4BU7K_cjs.createCachedTableExistence(
|
|
425
455
|
async (tableName) => {
|
|
426
456
|
const rows = await executionAdapter.execute(
|
|
427
457
|
operationStrategy.buildTableExists(tableName)
|
|
@@ -431,18 +461,32 @@ function createPostgresBackend(db, options = {}) {
|
|
|
431
461
|
{ cacheExisting: false }
|
|
432
462
|
);
|
|
433
463
|
const matTable = tables2.contributionMaterializations;
|
|
434
|
-
async function
|
|
435
|
-
const statement = drizzleOrm.sql.raw(
|
|
464
|
+
async function executeConcurrentCreateDdl(ddl) {
|
|
465
|
+
const statement = drizzleOrm.sql.raw(ddl);
|
|
436
466
|
try {
|
|
437
467
|
await db.execute(statement);
|
|
438
468
|
} catch (error) {
|
|
439
|
-
if (!
|
|
469
|
+
if (!chunkBSFJMMV3_cjs.isPostgresConcurrentDdlRaceError(error)) throw error;
|
|
440
470
|
await db.execute(statement);
|
|
441
471
|
}
|
|
442
472
|
}
|
|
473
|
+
async function ensureTableWithConcurrentCreateRetry(table) {
|
|
474
|
+
await executeConcurrentCreateDdl(chunkRMQLSPA2_cjs.generatePgCreateTableSQL(table));
|
|
475
|
+
}
|
|
443
476
|
async function ensureContributionMaterializationsTableImpl() {
|
|
444
477
|
await ensureTableWithConcurrentCreateRetry(matTable);
|
|
445
478
|
}
|
|
479
|
+
function identityContributionsFor(identityTableNames) {
|
|
480
|
+
const identityTables = chunkRMQLSPA2_cjs.createPostgresTables({
|
|
481
|
+
identityAssertions: identityTableNames.identityAssertions,
|
|
482
|
+
recordedIdentityAssertions: identityTableNames.recordedIdentityAssertions,
|
|
483
|
+
identityClosure: identityTableNames.identityClosure,
|
|
484
|
+
identitySeparation: identityTableNames.identitySeparation
|
|
485
|
+
});
|
|
486
|
+
return chunkRMQLSPA2_cjs.postgresContributions(identityTables, fulltextStrategy).filter(
|
|
487
|
+
(contribution) => IDENTITY_TABLE_LOGICAL_NAMES.has(contribution.logicalName)
|
|
488
|
+
);
|
|
489
|
+
}
|
|
446
490
|
async function getContributionMaterializationRow(identity) {
|
|
447
491
|
const rows = await db.select().from(matTable).where(
|
|
448
492
|
drizzleOrm.and(
|
|
@@ -454,25 +498,25 @@ function createPostgresBackend(db, options = {}) {
|
|
|
454
498
|
);
|
|
455
499
|
const row = rows[0];
|
|
456
500
|
if (row === void 0) return void 0;
|
|
457
|
-
return
|
|
501
|
+
return chunkMUK4BU7K_cjs.mapContributionMaterializationRow(
|
|
458
502
|
row,
|
|
459
|
-
|
|
503
|
+
chunkMUK4BU7K_cjs.POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
460
504
|
);
|
|
461
505
|
}
|
|
462
506
|
async function getContributionMaterializationRows(graphId) {
|
|
463
507
|
const rows = await db.select().from(matTable).where(drizzleOrm.eq(matTable.graphId, graphId));
|
|
464
508
|
return rows.map(
|
|
465
|
-
(row) =>
|
|
509
|
+
(row) => chunkMUK4BU7K_cjs.mapContributionMaterializationRow(
|
|
466
510
|
row,
|
|
467
|
-
|
|
511
|
+
chunkMUK4BU7K_cjs.POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
468
512
|
)
|
|
469
513
|
);
|
|
470
514
|
}
|
|
471
515
|
async function recordContributionMaterializationRow(params) {
|
|
472
516
|
await db.insert(matTable).values(
|
|
473
|
-
|
|
517
|
+
chunkMUK4BU7K_cjs.buildContributionInsertValues(
|
|
474
518
|
params,
|
|
475
|
-
|
|
519
|
+
chunkMUK4BU7K_cjs.POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS.encode
|
|
476
520
|
)
|
|
477
521
|
).onConflictDoUpdate({
|
|
478
522
|
target: [
|
|
@@ -481,7 +525,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
481
525
|
matTable.owner,
|
|
482
526
|
matTable.tableName
|
|
483
527
|
],
|
|
484
|
-
set:
|
|
528
|
+
set: chunkMUK4BU7K_cjs.buildContributionOnConflictSet(
|
|
485
529
|
matTable.materializedAt,
|
|
486
530
|
params.materializedAt
|
|
487
531
|
)
|
|
@@ -501,21 +545,32 @@ function createPostgresBackend(db, options = {}) {
|
|
|
501
545
|
const rows = await executionAdapter.execute(
|
|
502
546
|
operationStrategy.buildTableExists(tableName)
|
|
503
547
|
);
|
|
504
|
-
return
|
|
548
|
+
return chunkMUK4BU7K_cjs.tableExistsFromRow(rows[0]);
|
|
505
549
|
}
|
|
506
|
-
const contributionMaterializer =
|
|
550
|
+
const contributionMaterializer = chunkMUK4BU7K_cjs.createContributionMaterializer({
|
|
507
551
|
dialect: "postgres",
|
|
508
552
|
fulltextStrategy,
|
|
509
553
|
fulltextTableName: tables2.fulltextTableName,
|
|
510
554
|
vectorStrategy,
|
|
555
|
+
// Contribution DDL is `CREATE ... IF NOT EXISTS` reached from every
|
|
556
|
+
// booting replica, so it carries the same concurrent-create retry the
|
|
557
|
+
// other create sites use. Without it the loser's 23505 is recorded as
|
|
558
|
+
// `lastError` on the marker row and reported as a failed materialization,
|
|
559
|
+
// when the table it wanted is in fact present.
|
|
511
560
|
execDdl: async (statement) => {
|
|
512
|
-
await
|
|
561
|
+
await executeConcurrentCreateDdl(statement);
|
|
513
562
|
},
|
|
514
563
|
ensureMarkerTable: ensureContributionMaterializationsTableImpl,
|
|
515
564
|
getMarkers: getContributionMaterializationRows,
|
|
516
565
|
recordMarker: recordContributionMaterializationRow,
|
|
517
566
|
deleteMarker: deleteContributionMaterializationRow,
|
|
518
|
-
tableExists: contributionTableExists
|
|
567
|
+
tableExists: contributionTableExists,
|
|
568
|
+
// Withheld rather than wired-and-throwing when the driver cannot hold
|
|
569
|
+
// a session: the rebuild must refuse with its own typed error naming
|
|
570
|
+
// the absent fence, matching `capabilities.contributions.rebuild`.
|
|
571
|
+
...capabilities.transactions ? {
|
|
572
|
+
schemaWriteTransaction: (graphId, fn) => runSchemaWriteTransaction(graphId, (target) => fn(target))
|
|
573
|
+
} : {}
|
|
519
574
|
});
|
|
520
575
|
const operations = createPostgresOperationBackend({
|
|
521
576
|
db,
|
|
@@ -533,7 +588,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
533
588
|
});
|
|
534
589
|
function runSchemaWriteTransaction(graphId, fn) {
|
|
535
590
|
if (!capabilities.transactions) {
|
|
536
|
-
throw new
|
|
591
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
537
592
|
"Schema writes and removal cleanup require atomic transactions, but this Postgres backend does not provide them. The drizzle-orm/neon-http driver communicates over HTTP and cannot hold a session across statements; use drizzle-orm/neon-serverless (websocket) for transactional writes.",
|
|
538
593
|
{
|
|
539
594
|
backend: "postgres",
|
|
@@ -584,7 +639,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
584
639
|
schemaVersionsTable: tables2.schemaVersions
|
|
585
640
|
});
|
|
586
641
|
return {
|
|
587
|
-
backend:
|
|
642
|
+
backend: chunkMUK4BU7K_cjs.gateFulltext(
|
|
588
643
|
backend2,
|
|
589
644
|
contributionMaterializer.assertInitialized
|
|
590
645
|
),
|
|
@@ -597,7 +652,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
597
652
|
async trustedImport(fn, options_) {
|
|
598
653
|
return backend.transactionWithNative(async (tx, rawSql) => {
|
|
599
654
|
if (options_?.schemaWrite !== void 0) {
|
|
600
|
-
await
|
|
655
|
+
await chunkN66HCGCY_cjs.requireDefined(tx.lockSchemaVersionForWrite)({
|
|
601
656
|
...options_.schemaWrite
|
|
602
657
|
});
|
|
603
658
|
}
|
|
@@ -607,46 +662,68 @@ function createPostgresBackend(db, options = {}) {
|
|
|
607
662
|
);
|
|
608
663
|
const executeCompiled = trustedExecutionAdapter.executeCompiled;
|
|
609
664
|
if (executeCompiled === void 0) {
|
|
610
|
-
throw new
|
|
665
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
611
666
|
"Trusted import could not bind raw execution to the PostgreSQL transaction.",
|
|
612
667
|
{ capability: "trustedImport", dialect: "postgres" }
|
|
613
668
|
);
|
|
614
669
|
}
|
|
615
|
-
const trustedTx =
|
|
670
|
+
const trustedTx = chunkXBYVV3MP_cjs.createBackendOverlay(tx, {
|
|
616
671
|
executeRaw(sqlText, params) {
|
|
617
672
|
return executeCompiled({ params, sql: sqlText });
|
|
618
673
|
}
|
|
619
674
|
});
|
|
620
|
-
await
|
|
621
|
-
await
|
|
622
|
-
const indexDefinitions = await
|
|
675
|
+
await chunkMUK4BU7K_cjs.lockPostgresTrustedImportTables(trustedTx, tableNames);
|
|
676
|
+
await chunkMUK4BU7K_cjs.assertTrustedImportDatabaseEmpty(trustedTx, tableNames);
|
|
677
|
+
const indexDefinitions = await chunkMUK4BU7K_cjs.suspendPostgresSecondaryIndexes(
|
|
623
678
|
trustedTx,
|
|
624
679
|
tableNames
|
|
625
680
|
);
|
|
626
681
|
const result = await fn(
|
|
627
|
-
|
|
682
|
+
chunkMUK4BU7K_cjs.createPostgresTrustedImportSession(trustedTx, tableNames)
|
|
628
683
|
);
|
|
629
|
-
await
|
|
630
|
-
await
|
|
684
|
+
await chunkMUK4BU7K_cjs.restoreSecondaryIndexes(trustedTx, indexDefinitions);
|
|
685
|
+
await chunkMUK4BU7K_cjs.analyzeImportedTables(trustedTx, tableNames);
|
|
631
686
|
return result;
|
|
632
687
|
});
|
|
633
688
|
}
|
|
634
689
|
} : {},
|
|
635
690
|
async bootstrapTables() {
|
|
636
|
-
const statements =
|
|
691
|
+
const statements = chunkRMQLSPA2_cjs.generatePostgresDDL(tables2, fulltextStrategy);
|
|
637
692
|
for (const statement of statements) {
|
|
638
|
-
await
|
|
693
|
+
await executeConcurrentCreateDdl(statement);
|
|
639
694
|
}
|
|
640
695
|
},
|
|
641
696
|
async ensureRevisionOriginsTable() {
|
|
642
697
|
await ensureTableWithConcurrentCreateRetry(tables2.revisionOrigins);
|
|
643
698
|
},
|
|
699
|
+
async ensureIdentityTables(identityTableNames, options2) {
|
|
700
|
+
const identityContributions = identityContributionsFor(identityTableNames);
|
|
701
|
+
const missing = [];
|
|
702
|
+
for (const contribution of identityContributions) {
|
|
703
|
+
if (!await contributionTableExists(contribution.tableName)) {
|
|
704
|
+
missing.push(contribution.logicalName);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
if (missing.length === 0 || options2.provisionMissing) {
|
|
708
|
+
for (const contribution of identityContributions) {
|
|
709
|
+
for (const ddl of contribution.createDdl) {
|
|
710
|
+
await executeConcurrentCreateDdl(ddl);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
return missing;
|
|
715
|
+
},
|
|
716
|
+
identityTableDdl(identityTableNames) {
|
|
717
|
+
return identityContributionsFor(identityTableNames).flatMap(
|
|
718
|
+
(contribution) => [...contribution.createDdl]
|
|
719
|
+
);
|
|
720
|
+
},
|
|
644
721
|
// Every fulltext-touching method asserts the durable marker instead
|
|
645
722
|
// of lazily emitting DDL. Steady state performs zero ensure; an
|
|
646
723
|
// uninitialized database throws `StoreNotInitializedError` loudly
|
|
647
724
|
// rather than self-healing on a read/write path (#135). Shared
|
|
648
725
|
// verbatim with the tx-scoped gate via `gateFulltextMethods`.
|
|
649
|
-
...
|
|
726
|
+
...chunkMUK4BU7K_cjs.gateFulltextMethods(
|
|
650
727
|
operations,
|
|
651
728
|
contributionMaterializer.assertInitialized
|
|
652
729
|
),
|
|
@@ -656,15 +733,11 @@ function createPostgresBackend(db, options = {}) {
|
|
|
656
733
|
async ensureIndexMaterializationsTable() {
|
|
657
734
|
await ensureTableWithConcurrentCreateRetry(tables2.indexMaterializations);
|
|
658
735
|
const tableName = drizzleOrm.getTableName(tables2.indexMaterializations);
|
|
659
|
-
await
|
|
660
|
-
|
|
661
|
-
`ALTER TABLE "${tableName}" ADD COLUMN IF NOT EXISTS "building_since" timestamptz;`
|
|
662
|
-
)
|
|
736
|
+
await executeConcurrentCreateDdl(
|
|
737
|
+
`ALTER TABLE "${tableName}" ADD COLUMN IF NOT EXISTS "building_since" timestamptz;`
|
|
663
738
|
);
|
|
664
|
-
await
|
|
665
|
-
|
|
666
|
-
`ALTER TABLE "${tableName}" ADD COLUMN IF NOT EXISTS "claim_token" text;`
|
|
667
|
-
)
|
|
739
|
+
await executeConcurrentCreateDdl(
|
|
740
|
+
`ALTER TABLE "${tableName}" ADD COLUMN IF NOT EXISTS "claim_token" text;`
|
|
668
741
|
);
|
|
669
742
|
},
|
|
670
743
|
async claimIndexMaterialization(params) {
|
|
@@ -705,26 +778,26 @@ function createPostgresBackend(db, options = {}) {
|
|
|
705
778
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.indexName, indexName));
|
|
706
779
|
const row = rows[0];
|
|
707
780
|
if (row === void 0) return void 0;
|
|
708
|
-
return
|
|
781
|
+
return chunkMUK4BU7K_cjs.mapMaterializationRow(row, chunkMUK4BU7K_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.decode);
|
|
709
782
|
},
|
|
710
783
|
async getIndexMaterializations(statusKeys) {
|
|
711
784
|
if (statusKeys.length === 0) return [];
|
|
712
785
|
const t = tables2.indexMaterializations;
|
|
713
786
|
const rows = await db.select().from(t).where(drizzleOrm.inArray(t.indexName, [...statusKeys]));
|
|
714
787
|
return rows.map(
|
|
715
|
-
(row) =>
|
|
788
|
+
(row) => chunkMUK4BU7K_cjs.mapMaterializationRow(row, chunkMUK4BU7K_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.decode)
|
|
716
789
|
);
|
|
717
790
|
},
|
|
718
791
|
async recordIndexMaterialization(params) {
|
|
719
792
|
const t = tables2.indexMaterializations;
|
|
720
793
|
await db.insert(t).values(
|
|
721
|
-
|
|
794
|
+
chunkMUK4BU7K_cjs.buildMaterializationInsertValues(
|
|
722
795
|
params,
|
|
723
|
-
|
|
796
|
+
chunkMUK4BU7K_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.encode
|
|
724
797
|
)
|
|
725
798
|
).onConflictDoUpdate({
|
|
726
799
|
target: t.indexName,
|
|
727
|
-
set:
|
|
800
|
+
set: chunkMUK4BU7K_cjs.buildMaterializationOnConflictSet(params.materializedAt)
|
|
728
801
|
});
|
|
729
802
|
},
|
|
730
803
|
async ensureContributionMaterializationsTable() {
|
|
@@ -746,26 +819,26 @@ function createPostgresBackend(db, options = {}) {
|
|
|
746
819
|
const t = tables2.kindRemovals;
|
|
747
820
|
const rows = await db.select().from(t).where(drizzleOrm.and(drizzleOrm.eq(t.graphId, graphId), drizzleOrm.isNull(t.removedAt)));
|
|
748
821
|
return rows.map(
|
|
749
|
-
(row) =>
|
|
822
|
+
(row) => chunkMUK4BU7K_cjs.mapKindRemovalRow(row, chunkMUK4BU7K_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
750
823
|
);
|
|
751
824
|
},
|
|
752
825
|
async getAllKindRemovals(graphId) {
|
|
753
826
|
const t = tables2.kindRemovals;
|
|
754
827
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
|
|
755
828
|
return rows.map(
|
|
756
|
-
(row) =>
|
|
829
|
+
(row) => chunkMUK4BU7K_cjs.mapKindRemovalRow(row, chunkMUK4BU7K_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
757
830
|
);
|
|
758
831
|
},
|
|
759
832
|
async recordKindRemoval(params) {
|
|
760
833
|
const t = tables2.kindRemovals;
|
|
761
834
|
await db.insert(t).values(
|
|
762
|
-
|
|
835
|
+
chunkMUK4BU7K_cjs.buildKindRemovalInsertValues(
|
|
763
836
|
params,
|
|
764
|
-
|
|
837
|
+
chunkMUK4BU7K_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.encode
|
|
765
838
|
)
|
|
766
839
|
).onConflictDoUpdate({
|
|
767
840
|
target: [t.graphId, t.kindName, t.entity, t.schemaVersion],
|
|
768
|
-
set:
|
|
841
|
+
set: chunkMUK4BU7K_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
|
|
769
842
|
});
|
|
770
843
|
},
|
|
771
844
|
async ensureReconciliationMarkersTable() {
|
|
@@ -788,6 +861,16 @@ function createPostgresBackend(db, options = {}) {
|
|
|
788
861
|
async repairContributions(graphId, vectorSlots) {
|
|
789
862
|
return contributionMaterializer.repairContributions(graphId, vectorSlots);
|
|
790
863
|
},
|
|
864
|
+
async probeContributions(graphId, vectorSlots) {
|
|
865
|
+
return contributionMaterializer.probeContributions(graphId, vectorSlots);
|
|
866
|
+
},
|
|
867
|
+
async rebuildContribution(graphId, scope, repopulate) {
|
|
868
|
+
return contributionMaterializer.rebuildContribution(
|
|
869
|
+
graphId,
|
|
870
|
+
scope,
|
|
871
|
+
repopulate
|
|
872
|
+
);
|
|
873
|
+
},
|
|
791
874
|
// Vector counterparts of the runtime-contribution methods. Present
|
|
792
875
|
// only when a vector strategy is wired (omitted under `vector: false`,
|
|
793
876
|
// mirroring the embedding/search methods), so a no-vector backend
|
|
@@ -826,16 +909,16 @@ function createPostgresBackend(db, options = {}) {
|
|
|
826
909
|
await db.execute(statement);
|
|
827
910
|
}
|
|
828
911
|
const tablePresence = await Promise.all(
|
|
829
|
-
|
|
912
|
+
guardedAnalyzeTables.map(async (tableName) => ({
|
|
830
913
|
tableName,
|
|
831
|
-
exists: await
|
|
914
|
+
exists: await guardedTableExists(tableName)
|
|
832
915
|
}))
|
|
833
916
|
);
|
|
834
|
-
const
|
|
835
|
-
for (const tableName of
|
|
917
|
+
const presentGuardedTables = tablePresence.filter((entry) => entry.exists).map((entry) => entry.tableName);
|
|
918
|
+
for (const tableName of presentGuardedTables) {
|
|
836
919
|
await db.execute(
|
|
837
|
-
|
|
838
|
-
|
|
920
|
+
chunkU5SON7R2_cjs.toDrizzleSql(
|
|
921
|
+
chunkVCRRKBLN_cjs.sql`ANALYZE (SKIP_LOCKED) ${chunkVCRRKBLN_cjs.sql.identifier(tableName)}`,
|
|
839
922
|
"postgres"
|
|
840
923
|
)
|
|
841
924
|
);
|
|
@@ -850,9 +933,15 @@ function createPostgresBackend(db, options = {}) {
|
|
|
850
933
|
async commitSchemaVersionIfKindsEmpty(params, probes) {
|
|
851
934
|
return runSchemaWriteTransaction(
|
|
852
935
|
params.graphId,
|
|
853
|
-
(target) =>
|
|
936
|
+
(target) => chunkMUK4BU7K_cjs.commitSchemaVersionIfKindsEmpty(target, params, probes)
|
|
854
937
|
);
|
|
855
938
|
},
|
|
939
|
+
async commitSchemaVersionWithPreflight(params, preflight) {
|
|
940
|
+
return runSchemaWriteTransaction(params.graphId, async (target) => {
|
|
941
|
+
await preflight(target);
|
|
942
|
+
return target.commitSchemaVersion(params);
|
|
943
|
+
});
|
|
944
|
+
},
|
|
856
945
|
async setActiveVersion(params) {
|
|
857
946
|
await runSchemaWriteTransaction(
|
|
858
947
|
params.graphId,
|
|
@@ -866,9 +955,9 @@ function createPostgresBackend(db, options = {}) {
|
|
|
866
955
|
return backend.transactionWithNative((tx) => fn(tx), options2);
|
|
867
956
|
},
|
|
868
957
|
async transactionWithNative(fn, options2) {
|
|
869
|
-
const temporaryWrites = options2?.temporaryWrites ===
|
|
958
|
+
const temporaryWrites = options2?.temporaryWrites === chunkXBYVV3MP_cjs.INTERNAL_TEMPORARY_WRITES;
|
|
870
959
|
if (temporaryWrites && options2.accessMode !== "read_only") {
|
|
871
|
-
throw new
|
|
960
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
872
961
|
"Temporary-write transactions must be semantically read-only.",
|
|
873
962
|
{ dialect: "postgres" }
|
|
874
963
|
);
|
|
@@ -878,7 +967,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
878
967
|
isolationLevel: options2.isolationLevel.replace("_", " ")
|
|
879
968
|
},
|
|
880
969
|
...options2.accessMode === void 0 && !temporaryWrites ? {} : {
|
|
881
|
-
accessMode: temporaryWrites ? "read write" :
|
|
970
|
+
accessMode: temporaryWrites ? "read write" : chunkN66HCGCY_cjs.requireDefined(options2.accessMode).replace("_", " ")
|
|
882
971
|
}
|
|
883
972
|
} : void 0;
|
|
884
973
|
return db.transaction(async (tx) => {
|
|
@@ -892,7 +981,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
892
981
|
},
|
|
893
982
|
adoptTransaction(externalTx) {
|
|
894
983
|
if (!capabilities.transactions) {
|
|
895
|
-
throw new
|
|
984
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
896
985
|
"Cross-store atomicity is unavailable on this Postgres backend: its driver does not support transactions (drizzle-orm/neon-http, Cloudflare D1). Adopting an external transaction here would let the caller's relational write commit with no way to roll back the graph write. Use a node-postgres or neon-serverless (Pool/WebSocket) connection for cross-store transactions.",
|
|
897
986
|
{
|
|
898
987
|
backend: "postgres",
|
|
@@ -901,7 +990,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
901
990
|
}
|
|
902
991
|
);
|
|
903
992
|
}
|
|
904
|
-
|
|
993
|
+
chunkMUK4BU7K_cjs.assertAdoptedDialect(
|
|
905
994
|
externalTx,
|
|
906
995
|
pgCore.PgTransaction,
|
|
907
996
|
"postgres"
|
|
@@ -911,8 +1000,42 @@ function createPostgresBackend(db, options = {}) {
|
|
|
911
1000
|
async close() {
|
|
912
1001
|
}
|
|
913
1002
|
};
|
|
1003
|
+
if (serializedClient !== void 0) {
|
|
1004
|
+
chunkXBYVV3MP_cjs.markSerializedTransactionResource(backend, serializedClient);
|
|
1005
|
+
}
|
|
914
1006
|
return backend;
|
|
915
1007
|
}
|
|
1008
|
+
function getSerializedPostgresClient(db) {
|
|
1009
|
+
const pgliteClient = getPgliteClient(db);
|
|
1010
|
+
if (pgliteClient !== void 0) return pgliteClient;
|
|
1011
|
+
const client = db.$client;
|
|
1012
|
+
if (typeof client === "function") {
|
|
1013
|
+
return isSingleConnectionCallablePgClient(client) ? client : void 0;
|
|
1014
|
+
}
|
|
1015
|
+
if (typeof client !== "object" || client === null) return void 0;
|
|
1016
|
+
const candidate = client;
|
|
1017
|
+
if (!hasFunctionProperty(candidate, "query")) return void 0;
|
|
1018
|
+
if (isSingleConnectionPgPool(candidate)) return client;
|
|
1019
|
+
return isBarePgClient(candidate) ? client : void 0;
|
|
1020
|
+
}
|
|
1021
|
+
function isSingleConnectionPgPool(candidate) {
|
|
1022
|
+
const options = candidate["options"];
|
|
1023
|
+
if (typeof options !== "object" || options === null) return false;
|
|
1024
|
+
return options["max"] === 1;
|
|
1025
|
+
}
|
|
1026
|
+
function isSingleConnectionCallablePgClient(client) {
|
|
1027
|
+
if (client === void 0 || client === null) return false;
|
|
1028
|
+
const options = client["options"];
|
|
1029
|
+
if (!isPostgresJsClient(client)) return false;
|
|
1030
|
+
if (typeof options !== "object" || options === null) return false;
|
|
1031
|
+
return options["max"] === 1;
|
|
1032
|
+
}
|
|
1033
|
+
function isBarePgClient(candidate) {
|
|
1034
|
+
if (candidate["options"] !== void 0 || candidate["totalCount"] !== void 0 || candidate["idleCount"] !== void 0 || candidate["waitingCount"] !== void 0) {
|
|
1035
|
+
return false;
|
|
1036
|
+
}
|
|
1037
|
+
return hasFunctionProperty(candidate, "connect") && hasFunctionProperty(candidate, "end") && hasFunctionProperty(candidate, "escapeIdentifier");
|
|
1038
|
+
}
|
|
916
1039
|
function createIterativeScanProbe() {
|
|
917
1040
|
let probe;
|
|
918
1041
|
let warned = false;
|
|
@@ -971,31 +1094,24 @@ function createPostgresOperationBackend(options) {
|
|
|
971
1094
|
async function execRun(query) {
|
|
972
1095
|
await executionAdapter.execute(query);
|
|
973
1096
|
}
|
|
974
|
-
let efSearchUnsupportedWarned = false;
|
|
975
|
-
function warnEfSearchUnsupported() {
|
|
976
|
-
if (efSearchUnsupportedWarned) return;
|
|
977
|
-
efSearchUnsupportedWarned = true;
|
|
978
|
-
if (typeof console === "undefined" || typeof console.warn !== "function") {
|
|
979
|
-
return;
|
|
980
|
-
}
|
|
981
|
-
console.warn(
|
|
982
|
-
"[typegraph] efSearch (hnsw.ef_search override) was ignored: this Postgres backend has transactions disabled (e.g. drizzle-orm/neon-http), and SET LOCAL needs a transaction to scope the override. Use a transactional driver (node-postgres / neon-serverless / postgres-js) to apply efSearch."
|
|
983
|
-
);
|
|
984
|
-
}
|
|
985
1097
|
function pgvectorIterativeScanSupported() {
|
|
986
1098
|
return iterativeScanProbe.isSupported(execAll);
|
|
987
1099
|
}
|
|
988
1100
|
async function vectorSearchGucOverrides(params) {
|
|
989
1101
|
const overrides = [];
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1102
|
+
const efSearchParameter = chunk4UGOKMI5_cjs.resolveEfSearchOverride({
|
|
1103
|
+
efSearch: params.efSearch,
|
|
1104
|
+
indexType: params.indexType,
|
|
1105
|
+
tuning: chunk4UGOKMI5_cjs.vectorSearchFrontierTuning(vectorStrategy),
|
|
1106
|
+
transactions: capabilities.transactions,
|
|
1107
|
+
dialect: "PostgreSQL",
|
|
1108
|
+
engine: vectorStrategy?.name ?? "this backend"
|
|
1109
|
+
});
|
|
1110
|
+
if (efSearchParameter !== void 0) {
|
|
1111
|
+
overrides.push({
|
|
1112
|
+
name: efSearchParameter,
|
|
1113
|
+
value: String(params.efSearch)
|
|
1114
|
+
});
|
|
999
1115
|
}
|
|
1000
1116
|
if (params.indexType === "hnsw" && capabilities.transactions && await pgvectorIterativeScanSupported()) {
|
|
1001
1117
|
overrides.push({ name: "hnsw.iterative_scan", value: "strict_order" });
|
|
@@ -1011,7 +1127,7 @@ function createPostgresOperationBackend(options) {
|
|
|
1011
1127
|
async function runVectorSearchGucGroup(overrides, query) {
|
|
1012
1128
|
const runExclusive = executionAdapter.runExclusive;
|
|
1013
1129
|
if (runExclusive === void 0) {
|
|
1014
|
-
throw new
|
|
1130
|
+
throw new chunkNI72YOJB_cjs.CompilerInvariantError(
|
|
1015
1131
|
"A transaction-scoped Postgres backend must expose runExclusive; its execution adapter was not wrapped by createSerialExecutionAdapter."
|
|
1016
1132
|
);
|
|
1017
1133
|
}
|
|
@@ -1055,17 +1171,17 @@ function createPostgresOperationBackend(options) {
|
|
|
1055
1171
|
});
|
|
1056
1172
|
}
|
|
1057
1173
|
const batchConfig = computePostgresBatchChunkSizes(
|
|
1058
|
-
capabilities.maxBindParameters ??
|
|
1174
|
+
capabilities.maxBindParameters ?? chunkXBYVV3MP_cjs.POSTGRES_MAX_BIND_PARAMETERS
|
|
1059
1175
|
);
|
|
1060
|
-
const commonBackend =
|
|
1176
|
+
const commonBackend = chunkMUK4BU7K_cjs.createCommonOperationBackend({
|
|
1061
1177
|
batchConfig,
|
|
1062
1178
|
execution: {
|
|
1063
1179
|
execAll,
|
|
1064
1180
|
execGet,
|
|
1065
1181
|
execRun
|
|
1066
1182
|
},
|
|
1067
|
-
nowIso:
|
|
1068
|
-
maxBindParameters: capabilities.maxBindParameters ??
|
|
1183
|
+
nowIso: chunkYAAM3M2S_cjs.nowIso,
|
|
1184
|
+
maxBindParameters: capabilities.maxBindParameters ?? chunkXBYVV3MP_cjs.POSTGRES_MAX_BIND_PARAMETERS,
|
|
1069
1185
|
operationStrategy,
|
|
1070
1186
|
rowMappers: {
|
|
1071
1187
|
toEdgeRow,
|
|
@@ -1083,28 +1199,28 @@ function createPostgresOperationBackend(options) {
|
|
|
1083
1199
|
};
|
|
1084
1200
|
const vectorEmbeddingMethods = vectorStrategy === void 0 ? {} : {
|
|
1085
1201
|
async upsertEmbedding(params) {
|
|
1086
|
-
const slot =
|
|
1202
|
+
const slot = chunkMUK4BU7K_cjs.vectorSlotFromParams(params);
|
|
1087
1203
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
1088
|
-
const statements = vectorStrategy.buildUpsert(slot, params,
|
|
1204
|
+
const statements = vectorStrategy.buildUpsert(slot, params, chunkYAAM3M2S_cjs.nowIso());
|
|
1089
1205
|
try {
|
|
1090
1206
|
for (const statement of statements) {
|
|
1091
1207
|
await execRun(statement);
|
|
1092
1208
|
}
|
|
1093
1209
|
} catch (error) {
|
|
1094
|
-
throw
|
|
1210
|
+
throw chunkMUK4BU7K_cjs.mapVectorWriteError(error, params);
|
|
1095
1211
|
}
|
|
1096
1212
|
},
|
|
1097
1213
|
async upsertEmbeddingBatch(params) {
|
|
1098
1214
|
if (params.rows.length === 0) return;
|
|
1099
|
-
const slot =
|
|
1215
|
+
const slot = chunkMUK4BU7K_cjs.vectorSlotFromParams(params);
|
|
1100
1216
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
1101
1217
|
const rowsById = new Map(
|
|
1102
1218
|
params.rows.map((row) => [row.nodeId, row])
|
|
1103
1219
|
);
|
|
1104
1220
|
const rows = [...rowsById.values()];
|
|
1105
|
-
const timestamp =
|
|
1221
|
+
const timestamp = chunkYAAM3M2S_cjs.nowIso();
|
|
1106
1222
|
try {
|
|
1107
|
-
for (const chunk2 of
|
|
1223
|
+
for (const chunk2 of chunkBSFJMMV3_cjs.chunk(
|
|
1108
1224
|
rows,
|
|
1109
1225
|
batchConfig.embeddingUpsertBatchSize
|
|
1110
1226
|
)) {
|
|
@@ -1133,11 +1249,11 @@ function createPostgresOperationBackend(options) {
|
|
|
1133
1249
|
}
|
|
1134
1250
|
}
|
|
1135
1251
|
} catch (error) {
|
|
1136
|
-
throw
|
|
1252
|
+
throw chunkMUK4BU7K_cjs.mapVectorWriteError(error, params);
|
|
1137
1253
|
}
|
|
1138
1254
|
},
|
|
1139
1255
|
async deleteEmbedding(params) {
|
|
1140
|
-
const slot =
|
|
1256
|
+
const slot = chunkMUK4BU7K_cjs.vectorSlotFromParams(params);
|
|
1141
1257
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
1142
1258
|
const statements = vectorStrategy.buildDelete(slot, params);
|
|
1143
1259
|
for (const statement of statements) {
|
|
@@ -1146,9 +1262,9 @@ function createPostgresOperationBackend(options) {
|
|
|
1146
1262
|
},
|
|
1147
1263
|
async deleteEmbeddingBatch(params) {
|
|
1148
1264
|
if (params.nodeIds.length === 0) return;
|
|
1149
|
-
const slot =
|
|
1265
|
+
const slot = chunkMUK4BU7K_cjs.vectorSlotFromParams(params);
|
|
1150
1266
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
1151
|
-
for (const nodeIds of
|
|
1267
|
+
for (const nodeIds of chunkBSFJMMV3_cjs.chunk(
|
|
1152
1268
|
[...new Set(params.nodeIds)],
|
|
1153
1269
|
batchConfig.embeddingUpsertBatchSize
|
|
1154
1270
|
)) {
|
|
@@ -1160,19 +1276,19 @@ function createPostgresOperationBackend(options) {
|
|
|
1160
1276
|
}
|
|
1161
1277
|
},
|
|
1162
1278
|
async vectorSearch(params) {
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
const slot =
|
|
1279
|
+
chunk4UGOKMI5_cjs.assertVectorSearchLimit(params.limit);
|
|
1280
|
+
chunkMXJDTH5B_cjs.assertPgvectorEfSearch(params.efSearch);
|
|
1281
|
+
const slot = chunkMUK4BU7K_cjs.vectorSlotFromParams(params);
|
|
1166
1282
|
const query = vectorStrategy.buildSearch(
|
|
1167
1283
|
slot,
|
|
1168
1284
|
params,
|
|
1169
1285
|
// Store-compiled candidates (predicates + subclass + currency)
|
|
1170
1286
|
// take precedence; the live-node default covers direct backend use.
|
|
1171
|
-
params.candidates ??
|
|
1287
|
+
params.candidates ?? chunkMUK4BU7K_cjs.buildLiveNodeCandidates(
|
|
1172
1288
|
tableNames.nodes,
|
|
1173
1289
|
params.graphId,
|
|
1174
1290
|
params.nodeKind,
|
|
1175
|
-
|
|
1291
|
+
chunkYAAM3M2S_cjs.nowIso()
|
|
1176
1292
|
)
|
|
1177
1293
|
);
|
|
1178
1294
|
const gucOverrides = await vectorSearchGucOverrides(params);
|
|
@@ -1180,7 +1296,7 @@ function createPostgresOperationBackend(options) {
|
|
|
1180
1296
|
try {
|
|
1181
1297
|
rows = await runVectorSearch(gucOverrides, query);
|
|
1182
1298
|
} catch (error) {
|
|
1183
|
-
throw
|
|
1299
|
+
throw chunkMUK4BU7K_cjs.mapVectorWriteError(error, params);
|
|
1184
1300
|
}
|
|
1185
1301
|
return rows.map((row) => ({
|
|
1186
1302
|
nodeId: row.node_id,
|
|
@@ -1192,10 +1308,10 @@ function createPostgresOperationBackend(options) {
|
|
|
1192
1308
|
// multi-statement fallback by simply not exposing the member.
|
|
1193
1309
|
...capabilities.windowFunctions ? {
|
|
1194
1310
|
async hybridSearch(params) {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
const slot =
|
|
1311
|
+
chunk4UGOKMI5_cjs.assertVectorSearchLimit(params.limit);
|
|
1312
|
+
chunk4UGOKMI5_cjs.assertVectorSearchLimit(params.vector.k);
|
|
1313
|
+
chunkMXJDTH5B_cjs.assertPgvectorEfSearch(params.vector.efSearch);
|
|
1314
|
+
const slot = chunkMUK4BU7K_cjs.vectorSlotFromParams({
|
|
1199
1315
|
graphId: params.graphId,
|
|
1200
1316
|
nodeKind: params.nodeKind,
|
|
1201
1317
|
fieldPath: params.vector.fieldPath,
|
|
@@ -1203,11 +1319,11 @@ function createPostgresOperationBackend(options) {
|
|
|
1203
1319
|
metric: params.vector.metric,
|
|
1204
1320
|
indexType: params.vector.indexType
|
|
1205
1321
|
});
|
|
1206
|
-
const candidates = params.candidates ??
|
|
1322
|
+
const candidates = params.candidates ?? chunkMUK4BU7K_cjs.buildLiveNodeCandidates(
|
|
1207
1323
|
tableNames.nodes,
|
|
1208
1324
|
params.graphId,
|
|
1209
1325
|
params.nodeKind,
|
|
1210
|
-
|
|
1326
|
+
chunkYAAM3M2S_cjs.nowIso()
|
|
1211
1327
|
);
|
|
1212
1328
|
const vectorParams = {
|
|
1213
1329
|
graphId: params.graphId,
|
|
@@ -1223,11 +1339,11 @@ function createPostgresOperationBackend(options) {
|
|
|
1223
1339
|
const vectorSql = vectorStrategy.buildSearch(
|
|
1224
1340
|
slot,
|
|
1225
1341
|
vectorParams,
|
|
1226
|
-
|
|
1342
|
+
chunkVCRRKBLN_cjs.sql.raw("SELECT node_id FROM tg_hybrid_cand")
|
|
1227
1343
|
);
|
|
1228
1344
|
const statement = operationStrategy.buildHybridSearch(
|
|
1229
1345
|
{ ...params, candidates },
|
|
1230
|
-
|
|
1346
|
+
chunkU5SON7R2_cjs.toDrizzleSql(vectorSql, "postgres"),
|
|
1231
1347
|
params.vector.metric === "cosine"
|
|
1232
1348
|
);
|
|
1233
1349
|
const gucOverrides = await vectorSearchGucOverrides({
|
|
@@ -1241,16 +1357,42 @@ function createPostgresOperationBackend(options) {
|
|
|
1241
1357
|
statement
|
|
1242
1358
|
);
|
|
1243
1359
|
} catch (error) {
|
|
1244
|
-
throw
|
|
1360
|
+
throw chunkMUK4BU7K_cjs.mapVectorWriteError(error, vectorParams);
|
|
1245
1361
|
}
|
|
1246
|
-
return raw.map((row) =>
|
|
1362
|
+
return raw.map((row) => chunkMUK4BU7K_cjs.mapHybridSearchRow(row, toNodeRow));
|
|
1247
1363
|
}
|
|
1248
1364
|
} : {}
|
|
1249
1365
|
};
|
|
1366
|
+
async function lockActiveSchemaVersion(graphId) {
|
|
1367
|
+
const active = await execGet(drizzleOrm.sql`
|
|
1368
|
+
SELECT ${schemaVersionsTable.version} AS version
|
|
1369
|
+
FROM ${schemaVersionsTable}
|
|
1370
|
+
WHERE ${schemaVersionsTable.graphId} = ${graphId}
|
|
1371
|
+
AND ${schemaVersionsTable.isActive} = TRUE
|
|
1372
|
+
FOR SHARE
|
|
1373
|
+
`);
|
|
1374
|
+
return active?.version;
|
|
1375
|
+
}
|
|
1250
1376
|
const operationBackend = {
|
|
1251
1377
|
...commonBackend,
|
|
1252
1378
|
...executeRawMethod,
|
|
1253
1379
|
...vectorEmbeddingMethods,
|
|
1380
|
+
/**
|
|
1381
|
+
* Transaction-scoped contribution marker stamp. Present so the
|
|
1382
|
+
* destructive rebuild can commit its marker with the DDL that
|
|
1383
|
+
* produced it; without it the stamp would land outside the
|
|
1384
|
+
* transaction and could survive a rolled-back drop.
|
|
1385
|
+
*
|
|
1386
|
+
* States the row outright rather than reusing the top-level upsert,
|
|
1387
|
+
* whose `materialized_at` COALESCE preserves an earlier success so a
|
|
1388
|
+
* failed re-attempt cannot erase it. A completed rebuild replaced the
|
|
1389
|
+
* storage, so the recorded timestamp must be the rebuild's.
|
|
1390
|
+
*/
|
|
1391
|
+
async recordContributionMaterialization(params) {
|
|
1392
|
+
await execRun(
|
|
1393
|
+
operationStrategy.buildInsertContributionMaterialization(params)
|
|
1394
|
+
);
|
|
1395
|
+
},
|
|
1254
1396
|
async deleteSchemaVectorSlotContribution(slot) {
|
|
1255
1397
|
if (vectorStrategy === void 0) return;
|
|
1256
1398
|
for (const contribution of vectorStrategy.ownedTables(slot)) {
|
|
@@ -1272,7 +1414,7 @@ function createPostgresOperationBackend(options) {
|
|
|
1272
1414
|
tableNames,
|
|
1273
1415
|
async lockSchemaVersionForWrite(params) {
|
|
1274
1416
|
if (!transactionScoped) {
|
|
1275
|
-
throw new
|
|
1417
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
1276
1418
|
"The schema write fence requires an explicit PostgreSQL transaction.",
|
|
1277
1419
|
{
|
|
1278
1420
|
code: "SCHEMA_WRITE_FENCE_TRANSACTION_REQUIRED",
|
|
@@ -1280,23 +1422,26 @@ function createPostgresOperationBackend(options) {
|
|
|
1280
1422
|
}
|
|
1281
1423
|
);
|
|
1282
1424
|
}
|
|
1283
|
-
const
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1425
|
+
const locked = await lockActiveSchemaVersion(params.graphId);
|
|
1426
|
+
if (locked !== void 0) {
|
|
1427
|
+
chunkMUK4BU7K_cjs.assertActiveSchemaVersion(
|
|
1428
|
+
params.graphId,
|
|
1429
|
+
params.expectedVersion,
|
|
1430
|
+
locked
|
|
1431
|
+
);
|
|
1432
|
+
return;
|
|
1433
|
+
}
|
|
1434
|
+
const settled = await commonBackend.getActiveSchema(params.graphId);
|
|
1435
|
+
throw new chunkNI72YOJB_cjs.StaleVersionError({
|
|
1436
|
+
graphId: params.graphId,
|
|
1437
|
+
expected: params.expectedVersion,
|
|
1438
|
+
actual: settled?.version ?? 0
|
|
1439
|
+
});
|
|
1295
1440
|
},
|
|
1296
1441
|
// === Vector Index Operations ===
|
|
1297
1442
|
async createVectorIndex(params) {
|
|
1298
1443
|
if (vectorStrategy === void 0) return;
|
|
1299
|
-
const slot =
|
|
1444
|
+
const slot = chunkMUK4BU7K_cjs.vectorSlotFromCreateIndexParams(params);
|
|
1300
1445
|
await contributionMaterializer.ensureVectorSlot(slot);
|
|
1301
1446
|
const indexStatement = vectorStrategy.buildCreateIndex?.(slot, {
|
|
1302
1447
|
concurrent: params.concurrent === true
|
|
@@ -1305,12 +1450,12 @@ function createPostgresOperationBackend(options) {
|
|
|
1305
1450
|
try {
|
|
1306
1451
|
await execRun(indexStatement);
|
|
1307
1452
|
} catch (error) {
|
|
1308
|
-
if (!
|
|
1453
|
+
if (!chunkBSFJMMV3_cjs.isInsufficientResourcesError(error)) throw error;
|
|
1309
1454
|
const dropStatement = vectorStrategy.buildDropIndex?.(slot);
|
|
1310
1455
|
if (dropStatement !== void 0) {
|
|
1311
1456
|
await execRun(dropStatement);
|
|
1312
1457
|
}
|
|
1313
|
-
const table =
|
|
1458
|
+
const table = chunkVCRRKBLN_cjs.sql.identifier(
|
|
1314
1459
|
vectorStrategy.tableName(
|
|
1315
1460
|
slot.graphId,
|
|
1316
1461
|
slot.nodeKind,
|
|
@@ -1318,13 +1463,13 @@ function createPostgresOperationBackend(options) {
|
|
|
1318
1463
|
)
|
|
1319
1464
|
);
|
|
1320
1465
|
await execRun(
|
|
1321
|
-
|
|
1466
|
+
chunkVCRRKBLN_cjs.sql`ALTER TABLE ${table} SET (parallel_workers = 0)`
|
|
1322
1467
|
);
|
|
1323
1468
|
try {
|
|
1324
1469
|
await execRun(indexStatement);
|
|
1325
1470
|
} finally {
|
|
1326
1471
|
await execRun(
|
|
1327
|
-
|
|
1472
|
+
chunkVCRRKBLN_cjs.sql`ALTER TABLE ${table} RESET (parallel_workers)`
|
|
1328
1473
|
);
|
|
1329
1474
|
}
|
|
1330
1475
|
}
|
|
@@ -1332,7 +1477,7 @@ function createPostgresOperationBackend(options) {
|
|
|
1332
1477
|
},
|
|
1333
1478
|
// === Fulltext Operations ===
|
|
1334
1479
|
async upsertFulltext(params) {
|
|
1335
|
-
const timestamp =
|
|
1480
|
+
const timestamp = chunkYAAM3M2S_cjs.nowIso();
|
|
1336
1481
|
const statements = operationStrategy.buildUpsertFulltext(
|
|
1337
1482
|
params,
|
|
1338
1483
|
timestamp
|
|
@@ -1349,8 +1494,8 @@ function createPostgresOperationBackend(options) {
|
|
|
1349
1494
|
},
|
|
1350
1495
|
async upsertFulltextBatch(params) {
|
|
1351
1496
|
if (params.rows.length === 0) return;
|
|
1352
|
-
const timestamp =
|
|
1353
|
-
for (const rows of
|
|
1497
|
+
const timestamp = chunkYAAM3M2S_cjs.nowIso();
|
|
1498
|
+
for (const rows of chunkBSFJMMV3_cjs.chunk(
|
|
1354
1499
|
params.rows,
|
|
1355
1500
|
batchConfig.fulltextUpsertBatchSize
|
|
1356
1501
|
)) {
|
|
@@ -1365,7 +1510,7 @@ function createPostgresOperationBackend(options) {
|
|
|
1365
1510
|
},
|
|
1366
1511
|
async deleteFulltextBatch(params) {
|
|
1367
1512
|
if (params.nodeIds.length === 0) return;
|
|
1368
|
-
for (const nodeIds of
|
|
1513
|
+
for (const nodeIds of chunkBSFJMMV3_cjs.chunk(
|
|
1369
1514
|
params.nodeIds,
|
|
1370
1515
|
batchConfig.fulltextDeleteChunkSize
|
|
1371
1516
|
)) {
|
|
@@ -1383,25 +1528,25 @@ function createPostgresOperationBackend(options) {
|
|
|
1383
1528
|
const rows = await execAll(query);
|
|
1384
1529
|
return rows.map((row, index) => ({
|
|
1385
1530
|
nodeId: row.node_id,
|
|
1386
|
-
score:
|
|
1531
|
+
score: chunkYAAM3M2S_cjs.coerceNumericScore(row.score),
|
|
1387
1532
|
rank: index + 1,
|
|
1388
1533
|
...row.snippet === null ? {} : { snippet: row.snippet }
|
|
1389
1534
|
}));
|
|
1390
1535
|
},
|
|
1391
1536
|
async dropVectorIndex(params) {
|
|
1392
1537
|
if (vectorStrategy === void 0) return;
|
|
1393
|
-
const slot =
|
|
1538
|
+
const slot = chunkMUK4BU7K_cjs.vectorSlotFromDropIndexParams(params);
|
|
1394
1539
|
const dropStatement = vectorStrategy.buildDropIndex?.(slot);
|
|
1395
1540
|
if (dropStatement === void 0) return;
|
|
1396
1541
|
try {
|
|
1397
1542
|
await execRun(dropStatement);
|
|
1398
1543
|
} catch (error) {
|
|
1399
|
-
if (!
|
|
1544
|
+
if (!chunkBSFJMMV3_cjs.isMissingTableError(error)) throw error;
|
|
1400
1545
|
}
|
|
1401
1546
|
},
|
|
1402
1547
|
// === Query Execution ===
|
|
1403
1548
|
async execute(query) {
|
|
1404
|
-
const annTypes =
|
|
1549
|
+
const annTypes = chunkVCRRKBLN_cjs.isSqlFragment(query) ? chunkVCRRKBLN_cjs.annIndexScanTypes(query) : void 0;
|
|
1405
1550
|
if (annTypes !== void 0 && vectorStrategy !== void 0) {
|
|
1406
1551
|
const overrides = [];
|
|
1407
1552
|
for (const indexType of annTypes) {
|
|
@@ -1442,5 +1587,5 @@ function createTransactionBackend(options) {
|
|
|
1442
1587
|
}
|
|
1443
1588
|
|
|
1444
1589
|
exports.createPostgresBackend = createPostgresBackend;
|
|
1445
|
-
//# sourceMappingURL=chunk-
|
|
1446
|
-
//# sourceMappingURL=chunk-
|
|
1590
|
+
//# sourceMappingURL=chunk-TQR4KBY2.cjs.map
|
|
1591
|
+
//# sourceMappingURL=chunk-TQR4KBY2.cjs.map
|