@nicia-ai/typegraph 0.46.2 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- 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 +58 -49
- package/dist/backend/index.d.cts +37 -55
- package/dist/backend/index.d.ts +37 -55
- package/dist/backend/index.js +11 -10
- package/dist/backend/postgres/index.cjs +27 -26
- package/dist/backend/postgres/index.d.cts +21 -7
- package/dist/backend/postgres/index.d.ts +21 -7
- package/dist/backend/postgres/index.js +14 -13
- package/dist/backend/postgres/pglite-store.cjs +34 -33
- 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 +30 -29
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +16 -15
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +15 -14
- package/dist/backend/sqlite/index.cjs +24 -23
- package/dist/backend/sqlite/index.d.cts +20 -7
- package/dist/backend/sqlite/index.d.ts +20 -7
- package/dist/backend/sqlite/index.js +12 -11
- package/dist/backend/sqlite/libsql.cjs +19 -18
- 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 +14 -13
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +35 -34
- 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 +31 -30
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +17 -16
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +15 -14
- package/dist/{chunk-TCT66A7N.cjs → chunk-26YKDNUD.cjs} +10 -10
- package/dist/{chunk-TCT66A7N.cjs.map → chunk-26YKDNUD.cjs.map} +1 -1
- package/dist/{chunk-E4OSGBCM.cjs → chunk-2HIYYMWY.cjs} +139 -136
- package/dist/chunk-2HIYYMWY.cjs.map +1 -0
- package/dist/chunk-2QGYQBS2.cjs +161 -0
- package/dist/chunk-2QGYQBS2.cjs.map +1 -0
- package/dist/{chunk-GWXXHOLU.js → chunk-2SYZXD54.js} +21 -18
- package/dist/chunk-2SYZXD54.js.map +1 -0
- package/dist/{chunk-KA4L2NZ3.js → chunk-2TYSSBU5.js} +14 -14
- package/dist/{chunk-KA4L2NZ3.js.map → chunk-2TYSSBU5.js.map} +1 -1
- package/dist/{chunk-QOJ2L2AD.js → chunk-3DMMGT6S.js} +3 -3
- package/dist/{chunk-QOJ2L2AD.js.map → chunk-3DMMGT6S.js.map} +1 -1
- package/dist/{chunk-F36KZDFX.cjs → chunk-3FPR224C.cjs} +91 -91
- package/dist/{chunk-F36KZDFX.cjs.map → chunk-3FPR224C.cjs.map} +1 -1
- package/dist/{chunk-32UETY6S.cjs → chunk-3KOY4FH3.cjs} +207 -28
- package/dist/chunk-3KOY4FH3.cjs.map +1 -0
- package/dist/{chunk-QU7QLJA4.cjs → chunk-3U5ABFDW.cjs} +26 -26
- package/dist/{chunk-QU7QLJA4.cjs.map → chunk-3U5ABFDW.cjs.map} +1 -1
- package/dist/{chunk-RFDEYLIK.js → chunk-4WMMBDS5.js} +7 -7
- package/dist/chunk-4WMMBDS5.js.map +1 -0
- package/dist/{chunk-R7EWHKID.js → chunk-5K2BKEBD.js} +19 -145
- package/dist/chunk-5K2BKEBD.js.map +1 -0
- package/dist/chunk-5PRKMB24.cjs +124 -0
- package/dist/chunk-5PRKMB24.cjs.map +1 -0
- package/dist/chunk-6LN7FIVU.js +107 -0
- package/dist/chunk-6LN7FIVU.js.map +1 -0
- package/dist/{chunk-D6GCNNMK.cjs → chunk-6NGW27EO.cjs} +10 -10
- package/dist/{chunk-D6GCNNMK.cjs.map → chunk-6NGW27EO.cjs.map} +1 -1
- package/dist/{chunk-WHS2Y43J.js → chunk-6SWPJEYN.js} +5 -5
- package/dist/{chunk-WHS2Y43J.js.map → chunk-6SWPJEYN.js.map} +1 -1
- package/dist/{chunk-7TKNK32B.js → chunk-7SQSZN2J.js} +5 -5
- package/dist/{chunk-7TKNK32B.js.map → chunk-7SQSZN2J.js.map} +1 -1
- package/dist/{chunk-UTVQPZPN.cjs → chunk-7XUYFFR4.cjs} +20 -20
- package/dist/chunk-7XUYFFR4.cjs.map +1 -0
- package/dist/{chunk-KXSMF6PL.js → chunk-ACGSAMD3.js} +39 -34
- package/dist/chunk-ACGSAMD3.js.map +1 -0
- package/dist/{chunk-PYKF7UIL.cjs → chunk-AOSSQDVO.cjs} +13 -13
- package/dist/{chunk-PYKF7UIL.cjs.map → chunk-AOSSQDVO.cjs.map} +1 -1
- package/dist/{chunk-AT3MLMJV.js → chunk-AX6JGVTZ.js} +91 -20
- package/dist/chunk-AX6JGVTZ.js.map +1 -0
- package/dist/{chunk-WA64ZSCA.cjs → chunk-BFUOME67.cjs} +11 -11
- package/dist/{chunk-WA64ZSCA.cjs.map → chunk-BFUOME67.cjs.map} +1 -1
- package/dist/{chunk-YQ4JONWE.js → chunk-BRRP76WO.js} +401 -131
- package/dist/chunk-BRRP76WO.js.map +1 -0
- package/dist/{chunk-FCIZNUW5.js → chunk-CHAOFCHV.js} +3 -3
- package/dist/{chunk-FCIZNUW5.js.map → chunk-CHAOFCHV.js.map} +1 -1
- package/dist/chunk-CICO5GXD.cjs +12 -0
- package/dist/{chunk-73MWKDFK.cjs.map → chunk-CICO5GXD.cjs.map} +1 -1
- package/dist/{chunk-S3G5VLSW.js → chunk-CT3ZKTOF.js} +7 -6
- package/dist/chunk-CT3ZKTOF.js.map +1 -0
- package/dist/{chunk-SXWLLQ3D.js → chunk-D5R42W5D.js} +4 -4
- package/dist/{chunk-SXWLLQ3D.js.map → chunk-D5R42W5D.js.map} +1 -1
- package/dist/{chunk-BZZI7B43.cjs → chunk-DO7SAMEK.cjs} +47 -47
- package/dist/{chunk-BZZI7B43.cjs.map → chunk-DO7SAMEK.cjs.map} +1 -1
- package/dist/chunk-DZAICA5J.js +147 -0
- package/dist/chunk-DZAICA5J.js.map +1 -0
- package/dist/{chunk-2ZWM2RFH.cjs → chunk-EDN4Y4ZG.cjs} +9 -9
- package/dist/{chunk-2ZWM2RFH.cjs.map → chunk-EDN4Y4ZG.cjs.map} +1 -1
- package/dist/{chunk-A4R3H7RU.cjs → chunk-EZEEWCFJ.cjs} +264 -361
- package/dist/chunk-EZEEWCFJ.cjs.map +1 -0
- package/dist/{chunk-BEB4OFZF.cjs → chunk-FA2AFWLP.cjs} +51 -59
- package/dist/chunk-FA2AFWLP.cjs.map +1 -0
- package/dist/{chunk-ZBVZ7HXD.cjs → chunk-FQPEMEWX.cjs} +12 -12
- package/dist/{chunk-ZBVZ7HXD.cjs.map → chunk-FQPEMEWX.cjs.map} +1 -1
- package/dist/{chunk-LNIWCQR4.js → chunk-GLHXM7C4.js} +3 -3
- package/dist/{chunk-LNIWCQR4.js.map → chunk-GLHXM7C4.js.map} +1 -1
- package/dist/{chunk-6BD6ZBKT.cjs → chunk-GYEG3ZLZ.cjs} +10 -10
- package/dist/{chunk-6BD6ZBKT.cjs.map → chunk-GYEG3ZLZ.cjs.map} +1 -1
- package/dist/{chunk-A7NMUYEL.cjs → chunk-HDL2ARHX.cjs} +27 -27
- package/dist/{chunk-A7NMUYEL.cjs.map → chunk-HDL2ARHX.cjs.map} +1 -1
- package/dist/{chunk-5ZJOB5YS.js → chunk-HEV35TGT.js} +4 -4
- package/dist/{chunk-5ZJOB5YS.js.map → chunk-HEV35TGT.js.map} +1 -1
- package/dist/{chunk-LHYSY6SE.js → chunk-I4GAZH5Z.js} +186 -9
- package/dist/chunk-I4GAZH5Z.js.map +1 -0
- package/dist/{chunk-BQM5P2NO.cjs → chunk-JB6T4GLL.cjs} +260 -223
- package/dist/chunk-JB6T4GLL.cjs.map +1 -0
- package/dist/{chunk-QPOQX2DI.cjs → chunk-JFRT7S3B.cjs} +1026 -369
- package/dist/chunk-JFRT7S3B.cjs.map +1 -0
- package/dist/{chunk-JCNTKRAK.js → chunk-JONXFAPO.js} +5 -5
- package/dist/{chunk-JCNTKRAK.js.map → chunk-JONXFAPO.js.map} +1 -1
- package/dist/{chunk-WEJHA7AD.js → chunk-KF6K7TGH.js} +109 -75
- package/dist/chunk-KF6K7TGH.js.map +1 -0
- package/dist/{chunk-EDJDDY6H.js → chunk-KKBDXCLQ.js} +4 -4
- package/dist/{chunk-EDJDDY6H.js.map → chunk-KKBDXCLQ.js.map} +1 -1
- package/dist/{chunk-ZHOAZD7Q.cjs → chunk-L3LQNR34.cjs} +161 -161
- package/dist/{chunk-ZHOAZD7Q.cjs.map → chunk-L3LQNR34.cjs.map} +1 -1
- package/dist/{chunk-AF3TWL5C.cjs → chunk-LRQKXRXO.cjs} +4 -4
- package/dist/{chunk-AF3TWL5C.cjs.map → chunk-LRQKXRXO.cjs.map} +1 -1
- package/dist/chunk-MKJ4KXL5.cjs +12 -0
- package/dist/{chunk-6LAXM4J2.cjs.map → chunk-MKJ4KXL5.cjs.map} +1 -1
- package/dist/{chunk-KCH7WQA5.cjs → chunk-MRDBBHIZ.cjs} +48 -2
- package/dist/chunk-MRDBBHIZ.cjs.map +1 -0
- package/dist/{chunk-FXNHZFZV.js → chunk-MYKHJI2J.js} +3 -3
- package/dist/{chunk-FXNHZFZV.js.map → chunk-MYKHJI2J.js.map} +1 -1
- package/dist/{chunk-Z43KWLZF.js → chunk-NACVVDWB.js} +213 -12
- package/dist/chunk-NACVVDWB.js.map +1 -0
- package/dist/{chunk-72WUT4GG.js → chunk-NVY5CJFP.js} +4 -4
- package/dist/{chunk-72WUT4GG.js.map → chunk-NVY5CJFP.js.map} +1 -1
- package/dist/{chunk-WYFB7BN3.js → chunk-OD4SSY2U.js} +166 -48
- package/dist/chunk-OD4SSY2U.js.map +1 -0
- package/dist/{chunk-ZIH42CRX.cjs → chunk-OI2GQ25X.cjs} +7 -7
- package/dist/{chunk-ZIH42CRX.cjs.map → chunk-OI2GQ25X.cjs.map} +1 -1
- package/dist/{chunk-AU3IJNNP.js → chunk-OMZ37BM2.js} +5 -5
- package/dist/{chunk-AU3IJNNP.js.map → chunk-OMZ37BM2.js.map} +1 -1
- package/dist/{chunk-C4DYN2SD.cjs → chunk-OORXGFL5.cjs} +48 -48
- package/dist/{chunk-C4DYN2SD.cjs.map → chunk-OORXGFL5.cjs.map} +1 -1
- package/dist/{chunk-HNYLMPQQ.cjs → chunk-OTUPEF2W.cjs} +149 -78
- package/dist/chunk-OTUPEF2W.cjs.map +1 -0
- package/dist/{chunk-BRN3RGD2.js → chunk-OVI7IXYX.js} +3 -3
- package/dist/{chunk-BRN3RGD2.js.map → chunk-OVI7IXYX.js.map} +1 -1
- package/dist/{chunk-WMKEGJG4.js → chunk-P6YLZTRE.js} +3 -3
- package/dist/{chunk-WMKEGJG4.js.map → chunk-P6YLZTRE.js.map} +1 -1
- package/dist/{chunk-C2ZP5YS6.cjs → chunk-PFBRJBUL.cjs} +278 -160
- package/dist/chunk-PFBRJBUL.cjs.map +1 -0
- package/dist/{chunk-EJSYWAEV.js → chunk-QTD6HX4O.js} +5 -5
- package/dist/{chunk-EJSYWAEV.js.map → chunk-QTD6HX4O.js.map} +1 -1
- package/dist/{chunk-JL5UEBWT.cjs → chunk-ROR5ZR6A.cjs} +45 -45
- package/dist/{chunk-JL5UEBWT.cjs.map → chunk-ROR5ZR6A.cjs.map} +1 -1
- package/dist/{chunk-EDHV4CBU.js → chunk-S5TERQVW.js} +37 -134
- package/dist/chunk-S5TERQVW.js.map +1 -0
- package/dist/{chunk-FSLTU57P.js → chunk-SDBBMD4N.js} +3 -3
- package/dist/{chunk-FSLTU57P.js.map → chunk-SDBBMD4N.js.map} +1 -1
- package/dist/{chunk-36LIJXWC.js → chunk-SHFBB23Q.js} +4 -4
- package/dist/{chunk-36LIJXWC.js.map → chunk-SHFBB23Q.js.map} +1 -1
- package/dist/chunk-SIT26LAZ.cjs +614 -0
- package/dist/chunk-SIT26LAZ.cjs.map +1 -0
- package/dist/{chunk-C6KE2HSQ.cjs → chunk-SR725PWF.cjs} +1662 -1392
- package/dist/chunk-SR725PWF.cjs.map +1 -0
- package/dist/{chunk-S7WIRFNS.cjs → chunk-TKZXMWQF.cjs} +13 -12
- package/dist/chunk-TKZXMWQF.cjs.map +1 -0
- package/dist/{chunk-5PDSCELM.cjs → chunk-TQHGE7UC.cjs} +29 -164
- package/dist/chunk-TQHGE7UC.cjs.map +1 -0
- package/dist/{chunk-XBHRKLZU.cjs → chunk-TUNPBZY3.cjs} +4 -4
- package/dist/{chunk-XBHRKLZU.cjs.map → chunk-TUNPBZY3.cjs.map} +1 -1
- package/dist/{chunk-KOAI3KIV.cjs → chunk-TZEGUG6D.cjs} +4 -4
- package/dist/{chunk-KOAI3KIV.cjs.map → chunk-TZEGUG6D.cjs.map} +1 -1
- package/dist/chunk-UGHG7PGX.js +592 -0
- package/dist/chunk-UGHG7PGX.js.map +1 -0
- package/dist/{chunk-N3QTGPC7.cjs → chunk-UMGZDVOA.cjs} +303 -101
- package/dist/chunk-UMGZDVOA.cjs.map +1 -0
- package/dist/{chunk-RHDOAQCT.cjs → chunk-WCCATHMB.cjs} +140 -135
- package/dist/chunk-WCCATHMB.cjs.map +1 -0
- package/dist/{chunk-DYPRZ53S.cjs → chunk-WODMN3Q2.cjs} +27 -27
- package/dist/{chunk-DYPRZ53S.cjs.map → chunk-WODMN3Q2.cjs.map} +1 -1
- package/dist/{chunk-OZJCH7ZS.js → chunk-XVWOYKIK.js} +3 -3
- package/dist/{chunk-OZJCH7ZS.js.map → chunk-XVWOYKIK.js.map} +1 -1
- package/dist/{chunk-IHRDX7K6.js → chunk-YIURNGXI.js} +46 -56
- package/dist/chunk-YIURNGXI.js.map +1 -0
- package/dist/{chunk-GWUWRZXW.js → chunk-YVF2EM7B.js} +3 -3
- package/dist/{chunk-GWUWRZXW.js.map → chunk-YVF2EM7B.js.map} +1 -1
- package/dist/{chunk-EAMVXR5B.js → chunk-ZDKTPBGV.js} +4 -4
- package/dist/{chunk-EAMVXR5B.js.map → chunk-ZDKTPBGV.js.map} +1 -1
- package/dist/{chunk-A2LJG5GM.js → chunk-ZFMCDJGB.js} +803 -148
- package/dist/chunk-ZFMCDJGB.js.map +1 -0
- package/dist/{chunk-62ZXBMSD.js → chunk-ZLONH2UD.js} +46 -3
- package/dist/chunk-ZLONH2UD.js.map +1 -0
- package/dist/core/index.cjs +28 -27
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +8 -7
- package/dist/ddl-BL1NZLMY.d.cts +78 -0
- package/dist/ddl-D_oW-EVO.d.ts +78 -0
- package/dist/graph-extension/index.cjs +20 -20
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +4 -4
- package/dist/graph-merge/index.cjs +3418 -706
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +550 -58
- package/dist/graph-merge/index.d.ts +550 -58
- package/dist/graph-merge/index.js +3191 -497
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-Deyu8IXL.d.ts → index-COs_z6nV.d.cts} +47 -3
- package/dist/{index-DrRS51Ld.d.cts → index-D7d1u2gr.d.ts} +47 -3
- package/dist/index.cjs +233 -216
- 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 +35 -34
- 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/interchange/index.cjs +53 -52
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +17 -13
- package/dist/interchange/index.d.ts +17 -13
- package/dist/interchange/index.js +17 -16
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-ptr3JLRP.d.cts → manager-CYaff3n3.d.cts} +2 -2
- package/dist/{manager-DX983gJ0.d.ts → manager-D9eRT_ns.d.ts} +2 -2
- package/dist/{materialize-indexes-CpXoggWU.d.ts → materialize-indexes-DJ3ykH59.d.ts} +1 -1
- package/dist/{materialize-indexes-BXz77YqO.d.cts → materialize-indexes-DTtAnvfY.d.cts} +1 -1
- package/dist/{postgres-DwgEXSPI.d.cts → postgres-CcL4bAHS.d.ts} +1 -1
- package/dist/{postgres-QdOMHTBz.d.ts → postgres-DMj39MEu.d.cts} +1 -1
- package/dist/profiler/index.d.cts +9 -9
- package/dist/profiler/index.d.ts +9 -9
- package/dist/provenance/index.cjs +46 -46
- 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 +13 -13
- package/dist/provenance/index.js.map +1 -1
- package/dist/repair-validity-windows-BFNZvd_H.d.cts +166 -0
- package/dist/repair-validity-windows-DlUSqwCg.d.ts +166 -0
- package/dist/schema/index.cjs +45 -44
- package/dist/schema/index.d.cts +6 -6
- package/dist/schema/index.d.ts +6 -6
- package/dist/schema/index.js +18 -17
- package/dist/{searchable-BOUuA83f.d.ts → searchable-DHJMh_nj.d.cts} +1 -1
- package/dist/{searchable-BrUh0pdc.d.cts → searchable-bpE1bBfc.d.ts} +1 -1
- package/dist/{sqlite-BfYcV61E.d.cts → sqlite-D7Oz0SQh.d.ts} +1 -1
- package/dist/{sqlite-DK40XVR1.d.ts → sqlite-YppHrNFb.d.cts} +1 -1
- package/dist/{store-FTqBpuJD.d.cts → store-JUVvtmR4.d.cts} +228 -92
- package/dist/{store-Bo1psfVZ.d.ts → store-UzrGvZOo.d.ts} +228 -92
- package/dist/{temporal-DPtn0HOu.d.ts → temporal-5GqpYCk2.d.cts} +1 -1
- package/dist/{temporal-CXewwLTB.d.cts → temporal-CbnLzTmM.d.ts} +1 -1
- package/dist/{types-Du78EvpN.d.ts → types-BqFZTQmV.d.cts} +60 -9
- package/dist/{types-Du78EvpN.d.cts → types-BqFZTQmV.d.ts} +60 -9
- package/dist/{types-CeT7xM4M.d.ts → types-Bx74kaTt.d.ts} +1 -1
- package/dist/{types-XR1nHERK.d.cts → types-CXAhpW-c.d.cts} +1 -1
- package/dist/{where-CJsp-YUf.d.cts → where-DI_Fqz-X.d.cts} +1 -1
- package/dist/{where-CMbFiWwp.d.ts → where-O-k2wgYm.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-32UETY6S.cjs.map +0 -1
- package/dist/chunk-5PDSCELM.cjs.map +0 -1
- package/dist/chunk-62ZXBMSD.js.map +0 -1
- package/dist/chunk-6LAXM4J2.cjs +0 -12
- package/dist/chunk-73MWKDFK.cjs +0 -12
- package/dist/chunk-A2LJG5GM.js.map +0 -1
- package/dist/chunk-A4R3H7RU.cjs.map +0 -1
- package/dist/chunk-ANKOXPCC.cjs +0 -267
- package/dist/chunk-ANKOXPCC.cjs.map +0 -1
- package/dist/chunk-AT3MLMJV.js.map +0 -1
- package/dist/chunk-BEB4OFZF.cjs.map +0 -1
- package/dist/chunk-BQM5P2NO.cjs.map +0 -1
- package/dist/chunk-C2ZP5YS6.cjs.map +0 -1
- package/dist/chunk-C6KE2HSQ.cjs.map +0 -1
- package/dist/chunk-DSAWGCMP.js +0 -254
- package/dist/chunk-DSAWGCMP.js.map +0 -1
- package/dist/chunk-E4OSGBCM.cjs.map +0 -1
- package/dist/chunk-EDHV4CBU.js.map +0 -1
- package/dist/chunk-FA6Z7B5L.js +0 -244
- package/dist/chunk-FA6Z7B5L.js.map +0 -1
- package/dist/chunk-GVAMRRZR.cjs +0 -268
- package/dist/chunk-GVAMRRZR.cjs.map +0 -1
- package/dist/chunk-GWXXHOLU.js.map +0 -1
- package/dist/chunk-HNYLMPQQ.cjs.map +0 -1
- package/dist/chunk-IHRDX7K6.js.map +0 -1
- package/dist/chunk-KCH7WQA5.cjs.map +0 -1
- package/dist/chunk-KXSMF6PL.js.map +0 -1
- package/dist/chunk-LHYSY6SE.js.map +0 -1
- package/dist/chunk-N3QTGPC7.cjs.map +0 -1
- package/dist/chunk-QPOQX2DI.cjs.map +0 -1
- package/dist/chunk-R7EWHKID.js.map +0 -1
- package/dist/chunk-RFDEYLIK.js.map +0 -1
- package/dist/chunk-RHDOAQCT.cjs.map +0 -1
- package/dist/chunk-S3G5VLSW.js.map +0 -1
- package/dist/chunk-S7WIRFNS.cjs.map +0 -1
- package/dist/chunk-UTVQPZPN.cjs.map +0 -1
- package/dist/chunk-WEJHA7AD.js.map +0 -1
- package/dist/chunk-WYFB7BN3.js.map +0 -1
- package/dist/chunk-YQ4JONWE.js.map +0 -1
- package/dist/chunk-Z43KWLZF.js.map +0 -1
- package/dist/ddl-mE07h_EM.d.cts +0 -38
- package/dist/ddl-opIn8DfX.d.ts +0 -38
|
@@ -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 chunkWCCATHMB_cjs = require('./chunk-WCCATHMB.cjs');
|
|
4
|
+
var chunkFA2AFWLP_cjs = require('./chunk-FA2AFWLP.cjs');
|
|
5
|
+
var chunkHDL2ARHX_cjs = require('./chunk-HDL2ARHX.cjs');
|
|
6
|
+
var chunkWODMN3Q2_cjs = require('./chunk-WODMN3Q2.cjs');
|
|
7
|
+
var chunkSIT26LAZ_cjs = require('./chunk-SIT26LAZ.cjs');
|
|
8
|
+
var chunk5PRKMB24_cjs = require('./chunk-5PRKMB24.cjs');
|
|
9
|
+
var chunkL3LQNR34_cjs = require('./chunk-L3LQNR34.cjs');
|
|
10
|
+
var chunkEDN4Y4ZG_cjs = require('./chunk-EDN4Y4ZG.cjs');
|
|
11
|
+
var chunkMRDBBHIZ_cjs = require('./chunk-MRDBBHIZ.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 chunk5PRKMB24_cjs.DURABLE_OBJECT_MAX_BIND_PARAMETERS;
|
|
104
104
|
}
|
|
105
|
-
if (hostedPlatform === "d1") return
|
|
105
|
+
if (hostedPlatform === "d1") return chunk5PRKMB24_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 chunk5PRKMB24_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 ? chunk5PRKMB24_cjs.MODERN_SQLITE_MAX_BIND_PARAMETERS : chunk5PRKMB24_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
120
120
|
} catch {
|
|
121
|
-
return
|
|
121
|
+
return chunk5PRKMB24_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 chunkWCCATHMB_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) => chunkWODMN3Q2_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
|
+
chunkEDN4Y4ZG_cjs.isSqlFragment(query) ? chunkWODMN3Q2_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 / chunkWCCATHMB_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 - chunkWCCATHMB_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 = chunkFA2AFWLP_cjs.createNodeRowMapper(chunkFA2AFWLP_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
349
|
+
var toEdgeRow = chunkFA2AFWLP_cjs.createEdgeRowMapper(chunkFA2AFWLP_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
350
|
+
var toUniqueRow = chunkFA2AFWLP_cjs.createUniqueRowMapper(chunkFA2AFWLP_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
351
|
+
var toSchemaVersionRow = chunkFA2AFWLP_cjs.createSchemaVersionRowMapper(
|
|
352
|
+
chunkFA2AFWLP_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 chunkMRDBBHIZ_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 chunkMRDBBHIZ_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 chunkMRDBBHIZ_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
|
+
...chunk5PRKMB24_cjs.SQLITE_CAPABILITIES,
|
|
429
429
|
transactions: false,
|
|
430
430
|
graphAnalytics: {
|
|
431
|
-
...
|
|
431
|
+
...chunk5PRKMB24_cjs.SQLITE_CAPABILITIES.graphAnalytics ?? {
|
|
432
432
|
mathFunctions: false
|
|
433
433
|
},
|
|
434
434
|
supported: false
|
|
435
435
|
}
|
|
436
|
-
} :
|
|
436
|
+
} : chunk5PRKMB24_cjs.SQLITE_CAPABILITIES;
|
|
437
437
|
return {
|
|
438
438
|
...base,
|
|
439
439
|
maxBindParameters: options.maxBindParameters,
|
|
440
|
-
fulltext:
|
|
441
|
-
...options.vectorStrategy === void 0 ? {} : { vector:
|
|
440
|
+
fulltext: chunkL3LQNR34_cjs.buildFulltextCapabilities(options.fulltextStrategy),
|
|
441
|
+
...options.vectorStrategy === void 0 ? {} : { vector: chunkL3LQNR34_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 ?? chunk5PRKMB24_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
|
+
chunkEDN4Y4ZG_cjs.isSqlFragment(query) ? chunkWODMN3Q2_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 ?? chunk5PRKMB24_cjs.SQLITE_MAX_BIND_PARAMETERS
|
|
504
504
|
);
|
|
505
|
-
const
|
|
505
|
+
const commonOperationMembers = chunkWCCATHMB_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: chunkFA2AFWLP_cjs.nowIso,
|
|
513
|
+
maxBindParameters: capabilities.maxBindParameters ?? chunk5PRKMB24_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 = chunkWCCATHMB_cjs.vectorSlotFromParams(params);
|
|
534
534
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
535
|
-
const statements = vectorStrategy.buildUpsert(slot, params,
|
|
535
|
+
const statements = vectorStrategy.buildUpsert(slot, params, chunkFA2AFWLP_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 chunkWCCATHMB_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 = chunkWCCATHMB_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 = chunkFA2AFWLP_cjs.nowIso();
|
|
553
553
|
try {
|
|
554
|
-
for (const chunk2 of
|
|
554
|
+
for (const chunk2 of chunkSIT26LAZ_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 chunkWCCATHMB_cjs.mapVectorWriteError(error, params);
|
|
584
584
|
}
|
|
585
585
|
},
|
|
586
586
|
async deleteEmbedding(params) {
|
|
587
|
-
const slot =
|
|
587
|
+
const slot = chunkWCCATHMB_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 = chunkWCCATHMB_cjs.vectorSlotFromParams(params);
|
|
597
597
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
598
|
-
for (const nodeIds of
|
|
598
|
+
for (const nodeIds of chunkSIT26LAZ_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
|
+
chunkL3LQNR34_cjs.assertVectorSearchLimit(params.limit);
|
|
611
|
+
chunkL3LQNR34_cjs.resolveEfSearchOverride({
|
|
612
612
|
efSearch: params.efSearch,
|
|
613
613
|
indexType: params.indexType,
|
|
614
|
-
tuning:
|
|
614
|
+
tuning: chunkL3LQNR34_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 = chunkWCCATHMB_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 ?? chunkWCCATHMB_cjs.buildLiveNodeCandidates(
|
|
626
626
|
tableNames.nodes,
|
|
627
627
|
params.graphId,
|
|
628
628
|
params.nodeKind,
|
|
629
|
-
|
|
629
|
+
chunkFA2AFWLP_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 chunkWCCATHMB_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
|
+
chunkL3LQNR34_cjs.assertVectorSearchLimit(params.limit);
|
|
649
|
+
chunkL3LQNR34_cjs.assertVectorSearchLimit(params.vector.k);
|
|
650
|
+
chunkL3LQNR34_cjs.resolveEfSearchOverride({
|
|
651
651
|
efSearch: params.vector.efSearch,
|
|
652
652
|
indexType: params.vector.indexType,
|
|
653
|
-
tuning:
|
|
653
|
+
tuning: chunkL3LQNR34_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 = chunkWCCATHMB_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 ?? chunkWCCATHMB_cjs.buildLiveNodeCandidates(
|
|
667
667
|
tableNames.nodes,
|
|
668
668
|
params.graphId,
|
|
669
669
|
params.nodeKind,
|
|
670
|
-
|
|
670
|
+
chunkFA2AFWLP_cjs.nowIso()
|
|
671
671
|
);
|
|
672
672
|
const vectorParams = {
|
|
673
673
|
graphId: params.graphId,
|
|
@@ -683,25 +683,25 @@ function createSqliteOperationBackend(options) {
|
|
|
683
683
|
const vectorSql = vectorStrategy.buildSearch(
|
|
684
684
|
slot,
|
|
685
685
|
vectorParams,
|
|
686
|
-
|
|
686
|
+
chunkEDN4Y4ZG_cjs.sql.raw("SELECT node_id FROM tg_hybrid_cand")
|
|
687
687
|
);
|
|
688
688
|
const statement = operationStrategy.buildHybridSearch(
|
|
689
689
|
{ ...params, candidates },
|
|
690
|
-
|
|
690
|
+
chunkWODMN3Q2_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 chunkWCCATHMB_cjs.mapVectorWriteError(error, vectorParams);
|
|
698
698
|
}
|
|
699
|
-
return raw.map((row) =>
|
|
699
|
+
return raw.map((row) => chunkWCCATHMB_cjs.mapHybridSearchRow(row, toNodeRow));
|
|
700
700
|
}
|
|
701
701
|
} : {}
|
|
702
702
|
};
|
|
703
703
|
const operationBackend = {
|
|
704
|
-
...
|
|
704
|
+
...commonOperationMembers,
|
|
705
705
|
...executeRawMethod,
|
|
706
706
|
...vectorEmbeddingMethods,
|
|
707
707
|
/**
|
|
@@ -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 chunkMRDBBHIZ_cjs.ConfigurationError(
|
|
745
745
|
"The schema write fence requires an explicit SQLite transaction.",
|
|
746
746
|
{
|
|
747
747
|
code: "SCHEMA_WRITE_FENCE_TRANSACTION_REQUIRED",
|
|
@@ -749,8 +749,10 @@ function createSqliteOperationBackend(options) {
|
|
|
749
749
|
}
|
|
750
750
|
);
|
|
751
751
|
}
|
|
752
|
-
const active = await
|
|
753
|
-
|
|
752
|
+
const active = await commonOperationMembers.getActiveSchema(
|
|
753
|
+
params.graphId
|
|
754
|
+
);
|
|
755
|
+
chunkWCCATHMB_cjs.assertActiveSchemaVersion(
|
|
754
756
|
params.graphId,
|
|
755
757
|
params.expectedVersion,
|
|
756
758
|
active?.version ?? 0
|
|
@@ -758,7 +760,7 @@ function createSqliteOperationBackend(options) {
|
|
|
758
760
|
},
|
|
759
761
|
async createVectorIndex(params) {
|
|
760
762
|
if (vectorStrategy === void 0) return;
|
|
761
|
-
const slot =
|
|
763
|
+
const slot = chunkWCCATHMB_cjs.vectorSlotFromCreateIndexParams(params);
|
|
762
764
|
await contributionMaterializer.ensureVectorSlot(slot);
|
|
763
765
|
const indexStatement = vectorStrategy.buildCreateIndex?.(slot);
|
|
764
766
|
if (indexStatement !== void 0) {
|
|
@@ -767,18 +769,18 @@ function createSqliteOperationBackend(options) {
|
|
|
767
769
|
},
|
|
768
770
|
async dropVectorIndex(params) {
|
|
769
771
|
if (vectorStrategy === void 0) return;
|
|
770
|
-
const slot =
|
|
772
|
+
const slot = chunkWCCATHMB_cjs.vectorSlotFromDropIndexParams(params);
|
|
771
773
|
const dropStatement = vectorStrategy.buildDropIndex?.(slot);
|
|
772
774
|
if (dropStatement === void 0) return;
|
|
773
775
|
try {
|
|
774
776
|
await execRun(dropStatement);
|
|
775
777
|
} catch (error) {
|
|
776
|
-
if (!
|
|
778
|
+
if (!chunkSIT26LAZ_cjs.isMissingTableError(error)) throw error;
|
|
777
779
|
}
|
|
778
780
|
},
|
|
779
781
|
// === Fulltext Operations ===
|
|
780
782
|
async upsertFulltext(params) {
|
|
781
|
-
const timestamp =
|
|
783
|
+
const timestamp = chunkFA2AFWLP_cjs.nowIso();
|
|
782
784
|
const statements = operationStrategy.buildUpsertFulltext(
|
|
783
785
|
params,
|
|
784
786
|
timestamp
|
|
@@ -795,8 +797,8 @@ function createSqliteOperationBackend(options) {
|
|
|
795
797
|
},
|
|
796
798
|
async upsertFulltextBatch(params) {
|
|
797
799
|
if (params.rows.length === 0) return;
|
|
798
|
-
const timestamp =
|
|
799
|
-
for (const rows of
|
|
800
|
+
const timestamp = chunkFA2AFWLP_cjs.nowIso();
|
|
801
|
+
for (const rows of chunkSIT26LAZ_cjs.chunk(
|
|
800
802
|
params.rows,
|
|
801
803
|
batchConfig.fulltextUpsertBatchSize
|
|
802
804
|
)) {
|
|
@@ -811,7 +813,7 @@ function createSqliteOperationBackend(options) {
|
|
|
811
813
|
},
|
|
812
814
|
async deleteFulltextBatch(params) {
|
|
813
815
|
if (params.nodeIds.length === 0) return;
|
|
814
|
-
for (const nodeIds of
|
|
816
|
+
for (const nodeIds of chunkSIT26LAZ_cjs.chunk(
|
|
815
817
|
params.nodeIds,
|
|
816
818
|
batchConfig.fulltextDeleteChunkSize
|
|
817
819
|
)) {
|
|
@@ -829,7 +831,7 @@ function createSqliteOperationBackend(options) {
|
|
|
829
831
|
const rows = await execAll(query);
|
|
830
832
|
return rows.map((row, index) => ({
|
|
831
833
|
nodeId: row.node_id,
|
|
832
|
-
score:
|
|
834
|
+
score: chunkFA2AFWLP_cjs.coerceNumericScore(row.score),
|
|
833
835
|
rank: index + 1,
|
|
834
836
|
...row.snippet === null ? {} : { snippet: row.snippet }
|
|
835
837
|
}));
|
|
@@ -862,15 +864,18 @@ function getSerializedSqliteConnection(db) {
|
|
|
862
864
|
return isLocalLibsqlClient(client) ? client : void 0;
|
|
863
865
|
}
|
|
864
866
|
function createSqliteBackend(db, options = {}) {
|
|
865
|
-
const
|
|
866
|
-
|
|
867
|
-
|
|
867
|
+
const resourceAudit = chunkSIT26LAZ_cjs.resolveDeclaredBackendResource(
|
|
868
|
+
getSerializedSqliteConnection(db),
|
|
869
|
+
options.serializedResource
|
|
870
|
+
);
|
|
871
|
+
const tables2 = options.tables ?? chunkHDL2ARHX_cjs.tables2;
|
|
872
|
+
const fulltextStrategy = options.fulltext ?? chunkL3LQNR34_cjs.fts5Strategy;
|
|
868
873
|
const profileHints = options.executionProfile ?? {};
|
|
869
874
|
const executionAdapter = createSqliteExecutionAdapter(db, { profileHints });
|
|
870
875
|
const { isSync, transactionMode } = executionAdapter.profile;
|
|
871
876
|
const vectorStrategy = options.vector;
|
|
872
877
|
const capabilityOverrides = options.capabilities ?? {};
|
|
873
|
-
const declaredCapabilities =
|
|
878
|
+
const declaredCapabilities = chunk5PRKMB24_cjs.normalizeGraphAnalyticsCapabilities({
|
|
874
879
|
...buildSqliteCapabilities({
|
|
875
880
|
fulltextStrategy,
|
|
876
881
|
vectorStrategy,
|
|
@@ -892,7 +897,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
892
897
|
contributions: {
|
|
893
898
|
supported: true,
|
|
894
899
|
probe: true,
|
|
895
|
-
rebuild:
|
|
900
|
+
rebuild: chunkWCCATHMB_cjs.contributionRebuildSupported(
|
|
896
901
|
fulltextStrategy,
|
|
897
902
|
tables2.fulltextTableName,
|
|
898
903
|
declaredCapabilities.transactions
|
|
@@ -928,14 +933,14 @@ function createSqliteBackend(db, options = {}) {
|
|
|
928
933
|
tableNames.identityClosure,
|
|
929
934
|
tableNames.identitySeparation
|
|
930
935
|
];
|
|
931
|
-
const operationStrategy =
|
|
936
|
+
const operationStrategy = chunkWCCATHMB_cjs.createSqliteOperationStrategy(
|
|
932
937
|
tables2,
|
|
933
938
|
fulltextStrategy
|
|
934
939
|
);
|
|
935
940
|
const serializedQueue = transactionMode === "none" ? void 0 : createSerializedExecutionQueue();
|
|
936
941
|
const matTable = tables2.contributionMaterializations;
|
|
937
942
|
async function ensureContributionMaterializationsTableImpl() {
|
|
938
|
-
await db.run(drizzleOrm.sql.raw(
|
|
943
|
+
await db.run(drizzleOrm.sql.raw(chunkHDL2ARHX_cjs.generateSqliteCreateTableSQL(matTable)));
|
|
939
944
|
}
|
|
940
945
|
async function getContributionMaterializationRow(identity) {
|
|
941
946
|
const rows = await db.select().from(matTable).where(
|
|
@@ -948,25 +953,25 @@ function createSqliteBackend(db, options = {}) {
|
|
|
948
953
|
);
|
|
949
954
|
const row = rows[0];
|
|
950
955
|
if (row === void 0) return void 0;
|
|
951
|
-
return
|
|
956
|
+
return chunkWCCATHMB_cjs.mapContributionMaterializationRow(
|
|
952
957
|
row,
|
|
953
|
-
|
|
958
|
+
chunkWCCATHMB_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
954
959
|
);
|
|
955
960
|
}
|
|
956
961
|
async function getContributionMaterializationRows(graphId) {
|
|
957
962
|
const rows = await db.select().from(matTable).where(drizzleOrm.eq(matTable.graphId, graphId));
|
|
958
963
|
return rows.map(
|
|
959
|
-
(row) =>
|
|
964
|
+
(row) => chunkWCCATHMB_cjs.mapContributionMaterializationRow(
|
|
960
965
|
row,
|
|
961
|
-
|
|
966
|
+
chunkWCCATHMB_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
962
967
|
)
|
|
963
968
|
);
|
|
964
969
|
}
|
|
965
970
|
async function recordContributionMaterializationRow(params) {
|
|
966
971
|
await db.insert(matTable).values(
|
|
967
|
-
|
|
972
|
+
chunkWCCATHMB_cjs.buildContributionInsertValues(
|
|
968
973
|
params,
|
|
969
|
-
|
|
974
|
+
chunkWCCATHMB_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.encode
|
|
970
975
|
)
|
|
971
976
|
).onConflictDoUpdate({
|
|
972
977
|
target: [
|
|
@@ -975,7 +980,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
975
980
|
matTable.owner,
|
|
976
981
|
matTable.tableName
|
|
977
982
|
],
|
|
978
|
-
set:
|
|
983
|
+
set: chunkWCCATHMB_cjs.buildContributionOnConflictSet(
|
|
979
984
|
matTable.materializedAt,
|
|
980
985
|
params.materializedAt
|
|
981
986
|
)
|
|
@@ -995,20 +1000,20 @@ function createSqliteBackend(db, options = {}) {
|
|
|
995
1000
|
const rows = await executionAdapter.execute(
|
|
996
1001
|
operationStrategy.buildTableExists(tableName)
|
|
997
1002
|
);
|
|
998
|
-
return
|
|
1003
|
+
return chunkWCCATHMB_cjs.tableExistsFromRow(rows[0]);
|
|
999
1004
|
}
|
|
1000
1005
|
function identityContributionsFor(identityTableNames) {
|
|
1001
|
-
const identityTables =
|
|
1006
|
+
const identityTables = chunkHDL2ARHX_cjs.createSqliteTables({
|
|
1002
1007
|
identityAssertions: identityTableNames.identityAssertions,
|
|
1003
1008
|
recordedIdentityAssertions: identityTableNames.recordedIdentityAssertions,
|
|
1004
1009
|
identityClosure: identityTableNames.identityClosure,
|
|
1005
1010
|
identitySeparation: identityTableNames.identitySeparation
|
|
1006
1011
|
});
|
|
1007
|
-
return
|
|
1012
|
+
return chunkHDL2ARHX_cjs.sqliteContributions(identityTables, fulltextStrategy).filter(
|
|
1008
1013
|
(contribution) => IDENTITY_TABLE_LOGICAL_NAMES.has(contribution.logicalName)
|
|
1009
1014
|
);
|
|
1010
1015
|
}
|
|
1011
|
-
const contributionMaterializer =
|
|
1016
|
+
const contributionMaterializer = chunkWCCATHMB_cjs.createContributionMaterializer({
|
|
1012
1017
|
dialect: "sqlite",
|
|
1013
1018
|
fulltextStrategy,
|
|
1014
1019
|
fulltextTableName: tables2.fulltextTableName,
|
|
@@ -1148,7 +1153,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1148
1153
|
vectorStrategy,
|
|
1149
1154
|
contributionMaterializer
|
|
1150
1155
|
});
|
|
1151
|
-
return
|
|
1156
|
+
return chunkWCCATHMB_cjs.gateFulltext(
|
|
1152
1157
|
txBackend,
|
|
1153
1158
|
contributionMaterializer.assertInitialized,
|
|
1154
1159
|
contributionMaterializer.refuseUnavailableFulltext
|
|
@@ -1164,29 +1169,29 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1164
1169
|
...options_.schemaWrite
|
|
1165
1170
|
});
|
|
1166
1171
|
}
|
|
1167
|
-
await
|
|
1168
|
-
const indexDefinitions = await
|
|
1172
|
+
await chunkWCCATHMB_cjs.assertTrustedImportDatabaseEmpty(tx, tableNames);
|
|
1173
|
+
const indexDefinitions = await chunkWCCATHMB_cjs.suspendSqliteSecondaryIndexes(
|
|
1169
1174
|
tx,
|
|
1170
1175
|
tableNames
|
|
1171
1176
|
);
|
|
1172
1177
|
const result = await fn(
|
|
1173
|
-
|
|
1178
|
+
chunkWCCATHMB_cjs.createSqliteTrustedImportSession(executionAdapter, tableNames)
|
|
1174
1179
|
);
|
|
1175
|
-
await
|
|
1176
|
-
await
|
|
1180
|
+
await chunkWCCATHMB_cjs.restoreSecondaryIndexes(tx, indexDefinitions);
|
|
1181
|
+
await chunkWCCATHMB_cjs.analyzeImportedTables(tx, tableNames);
|
|
1177
1182
|
return result;
|
|
1178
1183
|
});
|
|
1179
1184
|
}
|
|
1180
1185
|
} : {},
|
|
1181
1186
|
async bootstrapTables() {
|
|
1182
|
-
const statements =
|
|
1187
|
+
const statements = chunkHDL2ARHX_cjs.generateSqliteDDL(tables2, fulltextStrategy);
|
|
1183
1188
|
for (const statement of statements) {
|
|
1184
1189
|
await db.run(drizzleOrm.sql.raw(statement));
|
|
1185
1190
|
}
|
|
1186
1191
|
},
|
|
1187
1192
|
async ensureRevisionOriginsTable() {
|
|
1188
1193
|
await db.run(
|
|
1189
|
-
drizzleOrm.sql.raw(
|
|
1194
|
+
drizzleOrm.sql.raw(chunkHDL2ARHX_cjs.generateSqliteCreateTableSQL(tables2.revisionOrigins))
|
|
1190
1195
|
);
|
|
1191
1196
|
},
|
|
1192
1197
|
async ensureIdentityTables(identityTableNames, options2) {
|
|
@@ -1216,7 +1221,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1216
1221
|
// uninitialized database throws `StoreNotInitializedError` rather
|
|
1217
1222
|
// than self-healing (#135). Shared verbatim with the tx-scoped gate
|
|
1218
1223
|
// via `gateFulltextMethods`.
|
|
1219
|
-
...
|
|
1224
|
+
...chunkWCCATHMB_cjs.gateFulltextMethods(
|
|
1220
1225
|
operations,
|
|
1221
1226
|
contributionMaterializer.assertInitialized,
|
|
1222
1227
|
contributionMaterializer.refuseUnavailableFulltext
|
|
@@ -1226,7 +1231,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1226
1231
|
},
|
|
1227
1232
|
async ensureIndexMaterializationsTable() {
|
|
1228
1233
|
await db.run(
|
|
1229
|
-
drizzleOrm.sql.raw(
|
|
1234
|
+
drizzleOrm.sql.raw(chunkHDL2ARHX_cjs.generateSqliteCreateTableSQL(tables2.indexMaterializations))
|
|
1230
1235
|
);
|
|
1231
1236
|
},
|
|
1232
1237
|
async getIndexMaterialization(indexName) {
|
|
@@ -1234,26 +1239,26 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1234
1239
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.indexName, indexName));
|
|
1235
1240
|
const row = rows[0];
|
|
1236
1241
|
if (row === void 0) return void 0;
|
|
1237
|
-
return
|
|
1242
|
+
return chunkWCCATHMB_cjs.mapMaterializationRow(row, chunkWCCATHMB_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode);
|
|
1238
1243
|
},
|
|
1239
1244
|
async getIndexMaterializations(statusKeys) {
|
|
1240
1245
|
if (statusKeys.length === 0) return [];
|
|
1241
1246
|
const t = tables2.indexMaterializations;
|
|
1242
1247
|
const rows = await db.select().from(t).where(drizzleOrm.inArray(t.indexName, [...statusKeys]));
|
|
1243
1248
|
return rows.map(
|
|
1244
|
-
(row) =>
|
|
1249
|
+
(row) => chunkWCCATHMB_cjs.mapMaterializationRow(row, chunkWCCATHMB_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode)
|
|
1245
1250
|
);
|
|
1246
1251
|
},
|
|
1247
1252
|
async recordIndexMaterialization(params) {
|
|
1248
1253
|
const t = tables2.indexMaterializations;
|
|
1249
1254
|
await db.insert(t).values(
|
|
1250
|
-
|
|
1255
|
+
chunkWCCATHMB_cjs.buildMaterializationInsertValues(
|
|
1251
1256
|
params,
|
|
1252
|
-
|
|
1257
|
+
chunkWCCATHMB_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.encode
|
|
1253
1258
|
)
|
|
1254
1259
|
).onConflictDoUpdate({
|
|
1255
1260
|
target: t.indexName,
|
|
1256
|
-
set:
|
|
1261
|
+
set: chunkWCCATHMB_cjs.buildMaterializationOnConflictSet(params.materializedAt)
|
|
1257
1262
|
});
|
|
1258
1263
|
},
|
|
1259
1264
|
async ensureContributionMaterializationsTable() {
|
|
@@ -1269,37 +1274,37 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1269
1274
|
await contributionMaterializer.assertInitialized(graphId);
|
|
1270
1275
|
},
|
|
1271
1276
|
async ensureKindRemovalsTable() {
|
|
1272
|
-
await db.run(drizzleOrm.sql.raw(
|
|
1277
|
+
await db.run(drizzleOrm.sql.raw(chunkHDL2ARHX_cjs.generateSqliteCreateTableSQL(tables2.kindRemovals)));
|
|
1273
1278
|
},
|
|
1274
1279
|
async getPendingKindRemovals(graphId) {
|
|
1275
1280
|
const t = tables2.kindRemovals;
|
|
1276
1281
|
const rows = await db.select().from(t).where(drizzleOrm.and(drizzleOrm.eq(t.graphId, graphId), drizzleOrm.isNull(t.removedAt)));
|
|
1277
1282
|
return rows.map(
|
|
1278
|
-
(row) =>
|
|
1283
|
+
(row) => chunkWCCATHMB_cjs.mapKindRemovalRow(row, chunkWCCATHMB_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1279
1284
|
);
|
|
1280
1285
|
},
|
|
1281
1286
|
async getAllKindRemovals(graphId) {
|
|
1282
1287
|
const t = tables2.kindRemovals;
|
|
1283
1288
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
|
|
1284
1289
|
return rows.map(
|
|
1285
|
-
(row) =>
|
|
1290
|
+
(row) => chunkWCCATHMB_cjs.mapKindRemovalRow(row, chunkWCCATHMB_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1286
1291
|
);
|
|
1287
1292
|
},
|
|
1288
1293
|
async recordKindRemoval(params) {
|
|
1289
1294
|
const t = tables2.kindRemovals;
|
|
1290
1295
|
await db.insert(t).values(
|
|
1291
|
-
|
|
1296
|
+
chunkWCCATHMB_cjs.buildKindRemovalInsertValues(
|
|
1292
1297
|
params,
|
|
1293
|
-
|
|
1298
|
+
chunkWCCATHMB_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.encode
|
|
1294
1299
|
)
|
|
1295
1300
|
).onConflictDoUpdate({
|
|
1296
1301
|
target: [t.graphId, t.kindName, t.entity, t.schemaVersion],
|
|
1297
|
-
set:
|
|
1302
|
+
set: chunkWCCATHMB_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
|
|
1298
1303
|
});
|
|
1299
1304
|
},
|
|
1300
1305
|
async ensureReconciliationMarkersTable() {
|
|
1301
1306
|
await db.run(
|
|
1302
|
-
drizzleOrm.sql.raw(
|
|
1307
|
+
drizzleOrm.sql.raw(chunkHDL2ARHX_cjs.generateSqliteCreateTableSQL(tables2.reconciliationMarkers))
|
|
1303
1308
|
);
|
|
1304
1309
|
},
|
|
1305
1310
|
async ensureRuntimeContributions(graphId) {
|
|
@@ -1365,18 +1370,18 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1365
1370
|
async refreshStatistics() {
|
|
1366
1371
|
try {
|
|
1367
1372
|
await db.run(
|
|
1368
|
-
|
|
1369
|
-
|
|
1373
|
+
chunkWODMN3Q2_cjs.toDrizzleSql(
|
|
1374
|
+
chunkEDN4Y4ZG_cjs.sql`PRAGMA analysis_limit = ${chunkEDN4Y4ZG_cjs.sql.raw(String(SQLITE_ANALYZE_ROW_LIMIT))}`,
|
|
1370
1375
|
"sqlite"
|
|
1371
1376
|
)
|
|
1372
1377
|
);
|
|
1373
1378
|
} catch (error) {
|
|
1374
|
-
if (!
|
|
1379
|
+
if (!chunkSIT26LAZ_cjs.isSqliteNotAuthorizedError(error)) throw error;
|
|
1375
1380
|
}
|
|
1376
1381
|
for (const tableName of coreAnalyzeTables) {
|
|
1377
1382
|
await db.run(
|
|
1378
|
-
|
|
1379
|
-
|
|
1383
|
+
chunkWODMN3Q2_cjs.toDrizzleSql(
|
|
1384
|
+
chunkEDN4Y4ZG_cjs.sql`ANALYZE ${chunkEDN4Y4ZG_cjs.sql.identifier(tableName)}`,
|
|
1380
1385
|
"sqlite"
|
|
1381
1386
|
)
|
|
1382
1387
|
);
|
|
@@ -1384,13 +1389,13 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1384
1389
|
for (const tableName of guardedAnalyzeTables) {
|
|
1385
1390
|
try {
|
|
1386
1391
|
await db.run(
|
|
1387
|
-
|
|
1388
|
-
|
|
1392
|
+
chunkWODMN3Q2_cjs.toDrizzleSql(
|
|
1393
|
+
chunkEDN4Y4ZG_cjs.sql`ANALYZE ${chunkEDN4Y4ZG_cjs.sql.identifier(tableName)}`,
|
|
1389
1394
|
"sqlite"
|
|
1390
1395
|
)
|
|
1391
1396
|
);
|
|
1392
1397
|
} catch (error) {
|
|
1393
|
-
if (!
|
|
1398
|
+
if (!chunkSIT26LAZ_cjs.isMissingTableError(error)) throw error;
|
|
1394
1399
|
}
|
|
1395
1400
|
}
|
|
1396
1401
|
},
|
|
@@ -1401,7 +1406,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1401
1406
|
},
|
|
1402
1407
|
async commitSchemaVersionIfKindsEmpty(params, probes) {
|
|
1403
1408
|
return runSchemaWriteTransaction(
|
|
1404
|
-
(target) =>
|
|
1409
|
+
(target) => chunkWCCATHMB_cjs.commitSchemaVersionIfKindsEmpty(target, params, probes)
|
|
1405
1410
|
);
|
|
1406
1411
|
},
|
|
1407
1412
|
async commitSchemaVersionWithPreflight(params, preflight) {
|
|
@@ -1422,9 +1427,9 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1422
1427
|
return backend.transactionWithNative((tx) => fn(tx), options2);
|
|
1423
1428
|
},
|
|
1424
1429
|
async transactionWithNative(fn, options2) {
|
|
1425
|
-
const temporaryWrites = options2?.temporaryWrites ===
|
|
1430
|
+
const temporaryWrites = options2?.temporaryWrites === chunk5PRKMB24_cjs.INTERNAL_TEMPORARY_WRITES;
|
|
1426
1431
|
if (temporaryWrites && options2.accessMode !== "read_only") {
|
|
1427
|
-
throw new
|
|
1432
|
+
throw new chunkMRDBBHIZ_cjs.ConfigurationError(
|
|
1428
1433
|
"Temporary-write transactions must be semantically read-only.",
|
|
1429
1434
|
{ dialect: "sqlite" }
|
|
1430
1435
|
);
|
|
@@ -1452,7 +1457,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1452
1457
|
);
|
|
1453
1458
|
try {
|
|
1454
1459
|
const result = await fn(
|
|
1455
|
-
|
|
1460
|
+
chunkWCCATHMB_cjs.gateFulltext(
|
|
1456
1461
|
txBackend,
|
|
1457
1462
|
contributionMaterializer.assertInitialized,
|
|
1458
1463
|
contributionMaterializer.refuseUnavailableFulltext
|
|
@@ -1485,7 +1490,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1485
1490
|
"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)."
|
|
1486
1491
|
);
|
|
1487
1492
|
}
|
|
1488
|
-
|
|
1493
|
+
chunkWCCATHMB_cjs.assertAdoptedDialect(
|
|
1489
1494
|
externalTx,
|
|
1490
1495
|
sqliteCore.BaseSQLiteDatabase,
|
|
1491
1496
|
"sqlite"
|
|
@@ -1497,9 +1502,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1497
1502
|
return Promise.resolve();
|
|
1498
1503
|
}
|
|
1499
1504
|
};
|
|
1500
|
-
|
|
1501
|
-
chunkANKOXPCC_cjs.markSerializedTransactionResource(backend, serializedConnection);
|
|
1502
|
-
}
|
|
1505
|
+
chunkSIT26LAZ_cjs.auditBackendResource(backend, resourceAudit);
|
|
1503
1506
|
return backend;
|
|
1504
1507
|
}
|
|
1505
1508
|
function createTransactionBackend(options) {
|
|
@@ -1521,5 +1524,5 @@ function createTransactionBackend(options) {
|
|
|
1521
1524
|
|
|
1522
1525
|
exports.createSqliteBackend = createSqliteBackend;
|
|
1523
1526
|
exports.isLocalLibsqlClient = isLocalLibsqlClient;
|
|
1524
|
-
//# sourceMappingURL=chunk-
|
|
1525
|
-
//# sourceMappingURL=chunk-
|
|
1527
|
+
//# sourceMappingURL=chunk-2HIYYMWY.cjs.map
|
|
1528
|
+
//# sourceMappingURL=chunk-2HIYYMWY.cjs.map
|