@nicia-ai/typegraph 0.46.0 → 0.46.2
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 +49 -49
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +10 -10
- package/dist/backend/postgres/index.cjs +26 -26
- package/dist/backend/postgres/index.d.cts +6 -6
- package/dist/backend/postgres/index.d.ts +6 -6
- package/dist/backend/postgres/index.js +13 -13
- package/dist/backend/postgres/pglite-store.cjs +33 -33
- 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 +29 -29
- package/dist/backend/postgres/pglite.cjs +15 -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 +14 -14
- package/dist/backend/sqlite/index.cjs +23 -23
- package/dist/backend/sqlite/index.d.cts +6 -6
- package/dist/backend/sqlite/index.d.ts +6 -6
- package/dist/backend/sqlite/index.js +11 -11
- package/dist/backend/sqlite/libsql.cjs +18 -18
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +13 -13
- package/dist/backend/sqlite/local-store.cjs +34 -34
- 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 +30 -30
- package/dist/backend/sqlite/local.cjs +16 -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 +14 -14
- package/dist/{chunk-VCRRKBLN.cjs → chunk-2ZWM2RFH.cjs} +9 -9
- package/dist/{chunk-VCRRKBLN.cjs.map → chunk-2ZWM2RFH.cjs.map} +1 -1
- package/dist/{chunk-TTAITEPJ.cjs → chunk-32UETY6S.cjs} +26 -26
- package/dist/chunk-32UETY6S.cjs.map +1 -0
- package/dist/{chunk-JXA2ZP2Q.js → chunk-36LIJXWC.js} +4 -4
- package/dist/{chunk-JXA2ZP2Q.js.map → chunk-36LIJXWC.js.map} +1 -1
- package/dist/{chunk-Q7Q4WSLJ.cjs → chunk-5PDSCELM.cjs} +18 -14
- package/dist/chunk-5PDSCELM.cjs.map +1 -0
- package/dist/{chunk-775A4ZMN.js → chunk-5ZJOB5YS.js} +4 -4
- package/dist/{chunk-775A4ZMN.js.map → chunk-5ZJOB5YS.js.map} +1 -1
- package/dist/{chunk-J3WZ3FA2.js → chunk-62ZXBMSD.js} +24 -3
- package/dist/chunk-62ZXBMSD.js.map +1 -0
- package/dist/{chunk-7BQXPCGN.cjs → chunk-6BD6ZBKT.cjs} +10 -10
- package/dist/{chunk-7BQXPCGN.cjs.map → chunk-6BD6ZBKT.cjs.map} +1 -1
- package/dist/chunk-6LAXM4J2.cjs +12 -0
- package/dist/{chunk-VQH4VAWD.cjs.map → chunk-6LAXM4J2.cjs.map} +1 -1
- package/dist/{chunk-MSY7FSX4.js → chunk-72WUT4GG.js} +4 -4
- package/dist/{chunk-MSY7FSX4.js.map → chunk-72WUT4GG.js.map} +1 -1
- package/dist/chunk-73MWKDFK.cjs +12 -0
- package/dist/{chunk-A4OC4DVN.cjs.map → chunk-73MWKDFK.cjs.map} +1 -1
- package/dist/{chunk-BKCUOV7A.js → chunk-7TKNK32B.js} +5 -5
- package/dist/{chunk-BKCUOV7A.js.map → chunk-7TKNK32B.js.map} +1 -1
- package/dist/{chunk-JIVMTW7W.js → chunk-A2LJG5GM.js} +9 -9
- package/dist/{chunk-JIVMTW7W.js.map → chunk-A2LJG5GM.js.map} +1 -1
- package/dist/{chunk-XMQSEJCF.cjs → chunk-A4R3H7RU.cjs} +237 -237
- package/dist/{chunk-XMQSEJCF.cjs.map → chunk-A4R3H7RU.cjs.map} +1 -1
- package/dist/{chunk-RMQLSPA2.cjs → chunk-A7NMUYEL.cjs} +27 -27
- package/dist/{chunk-RMQLSPA2.cjs.map → chunk-A7NMUYEL.cjs.map} +1 -1
- package/dist/{chunk-U63GDNRC.cjs → chunk-AF3TWL5C.cjs} +4 -4
- package/dist/{chunk-U63GDNRC.cjs.map → chunk-AF3TWL5C.cjs.map} +1 -1
- package/dist/{chunk-XBYVV3MP.cjs → chunk-ANKOXPCC.cjs} +4 -4
- package/dist/chunk-ANKOXPCC.cjs.map +1 -0
- package/dist/{chunk-OH5E5KIO.js → chunk-AT3MLMJV.js} +10 -10
- package/dist/{chunk-OH5E5KIO.js.map → chunk-AT3MLMJV.js.map} +1 -1
- package/dist/{chunk-UV3SN74I.js → chunk-AU3IJNNP.js} +5 -5
- package/dist/{chunk-UV3SN74I.js.map → chunk-AU3IJNNP.js.map} +1 -1
- package/dist/{chunk-YAAM3M2S.cjs → chunk-BEB4OFZF.cjs} +10 -10
- package/dist/{chunk-YAAM3M2S.cjs.map → chunk-BEB4OFZF.cjs.map} +1 -1
- package/dist/{chunk-7GT72YHH.cjs → chunk-BQM5P2NO.cjs} +169 -167
- package/dist/chunk-BQM5P2NO.cjs.map +1 -0
- package/dist/{chunk-YWGVVALJ.js → chunk-BRN3RGD2.js} +3 -3
- package/dist/{chunk-YWGVVALJ.js.map → chunk-BRN3RGD2.js.map} +1 -1
- package/dist/{chunk-UDISNXDL.cjs → chunk-BZZI7B43.cjs} +47 -47
- package/dist/{chunk-UDISNXDL.cjs.map → chunk-BZZI7B43.cjs.map} +1 -1
- package/dist/{chunk-TQR4KBY2.cjs → chunk-C2ZP5YS6.cjs} +135 -133
- package/dist/chunk-C2ZP5YS6.cjs.map +1 -0
- package/dist/{chunk-PNN7RHVR.cjs → chunk-C4DYN2SD.cjs} +48 -48
- package/dist/{chunk-PNN7RHVR.cjs.map → chunk-C4DYN2SD.cjs.map} +1 -1
- package/dist/{chunk-XDF2UPEQ.cjs → chunk-C6KE2HSQ.cjs} +1364 -1311
- package/dist/chunk-C6KE2HSQ.cjs.map +1 -0
- package/dist/{chunk-LBJKZXDE.cjs → chunk-D6GCNNMK.cjs} +10 -10
- package/dist/{chunk-LBJKZXDE.cjs.map → chunk-D6GCNNMK.cjs.map} +1 -1
- package/dist/{chunk-JZUR7ZWE.js → chunk-DSAWGCMP.js} +3 -3
- package/dist/{chunk-JZUR7ZWE.js.map → chunk-DSAWGCMP.js.map} +1 -1
- package/dist/{chunk-U5SON7R2.cjs → chunk-DYPRZ53S.cjs} +27 -27
- package/dist/{chunk-U5SON7R2.cjs.map → chunk-DYPRZ53S.cjs.map} +1 -1
- package/dist/{chunk-YVWGEQJE.cjs → chunk-E4OSGBCM.cjs} +139 -133
- package/dist/chunk-E4OSGBCM.cjs.map +1 -0
- package/dist/{chunk-YDFDBE6D.js → chunk-EAMVXR5B.js} +4 -4
- package/dist/{chunk-YDFDBE6D.js.map → chunk-EAMVXR5B.js.map} +1 -1
- package/dist/{chunk-NQ6BRJBE.js → chunk-EDHV4CBU.js} +8 -8
- package/dist/{chunk-NQ6BRJBE.js.map → chunk-EDHV4CBU.js.map} +1 -1
- package/dist/{chunk-DCQVHAYQ.js → chunk-EDJDDY6H.js} +4 -4
- package/dist/{chunk-DCQVHAYQ.js.map → chunk-EDJDDY6H.js.map} +1 -1
- package/dist/{chunk-5262ZMTR.js → chunk-EJSYWAEV.js} +5 -5
- package/dist/{chunk-5262ZMTR.js.map → chunk-EJSYWAEV.js.map} +1 -1
- package/dist/{chunk-N3257XE6.cjs → chunk-F36KZDFX.cjs} +91 -91
- package/dist/{chunk-N3257XE6.cjs.map → chunk-F36KZDFX.cjs.map} +1 -1
- package/dist/{chunk-AKLS3BYZ.js → chunk-FA6Z7B5L.js} +3 -3
- package/dist/chunk-FA6Z7B5L.js.map +1 -0
- package/dist/{chunk-ASTI57H3.js → chunk-FCIZNUW5.js} +3 -3
- package/dist/{chunk-ASTI57H3.js.map → chunk-FCIZNUW5.js.map} +1 -1
- package/dist/{chunk-CBTIUB76.js → chunk-FSLTU57P.js} +3 -3
- package/dist/{chunk-CBTIUB76.js.map → chunk-FSLTU57P.js.map} +1 -1
- package/dist/{chunk-2LG2XB2M.js → chunk-FXNHZFZV.js} +3 -3
- package/dist/{chunk-2LG2XB2M.js.map → chunk-FXNHZFZV.js.map} +1 -1
- package/dist/{chunk-BSFJMMV3.cjs → chunk-GVAMRRZR.cjs} +4 -4
- package/dist/{chunk-BSFJMMV3.cjs.map → chunk-GVAMRRZR.cjs.map} +1 -1
- package/dist/{chunk-CNV4TXJG.js → chunk-GWUWRZXW.js} +3 -3
- package/dist/{chunk-CNV4TXJG.js.map → chunk-GWUWRZXW.js.map} +1 -1
- package/dist/{chunk-C23WSN5E.js → chunk-GWXXHOLU.js} +20 -14
- package/dist/chunk-GWXXHOLU.js.map +1 -0
- package/dist/{chunk-ONU3HIED.cjs → chunk-HNYLMPQQ.cjs} +68 -68
- package/dist/{chunk-ONU3HIED.cjs.map → chunk-HNYLMPQQ.cjs.map} +1 -1
- package/dist/{chunk-NMWDXFPH.js → chunk-IHRDX7K6.js} +4 -4
- package/dist/{chunk-NMWDXFPH.js.map → chunk-IHRDX7K6.js.map} +1 -1
- package/dist/{chunk-VGTJPTIC.js → chunk-JCNTKRAK.js} +5 -5
- package/dist/{chunk-VGTJPTIC.js.map → chunk-JCNTKRAK.js.map} +1 -1
- package/dist/{chunk-MXJDTH5B.cjs → chunk-JL5UEBWT.cjs} +45 -45
- package/dist/{chunk-MXJDTH5B.cjs.map → chunk-JL5UEBWT.cjs.map} +1 -1
- package/dist/{chunk-QLRESYPU.js → chunk-KA4L2NZ3.js} +14 -14
- package/dist/{chunk-QLRESYPU.js.map → chunk-KA4L2NZ3.js.map} +1 -1
- package/dist/{chunk-NI72YOJB.cjs → chunk-KCH7WQA5.cjs} +24 -2
- package/dist/chunk-KCH7WQA5.cjs.map +1 -0
- package/dist/{chunk-2NA5DYLO.cjs → chunk-KOAI3KIV.cjs} +4 -4
- package/dist/{chunk-2NA5DYLO.cjs.map → chunk-KOAI3KIV.cjs.map} +1 -1
- package/dist/{chunk-7VQXLT5O.js → chunk-KXSMF6PL.js} +101 -25
- package/dist/chunk-KXSMF6PL.js.map +1 -0
- package/dist/{chunk-WEVQJ5LH.js → chunk-LHYSY6SE.js} +6 -6
- package/dist/chunk-LHYSY6SE.js.map +1 -0
- package/dist/{chunk-WDGA7IYB.js → chunk-LNIWCQR4.js} +3 -3
- package/dist/{chunk-WDGA7IYB.js.map → chunk-LNIWCQR4.js.map} +1 -1
- package/dist/{chunk-XNSI2FJO.cjs → chunk-N3QTGPC7.cjs} +99 -99
- package/dist/{chunk-XNSI2FJO.cjs.map → chunk-N3QTGPC7.cjs.map} +1 -1
- package/dist/{chunk-K5ELX2GT.js → chunk-OZJCH7ZS.js} +3 -3
- package/dist/{chunk-K5ELX2GT.js.map → chunk-OZJCH7ZS.js.map} +1 -1
- package/dist/{chunk-62ZP23AW.cjs → chunk-PYKF7UIL.cjs} +13 -13
- package/dist/{chunk-62ZP23AW.cjs.map → chunk-PYKF7UIL.cjs.map} +1 -1
- package/dist/{chunk-PQBQG7IM.js → chunk-QOJ2L2AD.js} +3 -3
- package/dist/{chunk-PQBQG7IM.js.map → chunk-QOJ2L2AD.js.map} +1 -1
- package/dist/{chunk-XNLIZYRZ.cjs → chunk-QPOQX2DI.cjs} +235 -235
- package/dist/{chunk-XNLIZYRZ.cjs.map → chunk-QPOQX2DI.cjs.map} +1 -1
- package/dist/{chunk-NFCVHQ5P.cjs → chunk-QU7QLJA4.cjs} +26 -26
- package/dist/{chunk-NFCVHQ5P.cjs.map → chunk-QU7QLJA4.cjs.map} +1 -1
- package/dist/{chunk-DLNROMQ7.js → chunk-R7EWHKID.js} +7 -4
- package/dist/chunk-R7EWHKID.js.map +1 -0
- package/dist/{chunk-HFHTMECK.js → chunk-RFDEYLIK.js} +7 -7
- package/dist/{chunk-HFHTMECK.js.map → chunk-RFDEYLIK.js.map} +1 -1
- package/dist/{chunk-MUK4BU7K.cjs → chunk-RHDOAQCT.cjs} +200 -124
- package/dist/chunk-RHDOAQCT.cjs.map +1 -0
- package/dist/{chunk-YBFHZUXX.js → chunk-S3G5VLSW.js} +6 -6
- package/dist/{chunk-YBFHZUXX.js.map → chunk-S3G5VLSW.js.map} +1 -1
- package/dist/{chunk-M4BDU5RX.cjs → chunk-S7WIRFNS.cjs} +12 -12
- package/dist/{chunk-M4BDU5RX.cjs.map → chunk-S7WIRFNS.cjs.map} +1 -1
- package/dist/{chunk-T4XNKYXB.js → chunk-SXWLLQ3D.js} +4 -4
- package/dist/{chunk-T4XNKYXB.js.map → chunk-SXWLLQ3D.js.map} +1 -1
- package/dist/{chunk-NK5Q7UNE.cjs → chunk-TCT66A7N.cjs} +10 -10
- package/dist/{chunk-NK5Q7UNE.cjs.map → chunk-TCT66A7N.cjs.map} +1 -1
- package/dist/{chunk-3DHZCOT7.cjs → chunk-UTVQPZPN.cjs} +20 -20
- package/dist/{chunk-3DHZCOT7.cjs.map → chunk-UTVQPZPN.cjs.map} +1 -1
- package/dist/{chunk-CXBHOOIQ.cjs → chunk-WA64ZSCA.cjs} +11 -11
- package/dist/{chunk-CXBHOOIQ.cjs.map → chunk-WA64ZSCA.cjs.map} +1 -1
- package/dist/{chunk-QWX5YA3K.js → chunk-WEJHA7AD.js} +18 -16
- package/dist/chunk-WEJHA7AD.js.map +1 -0
- package/dist/{chunk-5UVRGXD3.js → chunk-WHS2Y43J.js} +5 -5
- package/dist/{chunk-5UVRGXD3.js.map → chunk-WHS2Y43J.js.map} +1 -1
- package/dist/{chunk-I5MOXA4H.js → chunk-WMKEGJG4.js} +3 -3
- package/dist/{chunk-I5MOXA4H.js.map → chunk-WMKEGJG4.js.map} +1 -1
- package/dist/{chunk-5763DULU.js → chunk-WYFB7BN3.js} +16 -14
- package/dist/chunk-WYFB7BN3.js.map +1 -0
- package/dist/{chunk-XQSCL77R.cjs → chunk-XBHRKLZU.cjs} +4 -4
- package/dist/{chunk-XQSCL77R.cjs.map → chunk-XBHRKLZU.cjs.map} +1 -1
- package/dist/{chunk-7Z5OR7KO.js → chunk-YQ4JONWE.js} +102 -49
- package/dist/chunk-YQ4JONWE.js.map +1 -0
- package/dist/{chunk-RJS7DECT.js → chunk-Z43KWLZF.js} +8 -8
- package/dist/{chunk-RJS7DECT.js.map → chunk-Z43KWLZF.js.map} +1 -1
- package/dist/{chunk-E4WNQBEF.cjs → chunk-ZBVZ7HXD.cjs} +12 -12
- package/dist/{chunk-E4WNQBEF.cjs.map → chunk-ZBVZ7HXD.cjs.map} +1 -1
- package/dist/{chunk-4UGOKMI5.cjs → chunk-ZHOAZD7Q.cjs} +161 -161
- package/dist/{chunk-4UGOKMI5.cjs.map → chunk-ZHOAZD7Q.cjs.map} +1 -1
- package/dist/{chunk-XCAGZAKP.cjs → chunk-ZIH42CRX.cjs} +7 -7
- package/dist/{chunk-XCAGZAKP.cjs.map → chunk-ZIH42CRX.cjs.map} +1 -1
- package/dist/core/index.cjs +27 -27
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +7 -7
- package/dist/{ddl-BJcOp4WZ.d.cts → ddl-mE07h_EM.d.cts} +3 -3
- package/dist/{ddl-BXfGHbPN.d.ts → ddl-opIn8DfX.d.ts} +3 -3
- 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 +248 -248
- package/dist/graph-merge/index.d.cts +8 -8
- package/dist/graph-merge/index.d.ts +8 -8
- package/dist/graph-merge/index.js +24 -24
- package/dist/{index-DxaYCv8Y.d.cts → index-Deyu8IXL.d.ts} +20 -3
- package/dist/{index-BSHvKfok.d.ts → index-DrRS51Ld.d.cts} +20 -3
- package/dist/index.cjs +219 -215
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +34 -34
- 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 +52 -52
- package/dist/interchange/index.d.cts +7 -7
- package/dist/interchange/index.d.ts +7 -7
- package/dist/interchange/index.js +16 -16
- package/dist/{manager-CfZAimti.d.ts → manager-DX983gJ0.d.ts} +2 -2
- package/dist/{manager-HGk6E_HW.d.cts → manager-ptr3JLRP.d.cts} +2 -2
- package/dist/{materialize-indexes-6A7dWGtb.d.cts → materialize-indexes-BXz77YqO.d.cts} +1 -1
- package/dist/{materialize-indexes-BMJP6Tms.d.ts → materialize-indexes-CpXoggWU.d.ts} +1 -1
- package/dist/{postgres-DFYWENdR.d.cts → postgres-DwgEXSPI.d.cts} +1 -1
- package/dist/{postgres-e7a9TdvR.d.ts → postgres-QdOMHTBz.d.ts} +1 -1
- package/dist/profiler/index.d.cts +9 -9
- package/dist/profiler/index.d.ts +9 -9
- package/dist/provenance/index.cjs +42 -42
- package/dist/provenance/index.d.cts +7 -7
- package/dist/provenance/index.d.ts +7 -7
- package/dist/provenance/index.js +9 -9
- package/dist/schema/index.cjs +44 -44
- package/dist/schema/index.d.cts +6 -6
- package/dist/schema/index.d.ts +6 -6
- package/dist/schema/index.js +17 -17
- package/dist/{searchable-9OQoPuRs.d.ts → searchable-BOUuA83f.d.ts} +1 -1
- package/dist/{searchable-CIje5XYD.d.cts → searchable-BrUh0pdc.d.cts} +1 -1
- package/dist/{sqlite-DerU5tc7.d.ts → sqlite-BfYcV61E.d.cts} +1 -1
- package/dist/{sqlite-DitnISa9.d.cts → sqlite-DK40XVR1.d.ts} +1 -1
- package/dist/{store-DawaWWjJ.d.ts → store-Bo1psfVZ.d.ts} +27 -8
- package/dist/{store-RwTJx8LX.d.cts → store-FTqBpuJD.d.cts} +27 -8
- package/dist/{temporal-Bn-Fi8FJ.d.cts → temporal-CXewwLTB.d.cts} +1 -1
- package/dist/{temporal-BtM4UALv.d.ts → temporal-DPtn0HOu.d.ts} +1 -1
- package/dist/{types-KFfk-8Ah.d.ts → types-CeT7xM4M.d.ts} +1 -1
- package/dist/{types-HkveCCx0.d.cts → types-Du78EvpN.d.cts} +7 -6
- package/dist/{types-HkveCCx0.d.ts → types-Du78EvpN.d.ts} +7 -6
- package/dist/{types-CoIx8HX5.d.cts → types-XR1nHERK.d.cts} +1 -1
- package/dist/{where--fk7_0kv.d.cts → where-CJsp-YUf.d.cts} +1 -1
- package/dist/{where-ws5hf-Ov.d.ts → where-CMbFiWwp.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-5763DULU.js.map +0 -1
- package/dist/chunk-7GT72YHH.cjs.map +0 -1
- package/dist/chunk-7VQXLT5O.js.map +0 -1
- package/dist/chunk-7Z5OR7KO.js.map +0 -1
- package/dist/chunk-A4OC4DVN.cjs +0 -12
- package/dist/chunk-AKLS3BYZ.js.map +0 -1
- package/dist/chunk-C23WSN5E.js.map +0 -1
- package/dist/chunk-DLNROMQ7.js.map +0 -1
- package/dist/chunk-J3WZ3FA2.js.map +0 -1
- package/dist/chunk-MUK4BU7K.cjs.map +0 -1
- package/dist/chunk-NI72YOJB.cjs.map +0 -1
- package/dist/chunk-Q7Q4WSLJ.cjs.map +0 -1
- package/dist/chunk-QWX5YA3K.js.map +0 -1
- package/dist/chunk-TQR4KBY2.cjs.map +0 -1
- package/dist/chunk-TTAITEPJ.cjs.map +0 -1
- package/dist/chunk-VQH4VAWD.cjs +0 -12
- package/dist/chunk-WEVQJ5LH.js.map +0 -1
- package/dist/chunk-XBYVV3MP.cjs.map +0 -1
- package/dist/chunk-XDF2UPEQ.cjs.map +0 -1
- package/dist/chunk-YVWGEQJE.cjs.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 chunkRHDOAQCT_cjs = require('./chunk-RHDOAQCT.cjs');
|
|
4
|
+
var chunkBEB4OFZF_cjs = require('./chunk-BEB4OFZF.cjs');
|
|
5
|
+
var chunkA7NMUYEL_cjs = require('./chunk-A7NMUYEL.cjs');
|
|
6
|
+
var chunkDYPRZ53S_cjs = require('./chunk-DYPRZ53S.cjs');
|
|
7
|
+
var chunkGVAMRRZR_cjs = require('./chunk-GVAMRRZR.cjs');
|
|
8
|
+
var chunkANKOXPCC_cjs = require('./chunk-ANKOXPCC.cjs');
|
|
9
|
+
var chunkZHOAZD7Q_cjs = require('./chunk-ZHOAZD7Q.cjs');
|
|
10
|
+
var chunk2ZWM2RFH_cjs = require('./chunk-2ZWM2RFH.cjs');
|
|
11
|
+
var chunkKCH7WQA5_cjs = require('./chunk-KCH7WQA5.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 chunkANKOXPCC_cjs.DURABLE_OBJECT_MAX_BIND_PARAMETERS;
|
|
104
104
|
}
|
|
105
|
-
if (hostedPlatform === "d1") return
|
|
105
|
+
if (hostedPlatform === "d1") return chunkANKOXPCC_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 chunkANKOXPCC_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 ? chunkANKOXPCC_cjs.MODERN_SQLITE_MAX_BIND_PARAMETERS : chunkANKOXPCC_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
120
120
|
} catch {
|
|
121
|
-
return
|
|
121
|
+
return chunkANKOXPCC_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 chunkRHDOAQCT_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) => chunkDYPRZ53S_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
|
+
chunk2ZWM2RFH_cjs.isSqlFragment(query) ? chunkDYPRZ53S_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 / chunkRHDOAQCT_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 - chunkRHDOAQCT_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 = chunkBEB4OFZF_cjs.createNodeRowMapper(chunkBEB4OFZF_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
349
|
+
var toEdgeRow = chunkBEB4OFZF_cjs.createEdgeRowMapper(chunkBEB4OFZF_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
350
|
+
var toUniqueRow = chunkBEB4OFZF_cjs.createUniqueRowMapper(chunkBEB4OFZF_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
351
|
+
var toSchemaVersionRow = chunkBEB4OFZF_cjs.createSchemaVersionRowMapper(
|
|
352
|
+
chunkBEB4OFZF_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 chunkKCH7WQA5_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 chunkKCH7WQA5_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 chunkKCH7WQA5_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
|
+
...chunkANKOXPCC_cjs.SQLITE_CAPABILITIES,
|
|
429
429
|
transactions: false,
|
|
430
430
|
graphAnalytics: {
|
|
431
|
-
...
|
|
431
|
+
...chunkANKOXPCC_cjs.SQLITE_CAPABILITIES.graphAnalytics ?? {
|
|
432
432
|
mathFunctions: false
|
|
433
433
|
},
|
|
434
434
|
supported: false
|
|
435
435
|
}
|
|
436
|
-
} :
|
|
436
|
+
} : chunkANKOXPCC_cjs.SQLITE_CAPABILITIES;
|
|
437
437
|
return {
|
|
438
438
|
...base,
|
|
439
439
|
maxBindParameters: options.maxBindParameters,
|
|
440
|
-
fulltext:
|
|
441
|
-
...options.vectorStrategy === void 0 ? {} : { vector:
|
|
440
|
+
fulltext: chunkZHOAZD7Q_cjs.buildFulltextCapabilities(options.fulltextStrategy),
|
|
441
|
+
...options.vectorStrategy === void 0 ? {} : { vector: chunkZHOAZD7Q_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 ?? chunkANKOXPCC_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
|
+
chunk2ZWM2RFH_cjs.isSqlFragment(query) ? chunkDYPRZ53S_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 ?? chunkANKOXPCC_cjs.SQLITE_MAX_BIND_PARAMETERS
|
|
504
504
|
);
|
|
505
|
-
const commonBackend =
|
|
505
|
+
const commonBackend = chunkRHDOAQCT_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: chunkBEB4OFZF_cjs.nowIso,
|
|
513
|
+
maxBindParameters: capabilities.maxBindParameters ?? chunkANKOXPCC_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 = chunkRHDOAQCT_cjs.vectorSlotFromParams(params);
|
|
534
534
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
535
|
-
const statements = vectorStrategy.buildUpsert(slot, params,
|
|
535
|
+
const statements = vectorStrategy.buildUpsert(slot, params, chunkBEB4OFZF_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 chunkRHDOAQCT_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 = chunkRHDOAQCT_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 = chunkBEB4OFZF_cjs.nowIso();
|
|
553
553
|
try {
|
|
554
|
-
for (const chunk2 of
|
|
554
|
+
for (const chunk2 of chunkGVAMRRZR_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 chunkRHDOAQCT_cjs.mapVectorWriteError(error, params);
|
|
584
584
|
}
|
|
585
585
|
},
|
|
586
586
|
async deleteEmbedding(params) {
|
|
587
|
-
const slot =
|
|
587
|
+
const slot = chunkRHDOAQCT_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 = chunkRHDOAQCT_cjs.vectorSlotFromParams(params);
|
|
597
597
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
598
|
-
for (const nodeIds of
|
|
598
|
+
for (const nodeIds of chunkGVAMRRZR_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
|
+
chunkZHOAZD7Q_cjs.assertVectorSearchLimit(params.limit);
|
|
611
|
+
chunkZHOAZD7Q_cjs.resolveEfSearchOverride({
|
|
612
612
|
efSearch: params.efSearch,
|
|
613
613
|
indexType: params.indexType,
|
|
614
|
-
tuning:
|
|
614
|
+
tuning: chunkZHOAZD7Q_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 = chunkRHDOAQCT_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 ?? chunkRHDOAQCT_cjs.buildLiveNodeCandidates(
|
|
626
626
|
tableNames.nodes,
|
|
627
627
|
params.graphId,
|
|
628
628
|
params.nodeKind,
|
|
629
|
-
|
|
629
|
+
chunkBEB4OFZF_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 chunkRHDOAQCT_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
|
+
chunkZHOAZD7Q_cjs.assertVectorSearchLimit(params.limit);
|
|
649
|
+
chunkZHOAZD7Q_cjs.assertVectorSearchLimit(params.vector.k);
|
|
650
|
+
chunkZHOAZD7Q_cjs.resolveEfSearchOverride({
|
|
651
651
|
efSearch: params.vector.efSearch,
|
|
652
652
|
indexType: params.vector.indexType,
|
|
653
|
-
tuning:
|
|
653
|
+
tuning: chunkZHOAZD7Q_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 = chunkRHDOAQCT_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 ?? chunkRHDOAQCT_cjs.buildLiveNodeCandidates(
|
|
667
667
|
tableNames.nodes,
|
|
668
668
|
params.graphId,
|
|
669
669
|
params.nodeKind,
|
|
670
|
-
|
|
670
|
+
chunkBEB4OFZF_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
|
+
chunk2ZWM2RFH_cjs.sql.raw("SELECT node_id FROM tg_hybrid_cand")
|
|
687
687
|
);
|
|
688
688
|
const statement = operationStrategy.buildHybridSearch(
|
|
689
689
|
{ ...params, candidates },
|
|
690
|
-
|
|
690
|
+
chunkDYPRZ53S_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 chunkRHDOAQCT_cjs.mapVectorWriteError(error, vectorParams);
|
|
698
698
|
}
|
|
699
|
-
return raw.map((row) =>
|
|
699
|
+
return raw.map((row) => chunkRHDOAQCT_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 chunkKCH7WQA5_cjs.ConfigurationError(
|
|
745
745
|
"The schema write fence requires an explicit SQLite transaction.",
|
|
746
746
|
{
|
|
747
747
|
code: "SCHEMA_WRITE_FENCE_TRANSACTION_REQUIRED",
|
|
@@ -750,7 +750,7 @@ function createSqliteOperationBackend(options) {
|
|
|
750
750
|
);
|
|
751
751
|
}
|
|
752
752
|
const active = await commonBackend.getActiveSchema(params.graphId);
|
|
753
|
-
|
|
753
|
+
chunkRHDOAQCT_cjs.assertActiveSchemaVersion(
|
|
754
754
|
params.graphId,
|
|
755
755
|
params.expectedVersion,
|
|
756
756
|
active?.version ?? 0
|
|
@@ -758,7 +758,7 @@ function createSqliteOperationBackend(options) {
|
|
|
758
758
|
},
|
|
759
759
|
async createVectorIndex(params) {
|
|
760
760
|
if (vectorStrategy === void 0) return;
|
|
761
|
-
const slot =
|
|
761
|
+
const slot = chunkRHDOAQCT_cjs.vectorSlotFromCreateIndexParams(params);
|
|
762
762
|
await contributionMaterializer.ensureVectorSlot(slot);
|
|
763
763
|
const indexStatement = vectorStrategy.buildCreateIndex?.(slot);
|
|
764
764
|
if (indexStatement !== void 0) {
|
|
@@ -767,18 +767,18 @@ function createSqliteOperationBackend(options) {
|
|
|
767
767
|
},
|
|
768
768
|
async dropVectorIndex(params) {
|
|
769
769
|
if (vectorStrategy === void 0) return;
|
|
770
|
-
const slot =
|
|
770
|
+
const slot = chunkRHDOAQCT_cjs.vectorSlotFromDropIndexParams(params);
|
|
771
771
|
const dropStatement = vectorStrategy.buildDropIndex?.(slot);
|
|
772
772
|
if (dropStatement === void 0) return;
|
|
773
773
|
try {
|
|
774
774
|
await execRun(dropStatement);
|
|
775
775
|
} catch (error) {
|
|
776
|
-
if (!
|
|
776
|
+
if (!chunkGVAMRRZR_cjs.isMissingTableError(error)) throw error;
|
|
777
777
|
}
|
|
778
778
|
},
|
|
779
779
|
// === Fulltext Operations ===
|
|
780
780
|
async upsertFulltext(params) {
|
|
781
|
-
const timestamp =
|
|
781
|
+
const timestamp = chunkBEB4OFZF_cjs.nowIso();
|
|
782
782
|
const statements = operationStrategy.buildUpsertFulltext(
|
|
783
783
|
params,
|
|
784
784
|
timestamp
|
|
@@ -795,8 +795,8 @@ function createSqliteOperationBackend(options) {
|
|
|
795
795
|
},
|
|
796
796
|
async upsertFulltextBatch(params) {
|
|
797
797
|
if (params.rows.length === 0) return;
|
|
798
|
-
const timestamp =
|
|
799
|
-
for (const rows of
|
|
798
|
+
const timestamp = chunkBEB4OFZF_cjs.nowIso();
|
|
799
|
+
for (const rows of chunkGVAMRRZR_cjs.chunk(
|
|
800
800
|
params.rows,
|
|
801
801
|
batchConfig.fulltextUpsertBatchSize
|
|
802
802
|
)) {
|
|
@@ -811,7 +811,7 @@ function createSqliteOperationBackend(options) {
|
|
|
811
811
|
},
|
|
812
812
|
async deleteFulltextBatch(params) {
|
|
813
813
|
if (params.nodeIds.length === 0) return;
|
|
814
|
-
for (const nodeIds of
|
|
814
|
+
for (const nodeIds of chunkGVAMRRZR_cjs.chunk(
|
|
815
815
|
params.nodeIds,
|
|
816
816
|
batchConfig.fulltextDeleteChunkSize
|
|
817
817
|
)) {
|
|
@@ -829,7 +829,7 @@ function createSqliteOperationBackend(options) {
|
|
|
829
829
|
const rows = await execAll(query);
|
|
830
830
|
return rows.map((row, index) => ({
|
|
831
831
|
nodeId: row.node_id,
|
|
832
|
-
score:
|
|
832
|
+
score: chunkBEB4OFZF_cjs.coerceNumericScore(row.score),
|
|
833
833
|
rank: index + 1,
|
|
834
834
|
...row.snippet === null ? {} : { snippet: row.snippet }
|
|
835
835
|
}));
|
|
@@ -863,14 +863,14 @@ function getSerializedSqliteConnection(db) {
|
|
|
863
863
|
}
|
|
864
864
|
function createSqliteBackend(db, options = {}) {
|
|
865
865
|
const serializedConnection = getSerializedSqliteConnection(db);
|
|
866
|
-
const tables2 = options.tables ??
|
|
867
|
-
const fulltextStrategy = options.fulltext ??
|
|
866
|
+
const tables2 = options.tables ?? chunkA7NMUYEL_cjs.tables2;
|
|
867
|
+
const fulltextStrategy = options.fulltext ?? chunkZHOAZD7Q_cjs.fts5Strategy;
|
|
868
868
|
const profileHints = options.executionProfile ?? {};
|
|
869
869
|
const executionAdapter = createSqliteExecutionAdapter(db, { profileHints });
|
|
870
870
|
const { isSync, transactionMode } = executionAdapter.profile;
|
|
871
871
|
const vectorStrategy = options.vector;
|
|
872
872
|
const capabilityOverrides = options.capabilities ?? {};
|
|
873
|
-
const declaredCapabilities =
|
|
873
|
+
const declaredCapabilities = chunkANKOXPCC_cjs.normalizeGraphAnalyticsCapabilities({
|
|
874
874
|
...buildSqliteCapabilities({
|
|
875
875
|
fulltextStrategy,
|
|
876
876
|
vectorStrategy,
|
|
@@ -892,7 +892,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
892
892
|
contributions: {
|
|
893
893
|
supported: true,
|
|
894
894
|
probe: true,
|
|
895
|
-
rebuild:
|
|
895
|
+
rebuild: chunkRHDOAQCT_cjs.contributionRebuildSupported(
|
|
896
896
|
fulltextStrategy,
|
|
897
897
|
tables2.fulltextTableName,
|
|
898
898
|
declaredCapabilities.transactions
|
|
@@ -928,14 +928,14 @@ function createSqliteBackend(db, options = {}) {
|
|
|
928
928
|
tableNames.identityClosure,
|
|
929
929
|
tableNames.identitySeparation
|
|
930
930
|
];
|
|
931
|
-
const operationStrategy =
|
|
931
|
+
const operationStrategy = chunkRHDOAQCT_cjs.createSqliteOperationStrategy(
|
|
932
932
|
tables2,
|
|
933
933
|
fulltextStrategy
|
|
934
934
|
);
|
|
935
935
|
const serializedQueue = transactionMode === "none" ? void 0 : createSerializedExecutionQueue();
|
|
936
936
|
const matTable = tables2.contributionMaterializations;
|
|
937
937
|
async function ensureContributionMaterializationsTableImpl() {
|
|
938
|
-
await db.run(drizzleOrm.sql.raw(
|
|
938
|
+
await db.run(drizzleOrm.sql.raw(chunkA7NMUYEL_cjs.generateSqliteCreateTableSQL(matTable)));
|
|
939
939
|
}
|
|
940
940
|
async function getContributionMaterializationRow(identity) {
|
|
941
941
|
const rows = await db.select().from(matTable).where(
|
|
@@ -948,25 +948,25 @@ function createSqliteBackend(db, options = {}) {
|
|
|
948
948
|
);
|
|
949
949
|
const row = rows[0];
|
|
950
950
|
if (row === void 0) return void 0;
|
|
951
|
-
return
|
|
951
|
+
return chunkRHDOAQCT_cjs.mapContributionMaterializationRow(
|
|
952
952
|
row,
|
|
953
|
-
|
|
953
|
+
chunkRHDOAQCT_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
954
954
|
);
|
|
955
955
|
}
|
|
956
956
|
async function getContributionMaterializationRows(graphId) {
|
|
957
957
|
const rows = await db.select().from(matTable).where(drizzleOrm.eq(matTable.graphId, graphId));
|
|
958
958
|
return rows.map(
|
|
959
|
-
(row) =>
|
|
959
|
+
(row) => chunkRHDOAQCT_cjs.mapContributionMaterializationRow(
|
|
960
960
|
row,
|
|
961
|
-
|
|
961
|
+
chunkRHDOAQCT_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
962
962
|
)
|
|
963
963
|
);
|
|
964
964
|
}
|
|
965
965
|
async function recordContributionMaterializationRow(params) {
|
|
966
966
|
await db.insert(matTable).values(
|
|
967
|
-
|
|
967
|
+
chunkRHDOAQCT_cjs.buildContributionInsertValues(
|
|
968
968
|
params,
|
|
969
|
-
|
|
969
|
+
chunkRHDOAQCT_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.encode
|
|
970
970
|
)
|
|
971
971
|
).onConflictDoUpdate({
|
|
972
972
|
target: [
|
|
@@ -975,7 +975,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
975
975
|
matTable.owner,
|
|
976
976
|
matTable.tableName
|
|
977
977
|
],
|
|
978
|
-
set:
|
|
978
|
+
set: chunkRHDOAQCT_cjs.buildContributionOnConflictSet(
|
|
979
979
|
matTable.materializedAt,
|
|
980
980
|
params.materializedAt
|
|
981
981
|
)
|
|
@@ -995,20 +995,20 @@ function createSqliteBackend(db, options = {}) {
|
|
|
995
995
|
const rows = await executionAdapter.execute(
|
|
996
996
|
operationStrategy.buildTableExists(tableName)
|
|
997
997
|
);
|
|
998
|
-
return
|
|
998
|
+
return chunkRHDOAQCT_cjs.tableExistsFromRow(rows[0]);
|
|
999
999
|
}
|
|
1000
1000
|
function identityContributionsFor(identityTableNames) {
|
|
1001
|
-
const identityTables =
|
|
1001
|
+
const identityTables = chunkA7NMUYEL_cjs.createSqliteTables({
|
|
1002
1002
|
identityAssertions: identityTableNames.identityAssertions,
|
|
1003
1003
|
recordedIdentityAssertions: identityTableNames.recordedIdentityAssertions,
|
|
1004
1004
|
identityClosure: identityTableNames.identityClosure,
|
|
1005
1005
|
identitySeparation: identityTableNames.identitySeparation
|
|
1006
1006
|
});
|
|
1007
|
-
return
|
|
1007
|
+
return chunkA7NMUYEL_cjs.sqliteContributions(identityTables, fulltextStrategy).filter(
|
|
1008
1008
|
(contribution) => IDENTITY_TABLE_LOGICAL_NAMES.has(contribution.logicalName)
|
|
1009
1009
|
);
|
|
1010
1010
|
}
|
|
1011
|
-
const contributionMaterializer =
|
|
1011
|
+
const contributionMaterializer = chunkRHDOAQCT_cjs.createContributionMaterializer({
|
|
1012
1012
|
dialect: "sqlite",
|
|
1013
1013
|
fulltextStrategy,
|
|
1014
1014
|
fulltextTableName: tables2.fulltextTableName,
|
|
@@ -1148,7 +1148,11 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1148
1148
|
vectorStrategy,
|
|
1149
1149
|
contributionMaterializer
|
|
1150
1150
|
});
|
|
1151
|
-
return
|
|
1151
|
+
return chunkRHDOAQCT_cjs.gateFulltext(
|
|
1152
|
+
txBackend,
|
|
1153
|
+
contributionMaterializer.assertInitialized,
|
|
1154
|
+
contributionMaterializer.refuseUnavailableFulltext
|
|
1155
|
+
);
|
|
1152
1156
|
}
|
|
1153
1157
|
const backend = {
|
|
1154
1158
|
...operations,
|
|
@@ -1160,29 +1164,29 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1160
1164
|
...options_.schemaWrite
|
|
1161
1165
|
});
|
|
1162
1166
|
}
|
|
1163
|
-
await
|
|
1164
|
-
const indexDefinitions = await
|
|
1167
|
+
await chunkRHDOAQCT_cjs.assertTrustedImportDatabaseEmpty(tx, tableNames);
|
|
1168
|
+
const indexDefinitions = await chunkRHDOAQCT_cjs.suspendSqliteSecondaryIndexes(
|
|
1165
1169
|
tx,
|
|
1166
1170
|
tableNames
|
|
1167
1171
|
);
|
|
1168
1172
|
const result = await fn(
|
|
1169
|
-
|
|
1173
|
+
chunkRHDOAQCT_cjs.createSqliteTrustedImportSession(executionAdapter, tableNames)
|
|
1170
1174
|
);
|
|
1171
|
-
await
|
|
1172
|
-
await
|
|
1175
|
+
await chunkRHDOAQCT_cjs.restoreSecondaryIndexes(tx, indexDefinitions);
|
|
1176
|
+
await chunkRHDOAQCT_cjs.analyzeImportedTables(tx, tableNames);
|
|
1173
1177
|
return result;
|
|
1174
1178
|
});
|
|
1175
1179
|
}
|
|
1176
1180
|
} : {},
|
|
1177
1181
|
async bootstrapTables() {
|
|
1178
|
-
const statements =
|
|
1182
|
+
const statements = chunkA7NMUYEL_cjs.generateSqliteDDL(tables2, fulltextStrategy);
|
|
1179
1183
|
for (const statement of statements) {
|
|
1180
1184
|
await db.run(drizzleOrm.sql.raw(statement));
|
|
1181
1185
|
}
|
|
1182
1186
|
},
|
|
1183
1187
|
async ensureRevisionOriginsTable() {
|
|
1184
1188
|
await db.run(
|
|
1185
|
-
drizzleOrm.sql.raw(
|
|
1189
|
+
drizzleOrm.sql.raw(chunkA7NMUYEL_cjs.generateSqliteCreateTableSQL(tables2.revisionOrigins))
|
|
1186
1190
|
);
|
|
1187
1191
|
},
|
|
1188
1192
|
async ensureIdentityTables(identityTableNames, options2) {
|
|
@@ -1212,16 +1216,17 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1212
1216
|
// uninitialized database throws `StoreNotInitializedError` rather
|
|
1213
1217
|
// than self-healing (#135). Shared verbatim with the tx-scoped gate
|
|
1214
1218
|
// via `gateFulltextMethods`.
|
|
1215
|
-
...
|
|
1219
|
+
...chunkRHDOAQCT_cjs.gateFulltextMethods(
|
|
1216
1220
|
operations,
|
|
1217
|
-
contributionMaterializer.assertInitialized
|
|
1221
|
+
contributionMaterializer.assertInitialized,
|
|
1222
|
+
contributionMaterializer.refuseUnavailableFulltext
|
|
1218
1223
|
),
|
|
1219
1224
|
async executeDdl(ddl) {
|
|
1220
1225
|
await db.run(drizzleOrm.sql.raw(ddl));
|
|
1221
1226
|
},
|
|
1222
1227
|
async ensureIndexMaterializationsTable() {
|
|
1223
1228
|
await db.run(
|
|
1224
|
-
drizzleOrm.sql.raw(
|
|
1229
|
+
drizzleOrm.sql.raw(chunkA7NMUYEL_cjs.generateSqliteCreateTableSQL(tables2.indexMaterializations))
|
|
1225
1230
|
);
|
|
1226
1231
|
},
|
|
1227
1232
|
async getIndexMaterialization(indexName) {
|
|
@@ -1229,26 +1234,26 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1229
1234
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.indexName, indexName));
|
|
1230
1235
|
const row = rows[0];
|
|
1231
1236
|
if (row === void 0) return void 0;
|
|
1232
|
-
return
|
|
1237
|
+
return chunkRHDOAQCT_cjs.mapMaterializationRow(row, chunkRHDOAQCT_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode);
|
|
1233
1238
|
},
|
|
1234
1239
|
async getIndexMaterializations(statusKeys) {
|
|
1235
1240
|
if (statusKeys.length === 0) return [];
|
|
1236
1241
|
const t = tables2.indexMaterializations;
|
|
1237
1242
|
const rows = await db.select().from(t).where(drizzleOrm.inArray(t.indexName, [...statusKeys]));
|
|
1238
1243
|
return rows.map(
|
|
1239
|
-
(row) =>
|
|
1244
|
+
(row) => chunkRHDOAQCT_cjs.mapMaterializationRow(row, chunkRHDOAQCT_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode)
|
|
1240
1245
|
);
|
|
1241
1246
|
},
|
|
1242
1247
|
async recordIndexMaterialization(params) {
|
|
1243
1248
|
const t = tables2.indexMaterializations;
|
|
1244
1249
|
await db.insert(t).values(
|
|
1245
|
-
|
|
1250
|
+
chunkRHDOAQCT_cjs.buildMaterializationInsertValues(
|
|
1246
1251
|
params,
|
|
1247
|
-
|
|
1252
|
+
chunkRHDOAQCT_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.encode
|
|
1248
1253
|
)
|
|
1249
1254
|
).onConflictDoUpdate({
|
|
1250
1255
|
target: t.indexName,
|
|
1251
|
-
set:
|
|
1256
|
+
set: chunkRHDOAQCT_cjs.buildMaterializationOnConflictSet(params.materializedAt)
|
|
1252
1257
|
});
|
|
1253
1258
|
},
|
|
1254
1259
|
async ensureContributionMaterializationsTable() {
|
|
@@ -1264,37 +1269,37 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1264
1269
|
await contributionMaterializer.assertInitialized(graphId);
|
|
1265
1270
|
},
|
|
1266
1271
|
async ensureKindRemovalsTable() {
|
|
1267
|
-
await db.run(drizzleOrm.sql.raw(
|
|
1272
|
+
await db.run(drizzleOrm.sql.raw(chunkA7NMUYEL_cjs.generateSqliteCreateTableSQL(tables2.kindRemovals)));
|
|
1268
1273
|
},
|
|
1269
1274
|
async getPendingKindRemovals(graphId) {
|
|
1270
1275
|
const t = tables2.kindRemovals;
|
|
1271
1276
|
const rows = await db.select().from(t).where(drizzleOrm.and(drizzleOrm.eq(t.graphId, graphId), drizzleOrm.isNull(t.removedAt)));
|
|
1272
1277
|
return rows.map(
|
|
1273
|
-
(row) =>
|
|
1278
|
+
(row) => chunkRHDOAQCT_cjs.mapKindRemovalRow(row, chunkRHDOAQCT_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1274
1279
|
);
|
|
1275
1280
|
},
|
|
1276
1281
|
async getAllKindRemovals(graphId) {
|
|
1277
1282
|
const t = tables2.kindRemovals;
|
|
1278
1283
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
|
|
1279
1284
|
return rows.map(
|
|
1280
|
-
(row) =>
|
|
1285
|
+
(row) => chunkRHDOAQCT_cjs.mapKindRemovalRow(row, chunkRHDOAQCT_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1281
1286
|
);
|
|
1282
1287
|
},
|
|
1283
1288
|
async recordKindRemoval(params) {
|
|
1284
1289
|
const t = tables2.kindRemovals;
|
|
1285
1290
|
await db.insert(t).values(
|
|
1286
|
-
|
|
1291
|
+
chunkRHDOAQCT_cjs.buildKindRemovalInsertValues(
|
|
1287
1292
|
params,
|
|
1288
|
-
|
|
1293
|
+
chunkRHDOAQCT_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.encode
|
|
1289
1294
|
)
|
|
1290
1295
|
).onConflictDoUpdate({
|
|
1291
1296
|
target: [t.graphId, t.kindName, t.entity, t.schemaVersion],
|
|
1292
|
-
set:
|
|
1297
|
+
set: chunkRHDOAQCT_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
|
|
1293
1298
|
});
|
|
1294
1299
|
},
|
|
1295
1300
|
async ensureReconciliationMarkersTable() {
|
|
1296
1301
|
await db.run(
|
|
1297
|
-
drizzleOrm.sql.raw(
|
|
1302
|
+
drizzleOrm.sql.raw(chunkA7NMUYEL_cjs.generateSqliteCreateTableSQL(tables2.reconciliationMarkers))
|
|
1298
1303
|
);
|
|
1299
1304
|
},
|
|
1300
1305
|
async ensureRuntimeContributions(graphId) {
|
|
@@ -1360,18 +1365,18 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1360
1365
|
async refreshStatistics() {
|
|
1361
1366
|
try {
|
|
1362
1367
|
await db.run(
|
|
1363
|
-
|
|
1364
|
-
|
|
1368
|
+
chunkDYPRZ53S_cjs.toDrizzleSql(
|
|
1369
|
+
chunk2ZWM2RFH_cjs.sql`PRAGMA analysis_limit = ${chunk2ZWM2RFH_cjs.sql.raw(String(SQLITE_ANALYZE_ROW_LIMIT))}`,
|
|
1365
1370
|
"sqlite"
|
|
1366
1371
|
)
|
|
1367
1372
|
);
|
|
1368
1373
|
} catch (error) {
|
|
1369
|
-
if (!
|
|
1374
|
+
if (!chunkGVAMRRZR_cjs.isSqliteNotAuthorizedError(error)) throw error;
|
|
1370
1375
|
}
|
|
1371
1376
|
for (const tableName of coreAnalyzeTables) {
|
|
1372
1377
|
await db.run(
|
|
1373
|
-
|
|
1374
|
-
|
|
1378
|
+
chunkDYPRZ53S_cjs.toDrizzleSql(
|
|
1379
|
+
chunk2ZWM2RFH_cjs.sql`ANALYZE ${chunk2ZWM2RFH_cjs.sql.identifier(tableName)}`,
|
|
1375
1380
|
"sqlite"
|
|
1376
1381
|
)
|
|
1377
1382
|
);
|
|
@@ -1379,13 +1384,13 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1379
1384
|
for (const tableName of guardedAnalyzeTables) {
|
|
1380
1385
|
try {
|
|
1381
1386
|
await db.run(
|
|
1382
|
-
|
|
1383
|
-
|
|
1387
|
+
chunkDYPRZ53S_cjs.toDrizzleSql(
|
|
1388
|
+
chunk2ZWM2RFH_cjs.sql`ANALYZE ${chunk2ZWM2RFH_cjs.sql.identifier(tableName)}`,
|
|
1384
1389
|
"sqlite"
|
|
1385
1390
|
)
|
|
1386
1391
|
);
|
|
1387
1392
|
} catch (error) {
|
|
1388
|
-
if (!
|
|
1393
|
+
if (!chunkGVAMRRZR_cjs.isMissingTableError(error)) throw error;
|
|
1389
1394
|
}
|
|
1390
1395
|
}
|
|
1391
1396
|
},
|
|
@@ -1396,7 +1401,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1396
1401
|
},
|
|
1397
1402
|
async commitSchemaVersionIfKindsEmpty(params, probes) {
|
|
1398
1403
|
return runSchemaWriteTransaction(
|
|
1399
|
-
(target) =>
|
|
1404
|
+
(target) => chunkRHDOAQCT_cjs.commitSchemaVersionIfKindsEmpty(target, params, probes)
|
|
1400
1405
|
);
|
|
1401
1406
|
},
|
|
1402
1407
|
async commitSchemaVersionWithPreflight(params, preflight) {
|
|
@@ -1417,9 +1422,9 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1417
1422
|
return backend.transactionWithNative((tx) => fn(tx), options2);
|
|
1418
1423
|
},
|
|
1419
1424
|
async transactionWithNative(fn, options2) {
|
|
1420
|
-
const temporaryWrites = options2?.temporaryWrites ===
|
|
1425
|
+
const temporaryWrites = options2?.temporaryWrites === chunkANKOXPCC_cjs.INTERNAL_TEMPORARY_WRITES;
|
|
1421
1426
|
if (temporaryWrites && options2.accessMode !== "read_only") {
|
|
1422
|
-
throw new
|
|
1427
|
+
throw new chunkKCH7WQA5_cjs.ConfigurationError(
|
|
1423
1428
|
"Temporary-write transactions must be semantically read-only.",
|
|
1424
1429
|
{ dialect: "sqlite" }
|
|
1425
1430
|
);
|
|
@@ -1447,9 +1452,10 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1447
1452
|
);
|
|
1448
1453
|
try {
|
|
1449
1454
|
const result = await fn(
|
|
1450
|
-
|
|
1455
|
+
chunkRHDOAQCT_cjs.gateFulltext(
|
|
1451
1456
|
txBackend,
|
|
1452
|
-
contributionMaterializer.assertInitialized
|
|
1457
|
+
contributionMaterializer.assertInitialized,
|
|
1458
|
+
contributionMaterializer.refuseUnavailableFulltext
|
|
1453
1459
|
),
|
|
1454
1460
|
db
|
|
1455
1461
|
);
|
|
@@ -1479,7 +1485,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1479
1485
|
"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)."
|
|
1480
1486
|
);
|
|
1481
1487
|
}
|
|
1482
|
-
|
|
1488
|
+
chunkRHDOAQCT_cjs.assertAdoptedDialect(
|
|
1483
1489
|
externalTx,
|
|
1484
1490
|
sqliteCore.BaseSQLiteDatabase,
|
|
1485
1491
|
"sqlite"
|
|
@@ -1492,7 +1498,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1492
1498
|
}
|
|
1493
1499
|
};
|
|
1494
1500
|
if (serializedConnection !== void 0) {
|
|
1495
|
-
|
|
1501
|
+
chunkANKOXPCC_cjs.markSerializedTransactionResource(backend, serializedConnection);
|
|
1496
1502
|
}
|
|
1497
1503
|
return backend;
|
|
1498
1504
|
}
|
|
@@ -1515,5 +1521,5 @@ function createTransactionBackend(options) {
|
|
|
1515
1521
|
|
|
1516
1522
|
exports.createSqliteBackend = createSqliteBackend;
|
|
1517
1523
|
exports.isLocalLibsqlClient = isLocalLibsqlClient;
|
|
1518
|
-
//# sourceMappingURL=chunk-
|
|
1519
|
-
//# sourceMappingURL=chunk-
|
|
1524
|
+
//# sourceMappingURL=chunk-E4OSGBCM.cjs.map
|
|
1525
|
+
//# sourceMappingURL=chunk-E4OSGBCM.cjs.map
|