@nicia-ai/typegraph 0.45.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/drizzle/indexes.cjs +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-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-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-UCQ3BFSY.cjs → chunk-7GT72YHH.cjs} +682 -332
- package/dist/chunk-7GT72YHH.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-ID4WXTKL.js → chunk-7Z5OR7KO.js} +2360 -605
- package/dist/chunk-7Z5OR7KO.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-CNV4TXJG.js +58 -0
- package/dist/chunk-CNV4TXJG.js.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-DLNROMQ7.js +306 -0
- package/dist/chunk-DLNROMQ7.js.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-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-JIVMTW7W.js +3393 -0
- package/dist/chunk-JIVMTW7W.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-D54WH24V.cjs → chunk-LBJKZXDE.cjs} +115 -13
- package/dist/chunk-LBJKZXDE.cjs.map +1 -0
- package/dist/{chunk-4MEWSUVM.cjs → chunk-M4BDU5RX.cjs} +12 -12
- package/dist/chunk-M4BDU5RX.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-ZI6VQSZA.cjs → chunk-N3257XE6.cjs} +724 -577
- package/dist/chunk-N3257XE6.cjs.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-YMTXMPV6.js → chunk-NMWDXFPH.js} +4 -4
- package/dist/{chunk-YMTXMPV6.js.map → chunk-NMWDXFPH.js.map} +1 -1
- package/dist/{chunk-TKORQCG4.js → chunk-NQ6BRJBE.js} +386 -862
- package/dist/chunk-NQ6BRJBE.js.map +1 -0
- package/dist/chunk-OH5E5KIO.js +2057 -0
- package/dist/chunk-OH5E5KIO.js.map +1 -0
- package/dist/chunk-ONU3HIED.cjs +2082 -0
- package/dist/chunk-ONU3HIED.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-6DCB664D.js → chunk-PQBQG7IM.js} +3 -3
- package/dist/{chunk-6DCB664D.js.map → chunk-PQBQG7IM.js.map} +1 -1
- package/dist/{chunk-ACSVZPK7.cjs → chunk-PWLJ77UV.cjs} +5 -3
- package/dist/chunk-PWLJ77UV.cjs.map +1 -0
- package/dist/chunk-Q7Q4WSLJ.cjs +328 -0
- package/dist/chunk-Q7Q4WSLJ.cjs.map +1 -0
- package/dist/{chunk-FQ7ZPOTZ.js → chunk-QLRESYPU.js} +637 -493
- package/dist/chunk-QLRESYPU.js.map +1 -0
- package/dist/{chunk-Q6EDCUXV.js → chunk-QWX5YA3K.js} +554 -204
- package/dist/chunk-QWX5YA3K.js.map +1 -0
- package/dist/{chunk-5EKPX6QU.js → chunk-RJS7DECT.js} +8 -9
- package/dist/chunk-RJS7DECT.js.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-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-TTAITEPJ.cjs +755 -0
- package/dist/chunk-TTAITEPJ.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-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-WEVQJ5LH.js +736 -0
- package/dist/chunk-WEVQJ5LH.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-YOALGKRE.cjs → chunk-XDF2UPEQ.cjs} +3521 -1766
- package/dist/chunk-XDF2UPEQ.cjs.map +1 -0
- package/dist/{chunk-J7LXTUTP.cjs → chunk-XMQSEJCF.cjs} +604 -1094
- package/dist/chunk-XMQSEJCF.cjs.map +1 -0
- package/dist/chunk-XNLIZYRZ.cjs +3432 -0
- package/dist/chunk-XNLIZYRZ.cjs.map +1 -0
- package/dist/{chunk-KMXWZLQX.cjs → chunk-XNSI2FJO.cjs} +99 -100
- package/dist/chunk-XNSI2FJO.cjs.map +1 -0
- package/dist/chunk-XQSCL77R.cjs +60 -0
- package/dist/chunk-XQSCL77R.cjs.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-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-66p92IPi.d.ts → store-DawaWWjJ.d.ts} +1280 -767
- package/dist/{store-view-A85FFRnk.d.cts → store-RwTJx8LX.d.cts} +1280 -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 +1 -1
- 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,14 +1,13 @@
|
|
|
1
|
-
import { createSqliteOperationStrategy, createContributionMaterializer, gateFulltextMethods, assertTrustedImportDatabaseEmpty, suspendSqliteSecondaryIndexes, createSqliteTrustedImportSession, restoreSecondaryIndexes, analyzeImportedTables, mapContributionMaterializationRow, SQLITE_CONTRIBUTION_MAT_TIMESTAMPS, buildContributionInsertValues, buildContributionOnConflictSet, tableExistsFromRow, assertAdoptedDialect, buildKindRemovalInsertValues, SQLITE_KIND_REMOVAL_TIMESTAMPS, buildKindRemovalOnConflictSet, mapKindRemovalRow, buildMaterializationInsertValues, SQLITE_INDEX_MAT_TIMESTAMPS, buildMaterializationOnConflictSet, mapMaterializationRow, createCommonOperationBackend, vectorSlotFromParams, buildLiveNodeCandidates, mapVectorWriteError, mapHybridSearchRow, gateFulltext, FIND_EDGES_ENDPOINT_FIXED_PARAM_COUNT, EMBEDDING_UPSERT_PARAM_COUNT, vectorSlotFromDropIndexParams, vectorSlotFromCreateIndexParams, assertActiveSchemaVersion, getOrCreateLru, commitSchemaVersionIfKindsEmpty } from './chunk-
|
|
2
|
-
import { createNodeRowMapper, SQLITE_ROW_MAPPER_CONFIG, createEdgeRowMapper, createUniqueRowMapper, createSchemaVersionRowMapper, nowIso, coerceNumericScore } from './chunk-
|
|
3
|
-
import { tables2, generateSqliteCreateTableSQL, generateSqliteDDL } from './chunk-
|
|
4
|
-
import { toDrizzleSql, compileQueryWithDialect } from './chunk-
|
|
5
|
-
import { chunk } from './chunk-
|
|
6
|
-
import { normalizeGraphAnalyticsCapabilities, INTERNAL_TEMPORARY_WRITES, SQLITE_CAPABILITIES, SQLITE_MAX_BIND_PARAMETERS, MODERN_SQLITE_MAX_BIND_PARAMETERS, DURABLE_OBJECT_MAX_BIND_PARAMETERS, D1_MAX_BIND_PARAMETERS } from './chunk-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { requireDefined } from './chunk-
|
|
11
|
-
import { ConfigurationError, BackendDisposedError } from './chunk-4MB3AQAQ.js';
|
|
1
|
+
import { contributionRebuildSupported, createSqliteOperationStrategy, createContributionMaterializer, gateFulltextMethods, assertTrustedImportDatabaseEmpty, suspendSqliteSecondaryIndexes, createSqliteTrustedImportSession, restoreSecondaryIndexes, analyzeImportedTables, mapContributionMaterializationRow, SQLITE_CONTRIBUTION_MAT_TIMESTAMPS, buildContributionInsertValues, buildContributionOnConflictSet, tableExistsFromRow, assertAdoptedDialect, buildKindRemovalInsertValues, SQLITE_KIND_REMOVAL_TIMESTAMPS, buildKindRemovalOnConflictSet, mapKindRemovalRow, buildMaterializationInsertValues, SQLITE_INDEX_MAT_TIMESTAMPS, buildMaterializationOnConflictSet, mapMaterializationRow, createCommonOperationBackend, vectorSlotFromParams, buildLiveNodeCandidates, mapVectorWriteError, mapHybridSearchRow, gateFulltext, FIND_EDGES_ENDPOINT_FIXED_PARAM_COUNT, EMBEDDING_UPSERT_PARAM_COUNT, vectorSlotFromDropIndexParams, vectorSlotFromCreateIndexParams, assertActiveSchemaVersion, getOrCreateLru, commitSchemaVersionIfKindsEmpty } from './chunk-7VQXLT5O.js';
|
|
2
|
+
import { createNodeRowMapper, SQLITE_ROW_MAPPER_CONFIG, createEdgeRowMapper, createUniqueRowMapper, createSchemaVersionRowMapper, nowIso, coerceNumericScore } from './chunk-NMWDXFPH.js';
|
|
3
|
+
import { tables2, generateSqliteCreateTableSQL, generateSqliteDDL, createSqliteTables, sqliteContributions } from './chunk-5UVRGXD3.js';
|
|
4
|
+
import { toDrizzleSql, compileQueryWithDialect } from './chunk-UV3SN74I.js';
|
|
5
|
+
import { isSqliteNotAuthorizedError, isMissingTableError, chunk } from './chunk-JZUR7ZWE.js';
|
|
6
|
+
import { normalizeGraphAnalyticsCapabilities, markSerializedTransactionResource, INTERNAL_TEMPORARY_WRITES, SQLITE_CAPABILITIES, SQLITE_MAX_BIND_PARAMETERS, MODERN_SQLITE_MAX_BIND_PARAMETERS, DURABLE_OBJECT_MAX_BIND_PARAMETERS, D1_MAX_BIND_PARAMETERS } from './chunk-AKLS3BYZ.js';
|
|
7
|
+
import { fts5Strategy, buildVectorCapabilities, buildFulltextCapabilities, assertVectorSearchLimit, resolveEfSearchOverride, vectorSearchFrontierTuning } from './chunk-YDFDBE6D.js';
|
|
8
|
+
import { sql as sql$1, isSqlFragment } from './chunk-PQBQG7IM.js';
|
|
9
|
+
import { ConfigurationError, BackendDisposedError } from './chunk-J3WZ3FA2.js';
|
|
10
|
+
import { requireDefined } from './chunk-DYATYRY4.js';
|
|
12
11
|
import { getTableName, sql, eq, and, isNull, inArray } from 'drizzle-orm';
|
|
13
12
|
import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
|
14
13
|
|
|
@@ -120,11 +119,30 @@ function detectMaxBindParameters(sqliteClient, hardMaxBindParameters) {
|
|
|
120
119
|
return SQLITE_MAX_BIND_PARAMETERS;
|
|
121
120
|
}
|
|
122
121
|
}
|
|
122
|
+
function preparingClient(client) {
|
|
123
|
+
if (typeof client !== "object" || client === null) return void 0;
|
|
124
|
+
const candidate = client;
|
|
125
|
+
return typeof candidate["prepare"] === "function" ? candidate : void 0;
|
|
126
|
+
}
|
|
127
|
+
function hasMethods(client, methods) {
|
|
128
|
+
return methods.every((method) => typeof client[method] === "function");
|
|
129
|
+
}
|
|
130
|
+
function isBetterSqlite3Client(client) {
|
|
131
|
+
const candidate = preparingClient(client);
|
|
132
|
+
return candidate !== void 0 && hasMethods(candidate, ["pragma"]);
|
|
133
|
+
}
|
|
134
|
+
function isBunSqliteClient(client) {
|
|
135
|
+
const candidate = preparingClient(client);
|
|
136
|
+
return candidate !== void 0 && hasMethods(candidate, ["query", "run", "exec", "serialize"]) && typeof candidate["filename"] === "string";
|
|
137
|
+
}
|
|
138
|
+
function isSqlJsClient(client) {
|
|
139
|
+
const candidate = preparingClient(client);
|
|
140
|
+
return candidate !== void 0 && hasMethods(candidate, ["exec", "run", "export", "getRowsModified"]);
|
|
141
|
+
}
|
|
123
142
|
function resolveSqliteClient(db) {
|
|
124
143
|
const sqliteClient = db.$client;
|
|
125
|
-
if (
|
|
126
|
-
|
|
127
|
-
if (typeof candidate["prepare"] !== "function") return;
|
|
144
|
+
if (preparingClient(sqliteClient) === void 0) return;
|
|
145
|
+
if (isSqlJsClient(sqliteClient)) return;
|
|
128
146
|
return sqliteClient;
|
|
129
147
|
}
|
|
130
148
|
function getOrCreatePreparedStatement(cache, sqliteClient, sqlText, cacheMax) {
|
|
@@ -271,6 +289,12 @@ var FULLTEXT_DELETE_FIXED_PARAM_COUNT = 2;
|
|
|
271
289
|
var UNIQUE_DELETE_FIXED_PARAM_COUNT = 2;
|
|
272
290
|
var UNIQUE_INSERT_PARAM_COUNT = 6;
|
|
273
291
|
var SQLITE_ANALYZE_ROW_LIMIT = 1e3;
|
|
292
|
+
var IDENTITY_TABLE_LOGICAL_NAMES = /* @__PURE__ */ new Set([
|
|
293
|
+
"identityAssertions",
|
|
294
|
+
"recordedIdentityAssertions",
|
|
295
|
+
"identityClosure",
|
|
296
|
+
"identitySeparation"
|
|
297
|
+
]);
|
|
274
298
|
function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
275
299
|
return {
|
|
276
300
|
checkUniqueBatchChunkSize: Math.max(
|
|
@@ -582,6 +606,14 @@ function createSqliteOperationBackend(options) {
|
|
|
582
606
|
},
|
|
583
607
|
async vectorSearch(params) {
|
|
584
608
|
assertVectorSearchLimit(params.limit);
|
|
609
|
+
resolveEfSearchOverride({
|
|
610
|
+
efSearch: params.efSearch,
|
|
611
|
+
indexType: params.indexType,
|
|
612
|
+
tuning: vectorSearchFrontierTuning(vectorStrategy),
|
|
613
|
+
transactions: capabilities.transactions,
|
|
614
|
+
dialect: "SQLite",
|
|
615
|
+
engine: vectorStrategy.name
|
|
616
|
+
});
|
|
585
617
|
const slot = vectorSlotFromParams(params);
|
|
586
618
|
const query = vectorStrategy.buildSearch(
|
|
587
619
|
slot,
|
|
@@ -613,6 +645,14 @@ function createSqliteOperationBackend(options) {
|
|
|
613
645
|
async hybridSearch(params) {
|
|
614
646
|
assertVectorSearchLimit(params.limit);
|
|
615
647
|
assertVectorSearchLimit(params.vector.k);
|
|
648
|
+
resolveEfSearchOverride({
|
|
649
|
+
efSearch: params.vector.efSearch,
|
|
650
|
+
indexType: params.vector.indexType,
|
|
651
|
+
tuning: vectorSearchFrontierTuning(vectorStrategy),
|
|
652
|
+
transactions: capabilities.transactions,
|
|
653
|
+
dialect: "SQLite",
|
|
654
|
+
engine: vectorStrategy.name
|
|
655
|
+
});
|
|
616
656
|
const slot = vectorSlotFromParams({
|
|
617
657
|
graphId: params.graphId,
|
|
618
658
|
nodeKind: params.nodeKind,
|
|
@@ -662,6 +702,22 @@ function createSqliteOperationBackend(options) {
|
|
|
662
702
|
...commonBackend,
|
|
663
703
|
...executeRawMethod,
|
|
664
704
|
...vectorEmbeddingMethods,
|
|
705
|
+
/**
|
|
706
|
+
* Transaction-scoped contribution marker stamp. Present so the
|
|
707
|
+
* destructive rebuild can commit its marker with the DDL that
|
|
708
|
+
* produced it; without it the stamp would land outside the
|
|
709
|
+
* transaction and could survive a rolled-back drop.
|
|
710
|
+
*
|
|
711
|
+
* States the row outright rather than reusing the top-level upsert,
|
|
712
|
+
* whose `materialized_at` COALESCE preserves an earlier success so a
|
|
713
|
+
* failed re-attempt cannot erase it. A completed rebuild replaced the
|
|
714
|
+
* storage, so the recorded timestamp must be the rebuild's.
|
|
715
|
+
*/
|
|
716
|
+
async recordContributionMaterialization(params) {
|
|
717
|
+
await execRun(
|
|
718
|
+
operationStrategy.buildInsertContributionMaterialization(params)
|
|
719
|
+
);
|
|
720
|
+
},
|
|
665
721
|
async deleteSchemaVectorSlotContribution(slot) {
|
|
666
722
|
if (vectorStrategy === void 0) return;
|
|
667
723
|
for (const contribution of vectorStrategy.ownedTables(slot)) {
|
|
@@ -789,7 +845,22 @@ function createSqliteOperationBackend(options) {
|
|
|
789
845
|
};
|
|
790
846
|
return operationBackend;
|
|
791
847
|
}
|
|
848
|
+
function isLocalLibsqlClient(client) {
|
|
849
|
+
if (typeof client !== "object" || client === null) return false;
|
|
850
|
+
const candidate = client;
|
|
851
|
+
return candidate["protocol"] === "file" && typeof candidate["execute"] === "function" && typeof candidate["batch"] === "function" && typeof candidate["executeMultiple"] === "function";
|
|
852
|
+
}
|
|
853
|
+
function getSerializedSqliteConnection(db) {
|
|
854
|
+
const client = db.$client;
|
|
855
|
+
if (isBetterSqlite3Client(client) || isBunSqliteClient(client) || isSqlJsClient(client)) {
|
|
856
|
+
return client;
|
|
857
|
+
}
|
|
858
|
+
const storageClient = getDurableObjectStorageClient(db);
|
|
859
|
+
if (storageClient !== void 0) return storageClient;
|
|
860
|
+
return isLocalLibsqlClient(client) ? client : void 0;
|
|
861
|
+
}
|
|
792
862
|
function createSqliteBackend(db, options = {}) {
|
|
863
|
+
const serializedConnection = getSerializedSqliteConnection(db);
|
|
793
864
|
const tables2$1 = options.tables ?? tables2;
|
|
794
865
|
const fulltextStrategy = options.fulltext ?? fts5Strategy;
|
|
795
866
|
const profileHints = options.executionProfile ?? {};
|
|
@@ -797,7 +868,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
797
868
|
const { isSync, transactionMode } = executionAdapter.profile;
|
|
798
869
|
const vectorStrategy = options.vector;
|
|
799
870
|
const capabilityOverrides = options.capabilities ?? {};
|
|
800
|
-
const
|
|
871
|
+
const declaredCapabilities = normalizeGraphAnalyticsCapabilities({
|
|
801
872
|
...buildSqliteCapabilities({
|
|
802
873
|
fulltextStrategy,
|
|
803
874
|
vectorStrategy,
|
|
@@ -814,6 +885,18 @@ function createSqliteBackend(db, options = {}) {
|
|
|
814
885
|
capabilityOverrides.graphAnalytics
|
|
815
886
|
)
|
|
816
887
|
});
|
|
888
|
+
const capabilities = {
|
|
889
|
+
...declaredCapabilities,
|
|
890
|
+
contributions: {
|
|
891
|
+
supported: true,
|
|
892
|
+
probe: true,
|
|
893
|
+
rebuild: contributionRebuildSupported(
|
|
894
|
+
fulltextStrategy,
|
|
895
|
+
tables2$1.fulltextTableName,
|
|
896
|
+
declaredCapabilities.transactions
|
|
897
|
+
)
|
|
898
|
+
}
|
|
899
|
+
};
|
|
817
900
|
const tableNames = {
|
|
818
901
|
nodes: getTableName(tables2$1.nodes),
|
|
819
902
|
edges: getTableName(tables2$1.edges),
|
|
@@ -821,6 +904,10 @@ function createSqliteBackend(db, options = {}) {
|
|
|
821
904
|
recordedEdges: getTableName(tables2$1.recordedEdges),
|
|
822
905
|
recordedClock: getTableName(tables2$1.recordedClock),
|
|
823
906
|
revisionOrigins: getTableName(tables2$1.revisionOrigins),
|
|
907
|
+
identityAssertions: getTableName(tables2$1.identityAssertions),
|
|
908
|
+
recordedIdentityAssertions: getTableName(tables2$1.recordedIdentityAssertions),
|
|
909
|
+
identityClosure: getTableName(tables2$1.identityClosure),
|
|
910
|
+
identitySeparation: getTableName(tables2$1.identitySeparation),
|
|
824
911
|
fulltext: tables2$1.fulltextTableName,
|
|
825
912
|
uniques: getTableName(tables2$1.uniques)
|
|
826
913
|
};
|
|
@@ -830,10 +917,14 @@ function createSqliteBackend(db, options = {}) {
|
|
|
830
917
|
tableNames.uniques,
|
|
831
918
|
tableNames.fulltext
|
|
832
919
|
];
|
|
833
|
-
const
|
|
920
|
+
const guardedAnalyzeTables = [
|
|
834
921
|
tableNames.recordedNodes,
|
|
835
922
|
tableNames.recordedEdges,
|
|
836
|
-
tableNames.recordedClock
|
|
923
|
+
tableNames.recordedClock,
|
|
924
|
+
tableNames.recordedIdentityAssertions,
|
|
925
|
+
tableNames.identityAssertions,
|
|
926
|
+
tableNames.identityClosure,
|
|
927
|
+
tableNames.identitySeparation
|
|
837
928
|
];
|
|
838
929
|
const operationStrategy = createSqliteOperationStrategy(
|
|
839
930
|
tables2$1,
|
|
@@ -904,6 +995,17 @@ function createSqliteBackend(db, options = {}) {
|
|
|
904
995
|
);
|
|
905
996
|
return tableExistsFromRow(rows[0]);
|
|
906
997
|
}
|
|
998
|
+
function identityContributionsFor(identityTableNames) {
|
|
999
|
+
const identityTables = createSqliteTables({
|
|
1000
|
+
identityAssertions: identityTableNames.identityAssertions,
|
|
1001
|
+
recordedIdentityAssertions: identityTableNames.recordedIdentityAssertions,
|
|
1002
|
+
identityClosure: identityTableNames.identityClosure,
|
|
1003
|
+
identitySeparation: identityTableNames.identitySeparation
|
|
1004
|
+
});
|
|
1005
|
+
return sqliteContributions(identityTables, fulltextStrategy).filter(
|
|
1006
|
+
(contribution) => IDENTITY_TABLE_LOGICAL_NAMES.has(contribution.logicalName)
|
|
1007
|
+
);
|
|
1008
|
+
}
|
|
907
1009
|
const contributionMaterializer = createContributionMaterializer({
|
|
908
1010
|
dialect: "sqlite",
|
|
909
1011
|
fulltextStrategy,
|
|
@@ -916,7 +1018,15 @@ function createSqliteBackend(db, options = {}) {
|
|
|
916
1018
|
getMarkers: getContributionMaterializationRows,
|
|
917
1019
|
recordMarker: recordContributionMaterializationRow,
|
|
918
1020
|
deleteMarker: deleteContributionMaterializationRow,
|
|
919
|
-
tableExists: contributionTableExists
|
|
1021
|
+
tableExists: contributionTableExists,
|
|
1022
|
+
// Withheld rather than wired-and-throwing when transactions are
|
|
1023
|
+
// disabled: the rebuild must refuse with its own typed error naming
|
|
1024
|
+
// the absent fence, matching `capabilities.contributions.rebuild`.
|
|
1025
|
+
// The graph id the materializer passes is unused — this backend's
|
|
1026
|
+
// schema lock is per connection, not per graph.
|
|
1027
|
+
...capabilities.transactions ? {
|
|
1028
|
+
schemaWriteTransaction: (_graphId, fn) => runSchemaWriteTransaction((target) => fn(target))
|
|
1029
|
+
} : {}
|
|
920
1030
|
});
|
|
921
1031
|
const operations = createSqliteOperationBackend({
|
|
922
1032
|
capabilities,
|
|
@@ -950,6 +1060,16 @@ function createSqliteBackend(db, options = {}) {
|
|
|
950
1060
|
}
|
|
951
1061
|
await compiledRun(executionAdapter.compile(query));
|
|
952
1062
|
}
|
|
1063
|
+
async function rollbackFrameQuietly() {
|
|
1064
|
+
try {
|
|
1065
|
+
await runFrameStatement(sql`ROLLBACK`);
|
|
1066
|
+
} catch (rollbackError) {
|
|
1067
|
+
console.warn(
|
|
1068
|
+
"typegraph: ROLLBACK failed while unwinding a failed SQLite transaction; the original failure is the one thrown. Either the frame was already closed (SQLite auto-rolls-back on SQLITE_FULL / SQLITE_IOERR / SQLITE_NOMEM) and nothing is leaked, or it is still open on this connection, in which case the next BEGIN here fails.",
|
|
1069
|
+
rollbackError
|
|
1070
|
+
);
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
953
1073
|
function runSchemaWriteTransaction(fn) {
|
|
954
1074
|
if (transactionMode === "none") {
|
|
955
1075
|
throwSqliteTransactionsDisabled(
|
|
@@ -975,7 +1095,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
975
1095
|
await runFrameStatement(sql`COMMIT`);
|
|
976
1096
|
return result;
|
|
977
1097
|
} catch (error) {
|
|
978
|
-
await
|
|
1098
|
+
await rollbackFrameQuietly();
|
|
979
1099
|
throw error;
|
|
980
1100
|
}
|
|
981
1101
|
});
|
|
@@ -1063,6 +1183,28 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1063
1183
|
sql.raw(generateSqliteCreateTableSQL(tables2$1.revisionOrigins))
|
|
1064
1184
|
);
|
|
1065
1185
|
},
|
|
1186
|
+
async ensureIdentityTables(identityTableNames, options2) {
|
|
1187
|
+
const identityContributions = identityContributionsFor(identityTableNames);
|
|
1188
|
+
const missing = [];
|
|
1189
|
+
for (const contribution of identityContributions) {
|
|
1190
|
+
if (!await contributionTableExists(contribution.tableName)) {
|
|
1191
|
+
missing.push(contribution.logicalName);
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
if (missing.length === 0 || options2.provisionMissing) {
|
|
1195
|
+
for (const contribution of identityContributions) {
|
|
1196
|
+
for (const ddl of contribution.createDdl) {
|
|
1197
|
+
await db.run(sql.raw(ddl));
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
return missing;
|
|
1202
|
+
},
|
|
1203
|
+
identityTableDdl(identityTableNames) {
|
|
1204
|
+
return identityContributionsFor(identityTableNames).flatMap(
|
|
1205
|
+
(contribution) => [...contribution.createDdl]
|
|
1206
|
+
);
|
|
1207
|
+
},
|
|
1066
1208
|
// Every fulltext-touching method asserts the durable marker instead
|
|
1067
1209
|
// of lazily emitting DDL. Steady state performs zero ensure; an
|
|
1068
1210
|
// uninitialized database throws `StoreNotInitializedError` rather
|
|
@@ -1170,6 +1312,16 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1170
1312
|
async repairContributions(graphId, vectorSlots) {
|
|
1171
1313
|
return contributionMaterializer.repairContributions(graphId, vectorSlots);
|
|
1172
1314
|
},
|
|
1315
|
+
async probeContributions(graphId, vectorSlots) {
|
|
1316
|
+
return contributionMaterializer.probeContributions(graphId, vectorSlots);
|
|
1317
|
+
},
|
|
1318
|
+
async rebuildContribution(graphId, scope, repopulate) {
|
|
1319
|
+
return contributionMaterializer.rebuildContribution(
|
|
1320
|
+
graphId,
|
|
1321
|
+
scope,
|
|
1322
|
+
repopulate
|
|
1323
|
+
);
|
|
1324
|
+
},
|
|
1173
1325
|
// Vector counterparts of the runtime-contribution methods. Present
|
|
1174
1326
|
// only when a vector strategy is wired (omitted on a plain SQLite
|
|
1175
1327
|
// connection with no vector extension), mirroring the embedding/
|
|
@@ -1222,7 +1374,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1222
1374
|
)
|
|
1223
1375
|
);
|
|
1224
1376
|
}
|
|
1225
|
-
for (const tableName of
|
|
1377
|
+
for (const tableName of guardedAnalyzeTables) {
|
|
1226
1378
|
try {
|
|
1227
1379
|
await db.run(
|
|
1228
1380
|
toDrizzleSql(
|
|
@@ -1245,6 +1397,12 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1245
1397
|
(target) => commitSchemaVersionIfKindsEmpty(target, params, probes)
|
|
1246
1398
|
);
|
|
1247
1399
|
},
|
|
1400
|
+
async commitSchemaVersionWithPreflight(params, preflight) {
|
|
1401
|
+
return runSchemaWriteTransaction(async (target) => {
|
|
1402
|
+
await preflight(target);
|
|
1403
|
+
return target.commitSchemaVersion(params);
|
|
1404
|
+
});
|
|
1405
|
+
},
|
|
1248
1406
|
async setActiveVersion(params) {
|
|
1249
1407
|
await runSchemaWriteTransaction(
|
|
1250
1408
|
(target) => target.setActiveVersion(params)
|
|
@@ -1296,7 +1454,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1296
1454
|
await runFrameStatement(sql`COMMIT`);
|
|
1297
1455
|
return result;
|
|
1298
1456
|
} catch (error) {
|
|
1299
|
-
await
|
|
1457
|
+
await rollbackFrameQuietly();
|
|
1300
1458
|
throw error;
|
|
1301
1459
|
}
|
|
1302
1460
|
});
|
|
@@ -1331,6 +1489,9 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1331
1489
|
return Promise.resolve();
|
|
1332
1490
|
}
|
|
1333
1491
|
};
|
|
1492
|
+
if (serializedConnection !== void 0) {
|
|
1493
|
+
markSerializedTransactionResource(backend, serializedConnection);
|
|
1494
|
+
}
|
|
1334
1495
|
return backend;
|
|
1335
1496
|
}
|
|
1336
1497
|
function createTransactionBackend(options) {
|
|
@@ -1350,6 +1511,6 @@ function createTransactionBackend(options) {
|
|
|
1350
1511
|
});
|
|
1351
1512
|
}
|
|
1352
1513
|
|
|
1353
|
-
export { createSqliteBackend };
|
|
1354
|
-
//# sourceMappingURL=chunk-
|
|
1355
|
-
//# sourceMappingURL=chunk-
|
|
1514
|
+
export { createSqliteBackend, isLocalLibsqlClient };
|
|
1515
|
+
//# sourceMappingURL=chunk-C23WSN5E.js.map
|
|
1516
|
+
//# sourceMappingURL=chunk-C23WSN5E.js.map
|