@nicia-ai/typegraph 0.48.0 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/drizzle/indexes.cjs +9 -9
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +5 -5
- package/dist/backend/index.cjs +56 -52
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +11 -11
- package/dist/backend/postgres/index.cjs +34 -28
- package/dist/backend/postgres/index.d.cts +7 -7
- package/dist/backend/postgres/index.d.ts +7 -7
- package/dist/backend/postgres/index.js +17 -15
- package/dist/backend/postgres/pglite-store.cjs +36 -35
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +8 -8
- package/dist/backend/postgres/pglite-store.d.ts +8 -8
- package/dist/backend/postgres/pglite-store.js +32 -31
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +19 -17
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +18 -16
- package/dist/backend/sqlite/index.cjs +31 -25
- package/dist/backend/sqlite/index.d.cts +7 -7
- package/dist/backend/sqlite/index.d.ts +7 -7
- package/dist/backend/sqlite/index.js +15 -13
- package/dist/backend/sqlite/libsql.cjs +22 -20
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +17 -15
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +37 -36
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- package/dist/backend/sqlite/local-store.d.cts +8 -8
- package/dist/backend/sqlite/local-store.d.ts +8 -8
- package/dist/backend/sqlite/local-store.js +33 -32
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +20 -18
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +18 -16
- package/dist/{chunk-AX6JGVTZ.js → chunk-2CYI5HRH.js} +276 -206
- package/dist/chunk-2CYI5HRH.js.map +1 -0
- package/dist/{chunk-KF6K7TGH.js → chunk-2GIV5X4P.js} +702 -422
- package/dist/chunk-2GIV5X4P.js.map +1 -0
- package/dist/{chunk-2TYSSBU5.js → chunk-2Q45FAIE.js} +15 -15
- package/dist/{chunk-2TYSSBU5.js.map → chunk-2Q45FAIE.js.map} +1 -1
- package/dist/{chunk-WODMN3Q2.cjs → chunk-45YZXI6X.cjs} +27 -27
- package/dist/{chunk-WODMN3Q2.cjs.map → chunk-45YZXI6X.cjs.map} +1 -1
- package/dist/{chunk-3DMMGT6S.js → chunk-46UGOVRW.js} +3 -3
- package/dist/{chunk-3DMMGT6S.js.map → chunk-46UGOVRW.js.map} +1 -1
- package/dist/{chunk-GLHXM7C4.js → chunk-5LKOVCPP.js} +60 -23
- package/dist/chunk-5LKOVCPP.js.map +1 -0
- package/dist/{chunk-JFRT7S3B.cjs → chunk-5OWHU7Z7.cjs} +261 -459
- package/dist/chunk-5OWHU7Z7.cjs.map +1 -0
- package/dist/{chunk-7SQSZN2J.js → chunk-5PP4KRPV.js} +5 -5
- package/dist/{chunk-7SQSZN2J.js.map → chunk-5PP4KRPV.js.map} +1 -1
- package/dist/chunk-6KQEICJ6.cjs +12 -0
- package/dist/{chunk-MKJ4KXL5.cjs.map → chunk-6KQEICJ6.cjs.map} +1 -1
- package/dist/{chunk-6SWPJEYN.js → chunk-6LEOAIIB.js} +40 -6
- package/dist/chunk-6LEOAIIB.js.map +1 -0
- package/dist/{chunk-DZAICA5J.js → chunk-6NKSE5AU.js} +4 -4
- package/dist/{chunk-DZAICA5J.js.map → chunk-6NKSE5AU.js.map} +1 -1
- package/dist/{chunk-OVI7IXYX.js → chunk-6S3PTHL4.js} +3 -3
- package/dist/{chunk-OVI7IXYX.js.map → chunk-6S3PTHL4.js.map} +1 -1
- package/dist/{chunk-3FPR224C.cjs → chunk-7CCMCMJO.cjs} +102 -102
- package/dist/{chunk-3FPR224C.cjs.map → chunk-7CCMCMJO.cjs.map} +1 -1
- package/dist/{chunk-SHFBB23Q.js → chunk-7OWE7WD6.js} +6 -4
- package/dist/chunk-7OWE7WD6.js.map +1 -0
- package/dist/chunk-7PRMDZIA.cjs +182 -0
- package/dist/chunk-7PRMDZIA.cjs.map +1 -0
- package/dist/{chunk-CHAOFCHV.js → chunk-AH2A74OZ.js} +3 -3
- package/dist/{chunk-CHAOFCHV.js.map → chunk-AH2A74OZ.js.map} +1 -1
- package/dist/{chunk-OORXGFL5.cjs → chunk-BYBDM423.cjs} +48 -48
- package/dist/{chunk-OORXGFL5.cjs.map → chunk-BYBDM423.cjs.map} +1 -1
- package/dist/{chunk-JB6T4GLL.cjs → chunk-C76WFIVZ.cjs} +808 -519
- package/dist/chunk-C76WFIVZ.cjs.map +1 -0
- package/dist/{chunk-OTUPEF2W.cjs → chunk-CS6JTQQ2.cjs} +328 -257
- package/dist/chunk-CS6JTQQ2.cjs.map +1 -0
- package/dist/{chunk-AOSSQDVO.cjs → chunk-CSNOYIB4.cjs} +13 -13
- package/dist/{chunk-AOSSQDVO.cjs.map → chunk-CSNOYIB4.cjs.map} +1 -1
- package/dist/{chunk-HEV35TGT.js → chunk-DI6VC62F.js} +13 -4
- package/dist/chunk-DI6VC62F.js.map +1 -0
- package/dist/{chunk-2QGYQBS2.cjs → chunk-DWUDZ66O.cjs} +10 -10
- package/dist/{chunk-2QGYQBS2.cjs.map → chunk-DWUDZ66O.cjs.map} +1 -1
- package/dist/{chunk-ZDKTPBGV.js → chunk-EDLKIQRI.js} +4 -4
- package/dist/{chunk-ZDKTPBGV.js.map → chunk-EDLKIQRI.js.map} +1 -1
- package/dist/chunk-EH3JZJUM.cjs +567 -0
- package/dist/chunk-EH3JZJUM.cjs.map +1 -0
- package/dist/{chunk-S5TERQVW.js → chunk-FX5ZW6PN.js} +196 -33
- package/dist/chunk-FX5ZW6PN.js.map +1 -0
- package/dist/{chunk-XVWOYKIK.js → chunk-FZHF5UWR.js} +3 -3
- package/dist/{chunk-XVWOYKIK.js.map → chunk-FZHF5UWR.js.map} +1 -1
- package/dist/{chunk-BFUOME67.cjs → chunk-G2TLHH6T.cjs} +20 -11
- package/dist/chunk-G2TLHH6T.cjs.map +1 -0
- package/dist/{chunk-5PRKMB24.cjs → chunk-GHZPZNFC.cjs} +12 -4
- package/dist/chunk-GHZPZNFC.cjs.map +1 -0
- package/dist/{chunk-ZFMCDJGB.js → chunk-GVYVGGPJ.js} +11 -199
- package/dist/chunk-GVYVGGPJ.js.map +1 -0
- package/dist/{chunk-SDBBMD4N.js → chunk-H3XP6BAV.js} +3 -3
- package/dist/{chunk-SDBBMD4N.js.map → chunk-H3XP6BAV.js.map} +1 -1
- package/dist/{chunk-ROR5ZR6A.cjs → chunk-HSEZ7X6Y.cjs} +45 -45
- package/dist/{chunk-ROR5ZR6A.cjs.map → chunk-HSEZ7X6Y.cjs.map} +1 -1
- package/dist/{chunk-LRQKXRXO.cjs → chunk-HY5BNOUN.cjs} +4 -4
- package/dist/{chunk-LRQKXRXO.cjs.map → chunk-HY5BNOUN.cjs.map} +1 -1
- package/dist/chunk-HZUB5CON.js +27 -0
- package/dist/chunk-HZUB5CON.js.map +1 -0
- package/dist/{chunk-MYKHJI2J.js → chunk-I5C6OTKR.js} +3 -3
- package/dist/{chunk-MYKHJI2J.js.map → chunk-I5C6OTKR.js.map} +1 -1
- package/dist/{chunk-3U5ABFDW.cjs → chunk-IHK5KA2Q.cjs} +31 -28
- package/dist/chunk-IHK5KA2Q.cjs.map +1 -0
- package/dist/{chunk-26YKDNUD.cjs → chunk-IPRP6TDL.cjs} +12 -10
- package/dist/chunk-IPRP6TDL.cjs.map +1 -0
- package/dist/{chunk-UGHG7PGX.js → chunk-IRPYOHRC.js} +26 -4
- package/dist/chunk-IRPYOHRC.js.map +1 -0
- package/dist/{chunk-7XUYFFR4.cjs → chunk-ISKCIQF2.cjs} +20 -20
- package/dist/{chunk-7XUYFFR4.cjs.map → chunk-ISKCIQF2.cjs.map} +1 -1
- package/dist/{chunk-OD4SSY2U.js → chunk-JG5XIJDY.js} +57 -31
- package/dist/chunk-JG5XIJDY.js.map +1 -0
- package/dist/{chunk-2HIYYMWY.cjs → chunk-K2XYLVVB.cjs} +134 -133
- package/dist/chunk-K2XYLVVB.cjs.map +1 -0
- package/dist/{chunk-5K2BKEBD.js → chunk-K46SDNQD.js} +10 -4
- package/dist/chunk-K46SDNQD.js.map +1 -0
- package/dist/{chunk-TZEGUG6D.cjs → chunk-K6VKTBST.cjs} +4 -4
- package/dist/{chunk-TZEGUG6D.cjs.map → chunk-K6VKTBST.cjs.map} +1 -1
- package/dist/chunk-KWNWG4RC.cjs +12 -0
- package/dist/{chunk-CICO5GXD.cjs.map → chunk-KWNWG4RC.cjs.map} +1 -1
- package/dist/{chunk-FQPEMEWX.cjs → chunk-LLVOQOWE.cjs} +80 -32
- package/dist/chunk-LLVOQOWE.cjs.map +1 -0
- package/dist/{chunk-TQHGE7UC.cjs → chunk-M5MSP3BI.cjs} +18 -10
- package/dist/chunk-M5MSP3BI.cjs.map +1 -0
- package/dist/{chunk-ACGSAMD3.js → chunk-MJPZNEJZ.js} +274 -292
- package/dist/chunk-MJPZNEJZ.js.map +1 -0
- package/dist/{chunk-TUNPBZY3.cjs → chunk-MM3JHVKZ.cjs} +4 -4
- package/dist/{chunk-TUNPBZY3.cjs.map → chunk-MM3JHVKZ.cjs.map} +1 -1
- package/dist/{chunk-BRRP76WO.js → chunk-MX7EKQPM.js} +457 -299
- package/dist/chunk-MX7EKQPM.js.map +1 -0
- package/dist/{chunk-2SYZXD54.js → chunk-MZ34E2GN.js} +13 -12
- package/dist/chunk-MZ34E2GN.js.map +1 -0
- package/dist/{chunk-EDN4Y4ZG.cjs → chunk-OJHD3LXJ.cjs} +9 -9
- package/dist/{chunk-EDN4Y4ZG.cjs.map → chunk-OJHD3LXJ.cjs.map} +1 -1
- package/dist/{chunk-DO7SAMEK.cjs → chunk-ON47CBE4.cjs} +47 -47
- package/dist/{chunk-DO7SAMEK.cjs.map → chunk-ON47CBE4.cjs.map} +1 -1
- package/dist/{chunk-6LN7FIVU.js → chunk-PALYTHGM.js} +11 -4
- package/dist/chunk-PALYTHGM.js.map +1 -0
- package/dist/{chunk-YVF2EM7B.js → chunk-R7MRFE5P.js} +3 -3
- package/dist/{chunk-YVF2EM7B.js.map → chunk-R7MRFE5P.js.map} +1 -1
- package/dist/{chunk-EZEEWCFJ.cjs → chunk-RDP6ZRSM.cjs} +435 -265
- package/dist/chunk-RDP6ZRSM.cjs.map +1 -0
- package/dist/{chunk-GYEG3ZLZ.cjs → chunk-RJMHU2MG.cjs} +121 -18
- package/dist/chunk-RJMHU2MG.cjs.map +1 -0
- package/dist/chunk-RWUWTJQY.cjs +30 -0
- package/dist/chunk-RWUWTJQY.cjs.map +1 -0
- package/dist/{chunk-CT3ZKTOF.js → chunk-S33YQEL7.js} +7 -7
- package/dist/{chunk-CT3ZKTOF.js.map → chunk-S33YQEL7.js.map} +1 -1
- package/dist/chunk-S3SDEQMC.js +532 -0
- package/dist/chunk-S3SDEQMC.js.map +1 -0
- package/dist/{chunk-OI2GQ25X.cjs → chunk-SHC7BCG5.cjs} +7 -7
- package/dist/{chunk-OI2GQ25X.cjs.map → chunk-SHC7BCG5.cjs.map} +1 -1
- package/dist/{chunk-L3LQNR34.cjs → chunk-TEC24ZDA.cjs} +161 -161
- package/dist/{chunk-L3LQNR34.cjs.map → chunk-TEC24ZDA.cjs.map} +1 -1
- package/dist/{chunk-HDL2ARHX.cjs → chunk-TP4NJTI3.cjs} +63 -27
- package/dist/chunk-TP4NJTI3.cjs.map +1 -0
- package/dist/{chunk-UMGZDVOA.cjs → chunk-TTCOPKUL.cjs} +124 -124
- package/dist/{chunk-UMGZDVOA.cjs.map → chunk-TTCOPKUL.cjs.map} +1 -1
- package/dist/chunk-TUVD4DFR.cjs +1207 -0
- package/dist/chunk-TUVD4DFR.cjs.map +1 -0
- package/dist/{chunk-PFBRJBUL.cjs → chunk-TYGGUWMS.cjs} +178 -152
- package/dist/chunk-TYGGUWMS.cjs.map +1 -0
- package/dist/{chunk-4WMMBDS5.js → chunk-U3Z7XKAG.js} +7 -7
- package/dist/{chunk-4WMMBDS5.js.map → chunk-U3Z7XKAG.js.map} +1 -1
- package/dist/{chunk-NACVVDWB.js → chunk-U5EL6JUV.js} +10 -10
- package/dist/{chunk-NACVVDWB.js.map → chunk-U5EL6JUV.js.map} +1 -1
- package/dist/{chunk-OMZ37BM2.js → chunk-V76FGHY3.js} +5 -5
- package/dist/{chunk-OMZ37BM2.js.map → chunk-V76FGHY3.js.map} +1 -1
- package/dist/{chunk-6NGW27EO.cjs → chunk-VLBTRXA2.cjs} +10 -10
- package/dist/{chunk-6NGW27EO.cjs.map → chunk-VLBTRXA2.cjs.map} +1 -1
- package/dist/chunk-VTJVMP4I.js +1182 -0
- package/dist/chunk-VTJVMP4I.js.map +1 -0
- package/dist/{chunk-QTD6HX4O.js → chunk-W5SOCUBL.js} +5 -5
- package/dist/{chunk-QTD6HX4O.js.map → chunk-W5SOCUBL.js.map} +1 -1
- package/dist/{chunk-SR725PWF.cjs → chunk-WCLMKNQE.cjs} +1750 -1592
- package/dist/chunk-WCLMKNQE.cjs.map +1 -0
- package/dist/{chunk-TKZXMWQF.cjs → chunk-WK23PGTP.cjs} +13 -13
- package/dist/{chunk-TKZXMWQF.cjs.map → chunk-WK23PGTP.cjs.map} +1 -1
- package/dist/{chunk-KKBDXCLQ.js → chunk-WQBAQZHR.js} +4 -4
- package/dist/{chunk-KKBDXCLQ.js.map → chunk-WQBAQZHR.js.map} +1 -1
- package/dist/{chunk-MRDBBHIZ.cjs → chunk-X4GDXBOP.cjs} +2 -2
- package/dist/chunk-X4GDXBOP.cjs.map +1 -0
- package/dist/{chunk-WCCATHMB.cjs → chunk-XMY2SXOH.cjs} +438 -456
- package/dist/chunk-XMY2SXOH.cjs.map +1 -0
- package/dist/{chunk-D5R42W5D.js → chunk-XZW2CTNO.js} +115 -12
- package/dist/chunk-XZW2CTNO.js.map +1 -0
- package/dist/{chunk-NVY5CJFP.js → chunk-Y55DLLEG.js} +9 -6
- package/dist/chunk-Y55DLLEG.js.map +1 -0
- package/dist/chunk-YA36ABIL.js +174 -0
- package/dist/chunk-YA36ABIL.js.map +1 -0
- package/dist/{chunk-ZLONH2UD.js → chunk-YDEJQWOL.js} +2 -2
- package/dist/chunk-YDEJQWOL.js.map +1 -0
- package/dist/{chunk-JONXFAPO.js → chunk-ZAQUKCUC.js} +5 -5
- package/dist/{chunk-JONXFAPO.js.map → chunk-ZAQUKCUC.js.map} +1 -1
- package/dist/{chunk-SIT26LAZ.cjs → chunk-ZBFZGLZE.cjs} +29 -5
- package/dist/chunk-ZBFZGLZE.cjs.map +1 -0
- package/dist/{chunk-P6YLZTRE.js → chunk-ZRJTM7MT.js} +3 -3
- package/dist/{chunk-P6YLZTRE.js.map → chunk-ZRJTM7MT.js.map} +1 -1
- package/dist/core/index.cjs +29 -28
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +9 -8
- package/dist/{ddl-D_oW-EVO.d.ts → ddl-B49O7dB_.d.ts} +3 -3
- package/dist/{ddl-BL1NZLMY.d.cts → ddl-DcZG660s.d.cts} +3 -3
- package/dist/graph-extension/index.cjs +21 -20
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +5 -4
- package/dist/graph-merge/index.cjs +327 -302
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +14 -11
- package/dist/graph-merge/index.d.ts +14 -11
- package/dist/graph-merge/index.js +52 -27
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-D7d1u2gr.d.ts → index-B0PrmE3K.d.cts} +16 -2
- package/dist/{index-COs_z6nV.d.cts → index-CwcXsL5R.d.ts} +16 -2
- package/dist/index.cjs +223 -222
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +37 -36
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +13 -13
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +6 -6
- package/dist/ingestion-import-target-CI8OWIkM.d.ts +17 -0
- package/dist/ingestion-import-target-DCpfM1PX.d.cts +17 -0
- package/dist/interchange/index.cjs +55 -54
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +26 -12
- package/dist/interchange/index.d.ts +26 -12
- package/dist/interchange/index.js +19 -18
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-D9eRT_ns.d.ts → manager-Cfg1ENj1.d.ts} +30 -2
- package/dist/{manager-CYaff3n3.d.cts → manager-D348fa6W.d.cts} +30 -2
- package/dist/{materialize-indexes-DJ3ykH59.d.ts → materialize-indexes-C9GG3O3C.d.ts} +1 -1
- package/dist/{materialize-indexes-DTtAnvfY.d.cts → materialize-indexes-CrSiW_lT.d.cts} +1 -1
- package/dist/{postgres-DMj39MEu.d.cts → postgres-CH1kkM5J.d.cts} +279 -2
- package/dist/{postgres-CcL4bAHS.d.ts → postgres-UStOycLI.d.ts} +279 -2
- package/dist/profiler/index.d.cts +9 -9
- package/dist/profiler/index.d.ts +9 -9
- package/dist/provenance/index.cjs +46 -44
- 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 -10
- package/dist/provenance/index.js.map +1 -1
- package/dist/{repair-validity-windows-DlUSqwCg.d.ts → repair-validity-windows-BtOEe2pS.d.ts} +2 -2
- package/dist/{repair-validity-windows-BFNZvd_H.d.cts → repair-validity-windows-aWX7VNvv.d.cts} +2 -2
- package/dist/schema/index.cjs +46 -46
- package/dist/schema/index.d.cts +6 -6
- package/dist/schema/index.d.ts +6 -6
- package/dist/schema/index.js +19 -19
- package/dist/{searchable-DHJMh_nj.d.cts → searchable-C8-RrL3l.d.cts} +1 -1
- package/dist/{searchable-bpE1bBfc.d.ts → searchable-z4BiFfHI.d.ts} +1 -1
- package/dist/{sqlite-D7Oz0SQh.d.ts → sqlite-Cyx9j9o6.d.cts} +309 -2
- package/dist/{sqlite-YppHrNFb.d.cts → sqlite-axLw5Lo5.d.ts} +309 -2
- package/dist/{store-JUVvtmR4.d.cts → store-CTfQ9taw.d.ts} +110 -13
- package/dist/{store-UzrGvZOo.d.ts → store-DR9J7JVB.d.cts} +110 -13
- package/dist/{temporal-5GqpYCk2.d.cts → temporal-B4Ky4wzh.d.cts} +1 -1
- package/dist/{temporal-CbnLzTmM.d.ts → temporal-CBOrERz5.d.ts} +1 -1
- package/dist/{types-CXAhpW-c.d.cts → types-BE921wRl.d.cts} +1 -1
- package/dist/{types-Bx74kaTt.d.ts → types-BScHXVM7.d.ts} +1 -1
- package/dist/{types-BqFZTQmV.d.cts → types-CWg4dTjj.d.cts} +257 -6
- package/dist/{types-BqFZTQmV.d.ts → types-CWg4dTjj.d.ts} +257 -6
- package/dist/{where-O-k2wgYm.d.ts → where-BWXUPV3C.d.ts} +1 -1
- package/dist/{where-DI_Fqz-X.d.cts → where-CNtx1aLc.d.cts} +1 -1
- package/package.json +4 -4
- package/dist/chunk-26YKDNUD.cjs.map +0 -1
- package/dist/chunk-2HIYYMWY.cjs.map +0 -1
- package/dist/chunk-2SYZXD54.js.map +0 -1
- package/dist/chunk-3KOY4FH3.cjs +0 -934
- package/dist/chunk-3KOY4FH3.cjs.map +0 -1
- package/dist/chunk-3U5ABFDW.cjs.map +0 -1
- package/dist/chunk-5K2BKEBD.js.map +0 -1
- package/dist/chunk-5PRKMB24.cjs.map +0 -1
- package/dist/chunk-6LN7FIVU.js.map +0 -1
- package/dist/chunk-6SWPJEYN.js.map +0 -1
- package/dist/chunk-ACGSAMD3.js.map +0 -1
- package/dist/chunk-AX6JGVTZ.js.map +0 -1
- package/dist/chunk-BFUOME67.cjs.map +0 -1
- package/dist/chunk-BRRP76WO.js.map +0 -1
- package/dist/chunk-CICO5GXD.cjs +0 -12
- package/dist/chunk-D5R42W5D.js.map +0 -1
- package/dist/chunk-EZEEWCFJ.cjs.map +0 -1
- package/dist/chunk-FA2AFWLP.cjs +0 -167
- package/dist/chunk-FA2AFWLP.cjs.map +0 -1
- package/dist/chunk-FQPEMEWX.cjs.map +0 -1
- package/dist/chunk-GLHXM7C4.js.map +0 -1
- package/dist/chunk-GYEG3ZLZ.cjs.map +0 -1
- package/dist/chunk-HDL2ARHX.cjs.map +0 -1
- package/dist/chunk-HEV35TGT.js.map +0 -1
- package/dist/chunk-I4GAZH5Z.js +0 -913
- package/dist/chunk-I4GAZH5Z.js.map +0 -1
- package/dist/chunk-JB6T4GLL.cjs.map +0 -1
- package/dist/chunk-JBQQ7THH.js +0 -20
- package/dist/chunk-JBQQ7THH.js.map +0 -1
- package/dist/chunk-JFRT7S3B.cjs.map +0 -1
- package/dist/chunk-KF6K7TGH.js.map +0 -1
- package/dist/chunk-MKJ4KXL5.cjs +0 -12
- package/dist/chunk-MRDBBHIZ.cjs.map +0 -1
- package/dist/chunk-NVY5CJFP.js.map +0 -1
- package/dist/chunk-OD4SSY2U.js.map +0 -1
- package/dist/chunk-OTUPEF2W.cjs.map +0 -1
- package/dist/chunk-PFBRJBUL.cjs.map +0 -1
- package/dist/chunk-PWLJ77UV.cjs +0 -23
- package/dist/chunk-PWLJ77UV.cjs.map +0 -1
- package/dist/chunk-S5TERQVW.js.map +0 -1
- package/dist/chunk-SHFBB23Q.js.map +0 -1
- package/dist/chunk-SIT26LAZ.cjs.map +0 -1
- package/dist/chunk-SR725PWF.cjs.map +0 -1
- package/dist/chunk-TQHGE7UC.cjs.map +0 -1
- package/dist/chunk-UGHG7PGX.js.map +0 -1
- package/dist/chunk-WCCATHMB.cjs.map +0 -1
- package/dist/chunk-YIURNGXI.js +0 -155
- package/dist/chunk-YIURNGXI.js.map +0 -1
- package/dist/chunk-ZFMCDJGB.js.map +0 -1
- package/dist/chunk-ZLONH2UD.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
3
|
+
var chunkXMY2SXOH_cjs = require('./chunk-XMY2SXOH.cjs');
|
|
4
|
+
var chunkEH3JZJUM_cjs = require('./chunk-EH3JZJUM.cjs');
|
|
5
|
+
var chunkTP4NJTI3_cjs = require('./chunk-TP4NJTI3.cjs');
|
|
6
|
+
var chunk45YZXI6X_cjs = require('./chunk-45YZXI6X.cjs');
|
|
7
|
+
var chunkZBFZGLZE_cjs = require('./chunk-ZBFZGLZE.cjs');
|
|
8
|
+
var chunkGHZPZNFC_cjs = require('./chunk-GHZPZNFC.cjs');
|
|
9
|
+
var chunkTEC24ZDA_cjs = require('./chunk-TEC24ZDA.cjs');
|
|
10
|
+
var chunkOJHD3LXJ_cjs = require('./chunk-OJHD3LXJ.cjs');
|
|
11
|
+
var chunkX4GDXBOP_cjs = require('./chunk-X4GDXBOP.cjs');
|
|
12
12
|
var chunkN66HCGCY_cjs = require('./chunk-N66HCGCY.cjs');
|
|
13
13
|
var drizzleOrm = require('drizzle-orm');
|
|
14
14
|
var sqliteCore = require('drizzle-orm/sqlite-core');
|
|
@@ -100,14 +100,14 @@ function hasModernBindLimitByVersion(rows) {
|
|
|
100
100
|
}
|
|
101
101
|
function detectHardMaxBindParameters(transactionMode, hostedPlatform) {
|
|
102
102
|
if (hostedPlatform === "durable-object" || transactionMode === "do-sqlite") {
|
|
103
|
-
return
|
|
103
|
+
return chunkGHZPZNFC_cjs.DURABLE_OBJECT_MAX_BIND_PARAMETERS;
|
|
104
104
|
}
|
|
105
|
-
if (hostedPlatform === "d1") return
|
|
105
|
+
if (hostedPlatform === "d1") return chunkGHZPZNFC_cjs.D1_MAX_BIND_PARAMETERS;
|
|
106
106
|
return void 0;
|
|
107
107
|
}
|
|
108
108
|
function detectMaxBindParameters(sqliteClient, hardMaxBindParameters) {
|
|
109
109
|
if (hardMaxBindParameters !== void 0) return hardMaxBindParameters;
|
|
110
|
-
if (sqliteClient === void 0) return
|
|
110
|
+
if (sqliteClient === void 0) return chunkGHZPZNFC_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
111
111
|
try {
|
|
112
112
|
const compiled = parseCompiledMaxVariableNumber(
|
|
113
113
|
sqliteClient.prepare("PRAGMA compile_options").all()
|
|
@@ -116,9 +116,9 @@ function detectMaxBindParameters(sqliteClient, hardMaxBindParameters) {
|
|
|
116
116
|
const isModern = hasModernBindLimitByVersion(
|
|
117
117
|
sqliteClient.prepare("SELECT sqlite_version() AS version").all()
|
|
118
118
|
);
|
|
119
|
-
return isModern ?
|
|
119
|
+
return isModern ? chunkGHZPZNFC_cjs.MODERN_SQLITE_MAX_BIND_PARAMETERS : chunkGHZPZNFC_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
120
120
|
} catch {
|
|
121
|
-
return
|
|
121
|
+
return chunkGHZPZNFC_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function preparingClient(client) {
|
|
@@ -148,7 +148,7 @@ function resolveSqliteClient(db) {
|
|
|
148
148
|
return sqliteClient;
|
|
149
149
|
}
|
|
150
150
|
function getOrCreatePreparedStatement(cache, sqliteClient, sqlText, cacheMax) {
|
|
151
|
-
return
|
|
151
|
+
return chunkXMY2SXOH_cjs.getOrCreateLru(
|
|
152
152
|
cache,
|
|
153
153
|
sqlText,
|
|
154
154
|
cacheMax,
|
|
@@ -200,7 +200,7 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
200
200
|
supportsCompiledExecution: sqliteClient !== void 0,
|
|
201
201
|
transactionMode
|
|
202
202
|
};
|
|
203
|
-
const compile = (query) =>
|
|
203
|
+
const compile = (query) => chunk45YZXI6X_cjs.compileQueryWithDialect(db, query, "SQLite");
|
|
204
204
|
if (sqliteClient !== void 0) {
|
|
205
205
|
let executeCompiled2 = function(compiledQuery) {
|
|
206
206
|
const preparedStatement = getOrCreatePreparedStatement(
|
|
@@ -273,7 +273,7 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
273
273
|
execute(query) {
|
|
274
274
|
return executeDrizzleQuery(
|
|
275
275
|
db,
|
|
276
|
-
|
|
276
|
+
chunkOJHD3LXJ_cjs.isSqlFragment(query) ? chunk45YZXI6X_cjs.toDrizzleSql(query, "sqlite") : query
|
|
277
277
|
);
|
|
278
278
|
},
|
|
279
279
|
profile
|
|
@@ -305,7 +305,7 @@ function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
|
305
305
|
),
|
|
306
306
|
embeddingUpsertBatchSize: Math.max(
|
|
307
307
|
1,
|
|
308
|
-
Math.floor(maxBindParameters /
|
|
308
|
+
Math.floor(maxBindParameters / chunkXMY2SXOH_cjs.EMBEDDING_UPSERT_PARAM_COUNT)
|
|
309
309
|
),
|
|
310
310
|
fulltextUpsertBatchSize: Math.max(
|
|
311
311
|
1,
|
|
@@ -321,7 +321,7 @@ function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
|
321
321
|
),
|
|
322
322
|
findEdgesEndpointChunkSize: Math.max(
|
|
323
323
|
1,
|
|
324
|
-
maxBindParameters -
|
|
324
|
+
maxBindParameters - chunkXMY2SXOH_cjs.FIND_EDGES_ENDPOINT_FIXED_PARAM_COUNT
|
|
325
325
|
),
|
|
326
326
|
getEdgesChunkSize: Math.max(
|
|
327
327
|
1,
|
|
@@ -345,11 +345,11 @@ function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
|
345
345
|
)
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
var toNodeRow =
|
|
349
|
-
var toEdgeRow =
|
|
350
|
-
var toUniqueRow =
|
|
351
|
-
var toSchemaVersionRow =
|
|
352
|
-
|
|
348
|
+
var toNodeRow = chunkEH3JZJUM_cjs.createNodeRowMapper(chunkEH3JZJUM_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
349
|
+
var toEdgeRow = chunkEH3JZJUM_cjs.createEdgeRowMapper(chunkEH3JZJUM_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
350
|
+
var toUniqueRow = chunkEH3JZJUM_cjs.createUniqueRowMapper(chunkEH3JZJUM_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
351
|
+
var toSchemaVersionRow = chunkEH3JZJUM_cjs.createSchemaVersionRowMapper(
|
|
352
|
+
chunkEH3JZJUM_cjs.SQLITE_ROW_MAPPER_CONFIG
|
|
353
353
|
);
|
|
354
354
|
var PENDING_FOREVER = new Promise(noop);
|
|
355
355
|
function pendingForever() {
|
|
@@ -368,7 +368,7 @@ async function loadQueueTaskContext() {
|
|
|
368
368
|
void loadQueueTaskContext();
|
|
369
369
|
function rejectReentrantQueueSubmission() {
|
|
370
370
|
return Promise.reject(
|
|
371
|
-
new
|
|
371
|
+
new chunkX4GDXBOP_cjs.ConfigurationError(
|
|
372
372
|
"This operation was awaited from inside a transaction running on the same SQLite backend and would deadlock: the transaction holds the backend's serialized execution slot until it completes, so the operation could never run.",
|
|
373
373
|
{ backend: "sqlite", capability: "concurrentRootAccess" },
|
|
374
374
|
{
|
|
@@ -389,7 +389,7 @@ function createSerializedExecutionQueue() {
|
|
|
389
389
|
disposed = true;
|
|
390
390
|
},
|
|
391
391
|
runExclusive(task) {
|
|
392
|
-
if (isDisposed()) return Promise.reject(new
|
|
392
|
+
if (isDisposed()) return Promise.reject(new chunkX4GDXBOP_cjs.BackendDisposedError());
|
|
393
393
|
if (queueTaskContext?.getStore() === taskMarker) {
|
|
394
394
|
return rejectReentrantQueueSubmission();
|
|
395
395
|
}
|
|
@@ -417,7 +417,7 @@ function runWithSerializedQueue(queue, task) {
|
|
|
417
417
|
return queue.runExclusive(task);
|
|
418
418
|
}
|
|
419
419
|
function throwSqliteTransactionsDisabled(message) {
|
|
420
|
-
throw new
|
|
420
|
+
throw new chunkX4GDXBOP_cjs.ConfigurationError(message, {
|
|
421
421
|
backend: "sqlite",
|
|
422
422
|
capability: "transactions",
|
|
423
423
|
supportsTransactions: false
|
|
@@ -425,20 +425,20 @@ function throwSqliteTransactionsDisabled(message) {
|
|
|
425
425
|
}
|
|
426
426
|
function buildSqliteCapabilities(options) {
|
|
427
427
|
const base = options.transactionMode === "none" ? {
|
|
428
|
-
...
|
|
428
|
+
...chunkGHZPZNFC_cjs.SQLITE_CAPABILITIES,
|
|
429
429
|
transactions: false,
|
|
430
430
|
graphAnalytics: {
|
|
431
|
-
...
|
|
431
|
+
...chunkGHZPZNFC_cjs.SQLITE_CAPABILITIES.graphAnalytics ?? {
|
|
432
432
|
mathFunctions: false
|
|
433
433
|
},
|
|
434
434
|
supported: false
|
|
435
435
|
}
|
|
436
|
-
} :
|
|
436
|
+
} : chunkGHZPZNFC_cjs.SQLITE_CAPABILITIES;
|
|
437
437
|
return {
|
|
438
438
|
...base,
|
|
439
439
|
maxBindParameters: options.maxBindParameters,
|
|
440
|
-
fulltext:
|
|
441
|
-
...options.vectorStrategy === void 0 ? {} : { vector:
|
|
440
|
+
fulltext: chunkTEC24ZDA_cjs.buildFulltextCapabilities(options.fulltextStrategy),
|
|
441
|
+
...options.vectorStrategy === void 0 ? {} : { vector: chunkTEC24ZDA_cjs.buildVectorCapabilities(options.vectorStrategy) }
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
444
|
function resolveMaxBindParametersCapability(profile, override) {
|
|
@@ -446,7 +446,7 @@ function resolveMaxBindParametersCapability(profile, override) {
|
|
|
446
446
|
return profile.hardMaxBindParameters === void 0 ? requested : Math.min(requested, profile.hardMaxBindParameters);
|
|
447
447
|
}
|
|
448
448
|
function resolveSqliteGraphAnalyticsCapabilities(profile, override) {
|
|
449
|
-
const requested = override ??
|
|
449
|
+
const requested = override ?? chunkGHZPZNFC_cjs.SQLITE_CAPABILITIES.graphAnalytics ?? {
|
|
450
450
|
supported: false,
|
|
451
451
|
mathFunctions: false
|
|
452
452
|
};
|
|
@@ -492,7 +492,7 @@ function createSqliteOperationBackend(options) {
|
|
|
492
492
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
493
493
|
if (compiledRun === void 0) {
|
|
494
494
|
await db.run(
|
|
495
|
-
|
|
495
|
+
chunkOJHD3LXJ_cjs.isSqlFragment(query) ? chunk45YZXI6X_cjs.toDrizzleSql(query, "sqlite") : query
|
|
496
496
|
);
|
|
497
497
|
return;
|
|
498
498
|
}
|
|
@@ -500,17 +500,17 @@ function createSqliteOperationBackend(options) {
|
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
502
|
const batchConfig = computeSqliteBatchChunkSizes(
|
|
503
|
-
capabilities.maxBindParameters ??
|
|
503
|
+
capabilities.maxBindParameters ?? chunkGHZPZNFC_cjs.SQLITE_MAX_BIND_PARAMETERS
|
|
504
504
|
);
|
|
505
|
-
const commonOperationMembers =
|
|
505
|
+
const commonOperationMembers = chunkXMY2SXOH_cjs.createCommonOperationBackend({
|
|
506
506
|
batchConfig,
|
|
507
507
|
execution: {
|
|
508
508
|
execAll,
|
|
509
509
|
execGet,
|
|
510
510
|
execRun
|
|
511
511
|
},
|
|
512
|
-
nowIso:
|
|
513
|
-
maxBindParameters: capabilities.maxBindParameters ??
|
|
512
|
+
nowIso: chunkEH3JZJUM_cjs.nowIso,
|
|
513
|
+
maxBindParameters: capabilities.maxBindParameters ?? chunkGHZPZNFC_cjs.SQLITE_MAX_BIND_PARAMETERS,
|
|
514
514
|
operationStrategy,
|
|
515
515
|
rowMappers: {
|
|
516
516
|
toEdgeRow,
|
|
@@ -530,28 +530,28 @@ function createSqliteOperationBackend(options) {
|
|
|
530
530
|
};
|
|
531
531
|
const vectorEmbeddingMethods = vectorStrategy === void 0 ? {} : {
|
|
532
532
|
async upsertEmbedding(params) {
|
|
533
|
-
const slot =
|
|
533
|
+
const slot = chunkXMY2SXOH_cjs.vectorSlotFromParams(params);
|
|
534
534
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
535
|
-
const statements = vectorStrategy.buildUpsert(slot, params,
|
|
535
|
+
const statements = vectorStrategy.buildUpsert(slot, params, chunkEH3JZJUM_cjs.nowIso());
|
|
536
536
|
try {
|
|
537
537
|
for (const statement of statements) {
|
|
538
538
|
await execRun(statement);
|
|
539
539
|
}
|
|
540
540
|
} catch (error) {
|
|
541
|
-
throw
|
|
541
|
+
throw chunkXMY2SXOH_cjs.mapVectorWriteError(error, params);
|
|
542
542
|
}
|
|
543
543
|
},
|
|
544
544
|
async upsertEmbeddingBatch(params) {
|
|
545
545
|
if (params.rows.length === 0) return;
|
|
546
|
-
const slot =
|
|
546
|
+
const slot = chunkXMY2SXOH_cjs.vectorSlotFromParams(params);
|
|
547
547
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
548
548
|
const rowsById = new Map(
|
|
549
549
|
params.rows.map((row) => [row.nodeId, row])
|
|
550
550
|
);
|
|
551
551
|
const rows = [...rowsById.values()];
|
|
552
|
-
const timestamp =
|
|
552
|
+
const timestamp = chunkEH3JZJUM_cjs.nowIso();
|
|
553
553
|
try {
|
|
554
|
-
for (const chunk2 of
|
|
554
|
+
for (const chunk2 of chunkZBFZGLZE_cjs.chunk(
|
|
555
555
|
rows,
|
|
556
556
|
batchConfig.embeddingUpsertBatchSize
|
|
557
557
|
)) {
|
|
@@ -580,11 +580,11 @@ function createSqliteOperationBackend(options) {
|
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
} catch (error) {
|
|
583
|
-
throw
|
|
583
|
+
throw chunkXMY2SXOH_cjs.mapVectorWriteError(error, params);
|
|
584
584
|
}
|
|
585
585
|
},
|
|
586
586
|
async deleteEmbedding(params) {
|
|
587
|
-
const slot =
|
|
587
|
+
const slot = chunkXMY2SXOH_cjs.vectorSlotFromParams(params);
|
|
588
588
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
589
589
|
const statements = vectorStrategy.buildDelete(slot, params);
|
|
590
590
|
for (const statement of statements) {
|
|
@@ -593,9 +593,9 @@ function createSqliteOperationBackend(options) {
|
|
|
593
593
|
},
|
|
594
594
|
async deleteEmbeddingBatch(params) {
|
|
595
595
|
if (params.nodeIds.length === 0) return;
|
|
596
|
-
const slot =
|
|
596
|
+
const slot = chunkXMY2SXOH_cjs.vectorSlotFromParams(params);
|
|
597
597
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
598
|
-
for (const nodeIds of
|
|
598
|
+
for (const nodeIds of chunkZBFZGLZE_cjs.chunk(
|
|
599
599
|
[...new Set(params.nodeIds)],
|
|
600
600
|
batchConfig.embeddingUpsertBatchSize
|
|
601
601
|
)) {
|
|
@@ -607,33 +607,33 @@ function createSqliteOperationBackend(options) {
|
|
|
607
607
|
}
|
|
608
608
|
},
|
|
609
609
|
async vectorSearch(params) {
|
|
610
|
-
|
|
611
|
-
|
|
610
|
+
chunkTEC24ZDA_cjs.assertVectorSearchLimit(params.limit);
|
|
611
|
+
chunkTEC24ZDA_cjs.resolveEfSearchOverride({
|
|
612
612
|
efSearch: params.efSearch,
|
|
613
613
|
indexType: params.indexType,
|
|
614
|
-
tuning:
|
|
614
|
+
tuning: chunkTEC24ZDA_cjs.vectorSearchFrontierTuning(vectorStrategy),
|
|
615
615
|
transactions: capabilities.transactions,
|
|
616
616
|
dialect: "SQLite",
|
|
617
617
|
engine: vectorStrategy.name
|
|
618
618
|
});
|
|
619
|
-
const slot =
|
|
619
|
+
const slot = chunkXMY2SXOH_cjs.vectorSlotFromParams(params);
|
|
620
620
|
const query = vectorStrategy.buildSearch(
|
|
621
621
|
slot,
|
|
622
622
|
params,
|
|
623
623
|
// Store-compiled candidates (predicates + subclass + currency)
|
|
624
624
|
// take precedence; the live-node default covers direct backend use.
|
|
625
|
-
params.candidates ??
|
|
625
|
+
params.candidates ?? chunkXMY2SXOH_cjs.buildLiveNodeCandidates(
|
|
626
626
|
tableNames.nodes,
|
|
627
627
|
params.graphId,
|
|
628
628
|
params.nodeKind,
|
|
629
|
-
|
|
629
|
+
chunkEH3JZJUM_cjs.nowIso()
|
|
630
630
|
)
|
|
631
631
|
);
|
|
632
632
|
let rows;
|
|
633
633
|
try {
|
|
634
634
|
rows = await execAll(query);
|
|
635
635
|
} catch (error) {
|
|
636
|
-
throw
|
|
636
|
+
throw chunkXMY2SXOH_cjs.mapVectorWriteError(error, params);
|
|
637
637
|
}
|
|
638
638
|
return rows.map((row) => ({
|
|
639
639
|
nodeId: row.node_id,
|
|
@@ -645,17 +645,17 @@ function createSqliteOperationBackend(options) {
|
|
|
645
645
|
// fallback by simply not exposing the member.
|
|
646
646
|
...capabilities.windowFunctions ? {
|
|
647
647
|
async hybridSearch(params) {
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
648
|
+
chunkTEC24ZDA_cjs.assertVectorSearchLimit(params.limit);
|
|
649
|
+
chunkTEC24ZDA_cjs.assertVectorSearchLimit(params.vector.k);
|
|
650
|
+
chunkTEC24ZDA_cjs.resolveEfSearchOverride({
|
|
651
651
|
efSearch: params.vector.efSearch,
|
|
652
652
|
indexType: params.vector.indexType,
|
|
653
|
-
tuning:
|
|
653
|
+
tuning: chunkTEC24ZDA_cjs.vectorSearchFrontierTuning(vectorStrategy),
|
|
654
654
|
transactions: capabilities.transactions,
|
|
655
655
|
dialect: "SQLite",
|
|
656
656
|
engine: vectorStrategy.name
|
|
657
657
|
});
|
|
658
|
-
const slot =
|
|
658
|
+
const slot = chunkXMY2SXOH_cjs.vectorSlotFromParams({
|
|
659
659
|
graphId: params.graphId,
|
|
660
660
|
nodeKind: params.nodeKind,
|
|
661
661
|
fieldPath: params.vector.fieldPath,
|
|
@@ -663,11 +663,11 @@ function createSqliteOperationBackend(options) {
|
|
|
663
663
|
metric: params.vector.metric,
|
|
664
664
|
indexType: params.vector.indexType
|
|
665
665
|
});
|
|
666
|
-
const candidates = params.candidates ??
|
|
666
|
+
const candidates = params.candidates ?? chunkXMY2SXOH_cjs.buildLiveNodeCandidates(
|
|
667
667
|
tableNames.nodes,
|
|
668
668
|
params.graphId,
|
|
669
669
|
params.nodeKind,
|
|
670
|
-
|
|
670
|
+
chunkEH3JZJUM_cjs.nowIso()
|
|
671
671
|
);
|
|
672
672
|
const vectorParams = {
|
|
673
673
|
graphId: params.graphId,
|
|
@@ -683,20 +683,20 @@ function createSqliteOperationBackend(options) {
|
|
|
683
683
|
const vectorSql = vectorStrategy.buildSearch(
|
|
684
684
|
slot,
|
|
685
685
|
vectorParams,
|
|
686
|
-
|
|
686
|
+
chunkOJHD3LXJ_cjs.sql.raw("SELECT node_id FROM tg_hybrid_cand")
|
|
687
687
|
);
|
|
688
688
|
const statement = operationStrategy.buildHybridSearch(
|
|
689
689
|
{ ...params, candidates },
|
|
690
|
-
|
|
690
|
+
chunk45YZXI6X_cjs.toDrizzleSql(vectorSql, "sqlite"),
|
|
691
691
|
params.vector.metric === "cosine"
|
|
692
692
|
);
|
|
693
693
|
let raw;
|
|
694
694
|
try {
|
|
695
695
|
raw = await execAll(statement);
|
|
696
696
|
} catch (error) {
|
|
697
|
-
throw
|
|
697
|
+
throw chunkXMY2SXOH_cjs.mapVectorWriteError(error, vectorParams);
|
|
698
698
|
}
|
|
699
|
-
return raw.map((row) =>
|
|
699
|
+
return raw.map((row) => chunkXMY2SXOH_cjs.mapHybridSearchRow(row, toNodeRow));
|
|
700
700
|
}
|
|
701
701
|
} : {}
|
|
702
702
|
};
|
|
@@ -741,7 +741,7 @@ function createSqliteOperationBackend(options) {
|
|
|
741
741
|
...vectorStrategy === void 0 ? {} : { vectorStrategy },
|
|
742
742
|
async lockSchemaVersionForWrite(params) {
|
|
743
743
|
if (!transactionScoped) {
|
|
744
|
-
throw new
|
|
744
|
+
throw new chunkX4GDXBOP_cjs.ConfigurationError(
|
|
745
745
|
"The schema write fence requires an explicit SQLite transaction.",
|
|
746
746
|
{
|
|
747
747
|
code: "SCHEMA_WRITE_FENCE_TRANSACTION_REQUIRED",
|
|
@@ -752,7 +752,7 @@ function createSqliteOperationBackend(options) {
|
|
|
752
752
|
const active = await commonOperationMembers.getActiveSchema(
|
|
753
753
|
params.graphId
|
|
754
754
|
);
|
|
755
|
-
|
|
755
|
+
chunkXMY2SXOH_cjs.assertActiveSchemaVersion(
|
|
756
756
|
params.graphId,
|
|
757
757
|
params.expectedVersion,
|
|
758
758
|
active?.version ?? 0
|
|
@@ -760,7 +760,7 @@ function createSqliteOperationBackend(options) {
|
|
|
760
760
|
},
|
|
761
761
|
async createVectorIndex(params) {
|
|
762
762
|
if (vectorStrategy === void 0) return;
|
|
763
|
-
const slot =
|
|
763
|
+
const slot = chunkXMY2SXOH_cjs.vectorSlotFromCreateIndexParams(params);
|
|
764
764
|
await contributionMaterializer.ensureVectorSlot(slot);
|
|
765
765
|
const indexStatement = vectorStrategy.buildCreateIndex?.(slot);
|
|
766
766
|
if (indexStatement !== void 0) {
|
|
@@ -769,18 +769,18 @@ function createSqliteOperationBackend(options) {
|
|
|
769
769
|
},
|
|
770
770
|
async dropVectorIndex(params) {
|
|
771
771
|
if (vectorStrategy === void 0) return;
|
|
772
|
-
const slot =
|
|
772
|
+
const slot = chunkXMY2SXOH_cjs.vectorSlotFromDropIndexParams(params);
|
|
773
773
|
const dropStatement = vectorStrategy.buildDropIndex?.(slot);
|
|
774
774
|
if (dropStatement === void 0) return;
|
|
775
775
|
try {
|
|
776
776
|
await execRun(dropStatement);
|
|
777
777
|
} catch (error) {
|
|
778
|
-
if (!
|
|
778
|
+
if (!chunkZBFZGLZE_cjs.isMissingTableError(error)) throw error;
|
|
779
779
|
}
|
|
780
780
|
},
|
|
781
781
|
// === Fulltext Operations ===
|
|
782
782
|
async upsertFulltext(params) {
|
|
783
|
-
const timestamp =
|
|
783
|
+
const timestamp = chunkEH3JZJUM_cjs.nowIso();
|
|
784
784
|
const statements = operationStrategy.buildUpsertFulltext(
|
|
785
785
|
params,
|
|
786
786
|
timestamp
|
|
@@ -797,8 +797,8 @@ function createSqliteOperationBackend(options) {
|
|
|
797
797
|
},
|
|
798
798
|
async upsertFulltextBatch(params) {
|
|
799
799
|
if (params.rows.length === 0) return;
|
|
800
|
-
const timestamp =
|
|
801
|
-
for (const rows of
|
|
800
|
+
const timestamp = chunkEH3JZJUM_cjs.nowIso();
|
|
801
|
+
for (const rows of chunkZBFZGLZE_cjs.chunk(
|
|
802
802
|
params.rows,
|
|
803
803
|
batchConfig.fulltextUpsertBatchSize
|
|
804
804
|
)) {
|
|
@@ -813,7 +813,7 @@ function createSqliteOperationBackend(options) {
|
|
|
813
813
|
},
|
|
814
814
|
async deleteFulltextBatch(params) {
|
|
815
815
|
if (params.nodeIds.length === 0) return;
|
|
816
|
-
for (const nodeIds of
|
|
816
|
+
for (const nodeIds of chunkZBFZGLZE_cjs.chunk(
|
|
817
817
|
params.nodeIds,
|
|
818
818
|
batchConfig.fulltextDeleteChunkSize
|
|
819
819
|
)) {
|
|
@@ -831,7 +831,7 @@ function createSqliteOperationBackend(options) {
|
|
|
831
831
|
const rows = await execAll(query);
|
|
832
832
|
return rows.map((row, index) => ({
|
|
833
833
|
nodeId: row.node_id,
|
|
834
|
-
score:
|
|
834
|
+
score: chunkEH3JZJUM_cjs.coerceNumericScore(row.score),
|
|
835
835
|
rank: index + 1,
|
|
836
836
|
...row.snippet === null ? {} : { snippet: row.snippet }
|
|
837
837
|
}));
|
|
@@ -864,18 +864,18 @@ function getSerializedSqliteConnection(db) {
|
|
|
864
864
|
return isLocalLibsqlClient(client) ? client : void 0;
|
|
865
865
|
}
|
|
866
866
|
function createSqliteBackend(db, options = {}) {
|
|
867
|
-
const resourceAudit =
|
|
867
|
+
const resourceAudit = chunkZBFZGLZE_cjs.resolveDeclaredBackendResource(
|
|
868
868
|
getSerializedSqliteConnection(db),
|
|
869
869
|
options.serializedResource
|
|
870
870
|
);
|
|
871
|
-
const tables2 = options.tables ??
|
|
872
|
-
const fulltextStrategy = options.fulltext ??
|
|
871
|
+
const tables2 = options.tables ?? chunkTP4NJTI3_cjs.tables2;
|
|
872
|
+
const fulltextStrategy = options.fulltext ?? chunkTEC24ZDA_cjs.fts5Strategy;
|
|
873
873
|
const profileHints = options.executionProfile ?? {};
|
|
874
874
|
const executionAdapter = createSqliteExecutionAdapter(db, { profileHints });
|
|
875
875
|
const { isSync, transactionMode } = executionAdapter.profile;
|
|
876
876
|
const vectorStrategy = options.vector;
|
|
877
877
|
const capabilityOverrides = options.capabilities ?? {};
|
|
878
|
-
const declaredCapabilities =
|
|
878
|
+
const declaredCapabilities = chunkGHZPZNFC_cjs.normalizeGraphAnalyticsCapabilities({
|
|
879
879
|
...buildSqliteCapabilities({
|
|
880
880
|
fulltextStrategy,
|
|
881
881
|
vectorStrategy,
|
|
@@ -897,7 +897,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
897
897
|
contributions: {
|
|
898
898
|
supported: true,
|
|
899
899
|
probe: true,
|
|
900
|
-
rebuild:
|
|
900
|
+
rebuild: chunkXMY2SXOH_cjs.contributionRebuildSupported(
|
|
901
901
|
fulltextStrategy,
|
|
902
902
|
tables2.fulltextTableName,
|
|
903
903
|
declaredCapabilities.transactions
|
|
@@ -916,7 +916,8 @@ function createSqliteBackend(db, options = {}) {
|
|
|
916
916
|
identityClosure: drizzleOrm.getTableName(tables2.identityClosure),
|
|
917
917
|
identitySeparation: drizzleOrm.getTableName(tables2.identitySeparation),
|
|
918
918
|
fulltext: tables2.fulltextTableName,
|
|
919
|
-
uniques: drizzleOrm.getTableName(tables2.uniques)
|
|
919
|
+
uniques: drizzleOrm.getTableName(tables2.uniques),
|
|
920
|
+
edgeClaims: drizzleOrm.getTableName(tables2.edgeClaims)
|
|
920
921
|
};
|
|
921
922
|
const coreAnalyzeTables = [
|
|
922
923
|
tableNames.nodes,
|
|
@@ -933,14 +934,14 @@ function createSqliteBackend(db, options = {}) {
|
|
|
933
934
|
tableNames.identityClosure,
|
|
934
935
|
tableNames.identitySeparation
|
|
935
936
|
];
|
|
936
|
-
const operationStrategy =
|
|
937
|
+
const operationStrategy = chunkXMY2SXOH_cjs.createSqliteOperationStrategy(
|
|
937
938
|
tables2,
|
|
938
939
|
fulltextStrategy
|
|
939
940
|
);
|
|
940
941
|
const serializedQueue = transactionMode === "none" ? void 0 : createSerializedExecutionQueue();
|
|
941
942
|
const matTable = tables2.contributionMaterializations;
|
|
942
943
|
async function ensureContributionMaterializationsTableImpl() {
|
|
943
|
-
await db.run(drizzleOrm.sql.raw(
|
|
944
|
+
await db.run(drizzleOrm.sql.raw(chunkTP4NJTI3_cjs.generateSqliteCreateTableSQL(matTable)));
|
|
944
945
|
}
|
|
945
946
|
async function getContributionMaterializationRow(identity) {
|
|
946
947
|
const rows = await db.select().from(matTable).where(
|
|
@@ -953,25 +954,25 @@ function createSqliteBackend(db, options = {}) {
|
|
|
953
954
|
);
|
|
954
955
|
const row = rows[0];
|
|
955
956
|
if (row === void 0) return void 0;
|
|
956
|
-
return
|
|
957
|
+
return chunkXMY2SXOH_cjs.mapContributionMaterializationRow(
|
|
957
958
|
row,
|
|
958
|
-
|
|
959
|
+
chunkXMY2SXOH_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
959
960
|
);
|
|
960
961
|
}
|
|
961
962
|
async function getContributionMaterializationRows(graphId) {
|
|
962
963
|
const rows = await db.select().from(matTable).where(drizzleOrm.eq(matTable.graphId, graphId));
|
|
963
964
|
return rows.map(
|
|
964
|
-
(row) =>
|
|
965
|
+
(row) => chunkXMY2SXOH_cjs.mapContributionMaterializationRow(
|
|
965
966
|
row,
|
|
966
|
-
|
|
967
|
+
chunkXMY2SXOH_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
967
968
|
)
|
|
968
969
|
);
|
|
969
970
|
}
|
|
970
971
|
async function recordContributionMaterializationRow(params) {
|
|
971
972
|
await db.insert(matTable).values(
|
|
972
|
-
|
|
973
|
+
chunkXMY2SXOH_cjs.buildContributionInsertValues(
|
|
973
974
|
params,
|
|
974
|
-
|
|
975
|
+
chunkXMY2SXOH_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.encode
|
|
975
976
|
)
|
|
976
977
|
).onConflictDoUpdate({
|
|
977
978
|
target: [
|
|
@@ -980,7 +981,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
980
981
|
matTable.owner,
|
|
981
982
|
matTable.tableName
|
|
982
983
|
],
|
|
983
|
-
set:
|
|
984
|
+
set: chunkXMY2SXOH_cjs.buildContributionOnConflictSet(
|
|
984
985
|
matTable.materializedAt,
|
|
985
986
|
params.materializedAt
|
|
986
987
|
)
|
|
@@ -1000,20 +1001,20 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1000
1001
|
const rows = await executionAdapter.execute(
|
|
1001
1002
|
operationStrategy.buildTableExists(tableName)
|
|
1002
1003
|
);
|
|
1003
|
-
return
|
|
1004
|
+
return chunkXMY2SXOH_cjs.tableExistsFromRow(rows[0]);
|
|
1004
1005
|
}
|
|
1005
1006
|
function identityContributionsFor(identityTableNames) {
|
|
1006
|
-
const identityTables =
|
|
1007
|
+
const identityTables = chunkTP4NJTI3_cjs.createSqliteTables({
|
|
1007
1008
|
identityAssertions: identityTableNames.identityAssertions,
|
|
1008
1009
|
recordedIdentityAssertions: identityTableNames.recordedIdentityAssertions,
|
|
1009
1010
|
identityClosure: identityTableNames.identityClosure,
|
|
1010
1011
|
identitySeparation: identityTableNames.identitySeparation
|
|
1011
1012
|
});
|
|
1012
|
-
return
|
|
1013
|
+
return chunkTP4NJTI3_cjs.sqliteContributions(identityTables, fulltextStrategy).filter(
|
|
1013
1014
|
(contribution) => IDENTITY_TABLE_LOGICAL_NAMES.has(contribution.logicalName)
|
|
1014
1015
|
);
|
|
1015
1016
|
}
|
|
1016
|
-
const contributionMaterializer =
|
|
1017
|
+
const contributionMaterializer = chunkXMY2SXOH_cjs.createContributionMaterializer({
|
|
1017
1018
|
dialect: "sqlite",
|
|
1018
1019
|
fulltextStrategy,
|
|
1019
1020
|
fulltextTableName: tables2.fulltextTableName,
|
|
@@ -1153,7 +1154,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1153
1154
|
vectorStrategy,
|
|
1154
1155
|
contributionMaterializer
|
|
1155
1156
|
});
|
|
1156
|
-
return
|
|
1157
|
+
return chunkXMY2SXOH_cjs.gateFulltext(
|
|
1157
1158
|
txBackend,
|
|
1158
1159
|
contributionMaterializer.assertInitialized,
|
|
1159
1160
|
contributionMaterializer.refuseUnavailableFulltext
|
|
@@ -1169,29 +1170,29 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1169
1170
|
...options_.schemaWrite
|
|
1170
1171
|
});
|
|
1171
1172
|
}
|
|
1172
|
-
await
|
|
1173
|
-
const indexDefinitions = await
|
|
1173
|
+
await chunkXMY2SXOH_cjs.assertTrustedImportDatabaseEmpty(tx, tableNames);
|
|
1174
|
+
const indexDefinitions = await chunkXMY2SXOH_cjs.suspendSqliteSecondaryIndexes(
|
|
1174
1175
|
tx,
|
|
1175
1176
|
tableNames
|
|
1176
1177
|
);
|
|
1177
1178
|
const result = await fn(
|
|
1178
|
-
|
|
1179
|
+
chunkXMY2SXOH_cjs.createSqliteTrustedImportSession(executionAdapter, tableNames)
|
|
1179
1180
|
);
|
|
1180
|
-
await
|
|
1181
|
-
await
|
|
1181
|
+
await chunkXMY2SXOH_cjs.restoreSecondaryIndexes(tx, indexDefinitions);
|
|
1182
|
+
await chunkXMY2SXOH_cjs.analyzeImportedTables(tx, tableNames);
|
|
1182
1183
|
return result;
|
|
1183
1184
|
});
|
|
1184
1185
|
}
|
|
1185
1186
|
} : {},
|
|
1186
1187
|
async bootstrapTables() {
|
|
1187
|
-
const statements =
|
|
1188
|
+
const statements = chunkTP4NJTI3_cjs.generateSqliteDDL(tables2, fulltextStrategy);
|
|
1188
1189
|
for (const statement of statements) {
|
|
1189
1190
|
await db.run(drizzleOrm.sql.raw(statement));
|
|
1190
1191
|
}
|
|
1191
1192
|
},
|
|
1192
1193
|
async ensureRevisionOriginsTable() {
|
|
1193
1194
|
await db.run(
|
|
1194
|
-
drizzleOrm.sql.raw(
|
|
1195
|
+
drizzleOrm.sql.raw(chunkTP4NJTI3_cjs.generateSqliteCreateTableSQL(tables2.revisionOrigins))
|
|
1195
1196
|
);
|
|
1196
1197
|
},
|
|
1197
1198
|
async ensureIdentityTables(identityTableNames, options2) {
|
|
@@ -1221,7 +1222,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1221
1222
|
// uninitialized database throws `StoreNotInitializedError` rather
|
|
1222
1223
|
// than self-healing (#135). Shared verbatim with the tx-scoped gate
|
|
1223
1224
|
// via `gateFulltextMethods`.
|
|
1224
|
-
...
|
|
1225
|
+
...chunkXMY2SXOH_cjs.gateFulltextMethods(
|
|
1225
1226
|
operations,
|
|
1226
1227
|
contributionMaterializer.assertInitialized,
|
|
1227
1228
|
contributionMaterializer.refuseUnavailableFulltext
|
|
@@ -1231,7 +1232,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1231
1232
|
},
|
|
1232
1233
|
async ensureIndexMaterializationsTable() {
|
|
1233
1234
|
await db.run(
|
|
1234
|
-
drizzleOrm.sql.raw(
|
|
1235
|
+
drizzleOrm.sql.raw(chunkTP4NJTI3_cjs.generateSqliteCreateTableSQL(tables2.indexMaterializations))
|
|
1235
1236
|
);
|
|
1236
1237
|
},
|
|
1237
1238
|
async getIndexMaterialization(indexName) {
|
|
@@ -1239,26 +1240,26 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1239
1240
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.indexName, indexName));
|
|
1240
1241
|
const row = rows[0];
|
|
1241
1242
|
if (row === void 0) return void 0;
|
|
1242
|
-
return
|
|
1243
|
+
return chunkXMY2SXOH_cjs.mapMaterializationRow(row, chunkXMY2SXOH_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode);
|
|
1243
1244
|
},
|
|
1244
1245
|
async getIndexMaterializations(statusKeys) {
|
|
1245
1246
|
if (statusKeys.length === 0) return [];
|
|
1246
1247
|
const t = tables2.indexMaterializations;
|
|
1247
1248
|
const rows = await db.select().from(t).where(drizzleOrm.inArray(t.indexName, [...statusKeys]));
|
|
1248
1249
|
return rows.map(
|
|
1249
|
-
(row) =>
|
|
1250
|
+
(row) => chunkXMY2SXOH_cjs.mapMaterializationRow(row, chunkXMY2SXOH_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode)
|
|
1250
1251
|
);
|
|
1251
1252
|
},
|
|
1252
1253
|
async recordIndexMaterialization(params) {
|
|
1253
1254
|
const t = tables2.indexMaterializations;
|
|
1254
1255
|
await db.insert(t).values(
|
|
1255
|
-
|
|
1256
|
+
chunkXMY2SXOH_cjs.buildMaterializationInsertValues(
|
|
1256
1257
|
params,
|
|
1257
|
-
|
|
1258
|
+
chunkXMY2SXOH_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.encode
|
|
1258
1259
|
)
|
|
1259
1260
|
).onConflictDoUpdate({
|
|
1260
1261
|
target: t.indexName,
|
|
1261
|
-
set:
|
|
1262
|
+
set: chunkXMY2SXOH_cjs.buildMaterializationOnConflictSet(params.materializedAt)
|
|
1262
1263
|
});
|
|
1263
1264
|
},
|
|
1264
1265
|
async ensureContributionMaterializationsTable() {
|
|
@@ -1274,37 +1275,37 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1274
1275
|
await contributionMaterializer.assertInitialized(graphId);
|
|
1275
1276
|
},
|
|
1276
1277
|
async ensureKindRemovalsTable() {
|
|
1277
|
-
await db.run(drizzleOrm.sql.raw(
|
|
1278
|
+
await db.run(drizzleOrm.sql.raw(chunkTP4NJTI3_cjs.generateSqliteCreateTableSQL(tables2.kindRemovals)));
|
|
1278
1279
|
},
|
|
1279
1280
|
async getPendingKindRemovals(graphId) {
|
|
1280
1281
|
const t = tables2.kindRemovals;
|
|
1281
1282
|
const rows = await db.select().from(t).where(drizzleOrm.and(drizzleOrm.eq(t.graphId, graphId), drizzleOrm.isNull(t.removedAt)));
|
|
1282
1283
|
return rows.map(
|
|
1283
|
-
(row) =>
|
|
1284
|
+
(row) => chunkXMY2SXOH_cjs.mapKindRemovalRow(row, chunkXMY2SXOH_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1284
1285
|
);
|
|
1285
1286
|
},
|
|
1286
1287
|
async getAllKindRemovals(graphId) {
|
|
1287
1288
|
const t = tables2.kindRemovals;
|
|
1288
1289
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
|
|
1289
1290
|
return rows.map(
|
|
1290
|
-
(row) =>
|
|
1291
|
+
(row) => chunkXMY2SXOH_cjs.mapKindRemovalRow(row, chunkXMY2SXOH_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1291
1292
|
);
|
|
1292
1293
|
},
|
|
1293
1294
|
async recordKindRemoval(params) {
|
|
1294
1295
|
const t = tables2.kindRemovals;
|
|
1295
1296
|
await db.insert(t).values(
|
|
1296
|
-
|
|
1297
|
+
chunkXMY2SXOH_cjs.buildKindRemovalInsertValues(
|
|
1297
1298
|
params,
|
|
1298
|
-
|
|
1299
|
+
chunkXMY2SXOH_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.encode
|
|
1299
1300
|
)
|
|
1300
1301
|
).onConflictDoUpdate({
|
|
1301
1302
|
target: [t.graphId, t.kindName, t.entity, t.schemaVersion],
|
|
1302
|
-
set:
|
|
1303
|
+
set: chunkXMY2SXOH_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
|
|
1303
1304
|
});
|
|
1304
1305
|
},
|
|
1305
1306
|
async ensureReconciliationMarkersTable() {
|
|
1306
1307
|
await db.run(
|
|
1307
|
-
drizzleOrm.sql.raw(
|
|
1308
|
+
drizzleOrm.sql.raw(chunkTP4NJTI3_cjs.generateSqliteCreateTableSQL(tables2.reconciliationMarkers))
|
|
1308
1309
|
);
|
|
1309
1310
|
},
|
|
1310
1311
|
async ensureRuntimeContributions(graphId) {
|
|
@@ -1370,18 +1371,18 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1370
1371
|
async refreshStatistics() {
|
|
1371
1372
|
try {
|
|
1372
1373
|
await db.run(
|
|
1373
|
-
|
|
1374
|
-
|
|
1374
|
+
chunk45YZXI6X_cjs.toDrizzleSql(
|
|
1375
|
+
chunkOJHD3LXJ_cjs.sql`PRAGMA analysis_limit = ${chunkOJHD3LXJ_cjs.sql.raw(String(SQLITE_ANALYZE_ROW_LIMIT))}`,
|
|
1375
1376
|
"sqlite"
|
|
1376
1377
|
)
|
|
1377
1378
|
);
|
|
1378
1379
|
} catch (error) {
|
|
1379
|
-
if (!
|
|
1380
|
+
if (!chunkZBFZGLZE_cjs.isSqliteNotAuthorizedError(error)) throw error;
|
|
1380
1381
|
}
|
|
1381
1382
|
for (const tableName of coreAnalyzeTables) {
|
|
1382
1383
|
await db.run(
|
|
1383
|
-
|
|
1384
|
-
|
|
1384
|
+
chunk45YZXI6X_cjs.toDrizzleSql(
|
|
1385
|
+
chunkOJHD3LXJ_cjs.sql`ANALYZE ${chunkOJHD3LXJ_cjs.sql.identifier(tableName)}`,
|
|
1385
1386
|
"sqlite"
|
|
1386
1387
|
)
|
|
1387
1388
|
);
|
|
@@ -1389,13 +1390,13 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1389
1390
|
for (const tableName of guardedAnalyzeTables) {
|
|
1390
1391
|
try {
|
|
1391
1392
|
await db.run(
|
|
1392
|
-
|
|
1393
|
-
|
|
1393
|
+
chunk45YZXI6X_cjs.toDrizzleSql(
|
|
1394
|
+
chunkOJHD3LXJ_cjs.sql`ANALYZE ${chunkOJHD3LXJ_cjs.sql.identifier(tableName)}`,
|
|
1394
1395
|
"sqlite"
|
|
1395
1396
|
)
|
|
1396
1397
|
);
|
|
1397
1398
|
} catch (error) {
|
|
1398
|
-
if (!
|
|
1399
|
+
if (!chunkZBFZGLZE_cjs.isMissingTableError(error)) throw error;
|
|
1399
1400
|
}
|
|
1400
1401
|
}
|
|
1401
1402
|
},
|
|
@@ -1406,7 +1407,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1406
1407
|
},
|
|
1407
1408
|
async commitSchemaVersionIfKindsEmpty(params, probes) {
|
|
1408
1409
|
return runSchemaWriteTransaction(
|
|
1409
|
-
(target) =>
|
|
1410
|
+
(target) => chunkXMY2SXOH_cjs.commitSchemaVersionIfKindsEmpty(target, params, probes)
|
|
1410
1411
|
);
|
|
1411
1412
|
},
|
|
1412
1413
|
async commitSchemaVersionWithPreflight(params, preflight) {
|
|
@@ -1427,9 +1428,9 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1427
1428
|
return backend.transactionWithNative((tx) => fn(tx), options2);
|
|
1428
1429
|
},
|
|
1429
1430
|
async transactionWithNative(fn, options2) {
|
|
1430
|
-
const temporaryWrites = options2?.temporaryWrites ===
|
|
1431
|
+
const temporaryWrites = options2?.temporaryWrites === chunkGHZPZNFC_cjs.INTERNAL_TEMPORARY_WRITES;
|
|
1431
1432
|
if (temporaryWrites && options2.accessMode !== "read_only") {
|
|
1432
|
-
throw new
|
|
1433
|
+
throw new chunkX4GDXBOP_cjs.ConfigurationError(
|
|
1433
1434
|
"Temporary-write transactions must be semantically read-only.",
|
|
1434
1435
|
{ dialect: "sqlite" }
|
|
1435
1436
|
);
|
|
@@ -1457,7 +1458,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1457
1458
|
);
|
|
1458
1459
|
try {
|
|
1459
1460
|
const result = await fn(
|
|
1460
|
-
|
|
1461
|
+
chunkXMY2SXOH_cjs.gateFulltext(
|
|
1461
1462
|
txBackend,
|
|
1462
1463
|
contributionMaterializer.assertInitialized,
|
|
1463
1464
|
contributionMaterializer.refuseUnavailableFulltext
|
|
@@ -1490,7 +1491,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1490
1491
|
"Cross-store atomicity is unavailable on this SQLite backend: transactions are disabled (transactionMode: 'none'). Adopting an external transaction here would let the caller's relational write commit with no way to roll back the graph write. Configure a driver that supports transactions (better-sqlite3, libsql, bun:sqlite)."
|
|
1491
1492
|
);
|
|
1492
1493
|
}
|
|
1493
|
-
|
|
1494
|
+
chunkXMY2SXOH_cjs.assertAdoptedDialect(
|
|
1494
1495
|
externalTx,
|
|
1495
1496
|
sqliteCore.BaseSQLiteDatabase,
|
|
1496
1497
|
"sqlite"
|
|
@@ -1502,7 +1503,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1502
1503
|
return Promise.resolve();
|
|
1503
1504
|
}
|
|
1504
1505
|
};
|
|
1505
|
-
|
|
1506
|
+
chunkZBFZGLZE_cjs.auditBackendResource(backend, resourceAudit);
|
|
1506
1507
|
return backend;
|
|
1507
1508
|
}
|
|
1508
1509
|
function createTransactionBackend(options) {
|
|
@@ -1524,5 +1525,5 @@ function createTransactionBackend(options) {
|
|
|
1524
1525
|
|
|
1525
1526
|
exports.createSqliteBackend = createSqliteBackend;
|
|
1526
1527
|
exports.isLocalLibsqlClient = isLocalLibsqlClient;
|
|
1527
|
-
//# sourceMappingURL=chunk-
|
|
1528
|
-
//# sourceMappingURL=chunk-
|
|
1528
|
+
//# sourceMappingURL=chunk-K2XYLVVB.cjs.map
|
|
1529
|
+
//# sourceMappingURL=chunk-K2XYLVVB.cjs.map
|