@nicia-ai/typegraph 0.50.0 → 0.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/backend/drizzle/indexes.cjs +10 -8
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +6 -4
- package/dist/backend/index.cjs +183 -50
- package/dist/backend/index.d.cts +90 -4
- package/dist/backend/index.d.ts +90 -4
- package/dist/backend/index.js +6 -9
- package/dist/backend/postgres/index.cjs +30 -28
- package/dist/backend/postgres/index.d.cts +7 -7
- package/dist/backend/postgres/index.d.ts +7 -7
- package/dist/backend/postgres/index.js +16 -14
- package/dist/backend/postgres/pglite-store.cjs +6 -62
- 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 +6 -62
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +18 -16
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +17 -15
- package/dist/backend/sqlite/index.cjs +27 -25
- package/dist/backend/sqlite/index.d.cts +7 -7
- package/dist/backend/sqlite/index.d.ts +7 -7
- package/dist/backend/sqlite/index.js +14 -12
- package/dist/backend/sqlite/libsql.cjs +21 -19
- 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 +16 -14
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +8 -64
- 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 +7 -64
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +22 -19
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +18 -15
- package/dist/{chunk-TUVD4DFR.cjs → chunk-2CVDZCXH.cjs} +122 -51
- package/dist/chunk-2CVDZCXH.cjs.map +1 -0
- package/dist/{chunk-I5C6OTKR.js → chunk-2DWTBNSH.js} +3 -3
- package/dist/{chunk-I5C6OTKR.js.map → chunk-2DWTBNSH.js.map} +1 -1
- package/dist/{chunk-C76WFIVZ.cjs → chunk-2KCTP3U2.cjs} +180 -127
- package/dist/chunk-2KCTP3U2.cjs.map +1 -0
- package/dist/{chunk-BYBDM423.cjs → chunk-322TBTOQ.cjs} +48 -48
- package/dist/{chunk-BYBDM423.cjs.map → chunk-322TBTOQ.cjs.map} +1 -1
- package/dist/chunk-36SX6QXP.cjs +186 -0
- package/dist/chunk-36SX6QXP.cjs.map +1 -0
- package/dist/{chunk-H3XP6BAV.js → chunk-36VYWVQU.js} +3 -3
- package/dist/{chunk-H3XP6BAV.js.map → chunk-36VYWVQU.js.map} +1 -1
- package/dist/{chunk-VTJVMP4I.js → chunk-4DKY6RIU.js} +102 -31
- package/dist/chunk-4DKY6RIU.js.map +1 -0
- package/dist/chunk-4QKOZYMV.js +9 -0
- package/dist/chunk-4QKOZYMV.js.map +1 -0
- package/dist/{chunk-U3Z7XKAG.js → chunk-57JM6NW3.js} +8 -18
- package/dist/chunk-57JM6NW3.js.map +1 -0
- package/dist/{chunk-WCLMKNQE.cjs → chunk-5FVZSE3B.cjs} +1356 -1108
- package/dist/chunk-5FVZSE3B.cjs.map +1 -0
- package/dist/{chunk-XMY2SXOH.cjs → chunk-5WWEYV4H.cjs} +2208 -579
- package/dist/chunk-5WWEYV4H.cjs.map +1 -0
- package/dist/{chunk-WQBAQZHR.js → chunk-6NLYIMJO.js} +4 -4
- package/dist/{chunk-WQBAQZHR.js.map → chunk-6NLYIMJO.js.map} +1 -1
- package/dist/{chunk-G2TLHH6T.cjs → chunk-7B7I7YAW.cjs} +6 -6
- package/dist/{chunk-G2TLHH6T.cjs.map → chunk-7B7I7YAW.cjs.map} +1 -1
- package/dist/{chunk-EDLKIQRI.js → chunk-7G5IYROL.js} +6 -548
- package/dist/chunk-7G5IYROL.js.map +1 -0
- package/dist/{chunk-46UGOVRW.js → chunk-7QFRK6PU.js} +3 -7
- package/dist/chunk-7QFRK6PU.js.map +1 -0
- package/dist/chunk-A4C4NJ5U.cjs +12 -0
- package/dist/chunk-A4C4NJ5U.cjs.map +1 -0
- package/dist/{chunk-7CCMCMJO.cjs → chunk-AOGOC6JF.cjs} +77 -68
- package/dist/chunk-AOGOC6JF.cjs.map +1 -0
- package/dist/{chunk-TYGGUWMS.cjs → chunk-B3MN7EJR.cjs} +177 -137
- package/dist/chunk-B3MN7EJR.cjs.map +1 -0
- package/dist/{chunk-K6VKTBST.cjs → chunk-BZ5MVITP.cjs} +4 -4
- package/dist/{chunk-K6VKTBST.cjs.map → chunk-BZ5MVITP.cjs.map} +1 -1
- package/dist/{chunk-ZAQUKCUC.js → chunk-CBOD7TXH.js} +5 -5
- package/dist/{chunk-ZAQUKCUC.js.map → chunk-CBOD7TXH.js.map} +1 -1
- package/dist/{chunk-LLVOQOWE.cjs → chunk-CRZ56SZU.cjs} +6 -5
- package/dist/chunk-CRZ56SZU.cjs.map +1 -0
- package/dist/{chunk-ON47CBE4.cjs → chunk-D3GWARN7.cjs} +47 -47
- package/dist/{chunk-ON47CBE4.cjs.map → chunk-D3GWARN7.cjs.map} +1 -1
- package/dist/{chunk-W5SOCUBL.js → chunk-D3OUDFU7.js} +5 -5
- package/dist/{chunk-W5SOCUBL.js.map → chunk-D3OUDFU7.js.map} +1 -1
- package/dist/chunk-EKG2UXNX.cjs +23 -0
- package/dist/chunk-EKG2UXNX.cjs.map +1 -0
- package/dist/{chunk-2Q45FAIE.js → chunk-EVYW3532.js} +28 -19
- package/dist/chunk-EVYW3532.js.map +1 -0
- package/dist/{chunk-7PRMDZIA.cjs → chunk-FMMW3KX7.cjs} +21 -55
- package/dist/chunk-FMMW3KX7.cjs.map +1 -0
- package/dist/chunk-H2VWDQWC.cjs +571 -0
- package/dist/chunk-H2VWDQWC.cjs.map +1 -0
- package/dist/chunk-H4FY6OZK.js +13 -0
- package/dist/chunk-H4FY6OZK.js.map +1 -0
- package/dist/{chunk-OJHD3LXJ.cjs → chunk-H5IJSROF.cjs} +2 -8
- package/dist/chunk-H5IJSROF.cjs.map +1 -0
- package/dist/{chunk-U5EL6JUV.js → chunk-I5IOSA27.js} +101 -103
- package/dist/chunk-I5IOSA27.js.map +1 -0
- package/dist/{chunk-SHC7BCG5.cjs → chunk-I7YAY2VQ.cjs} +7 -7
- package/dist/{chunk-SHC7BCG5.cjs.map → chunk-I7YAY2VQ.cjs.map} +1 -1
- package/dist/chunk-IRCWIA3R.js +20 -0
- package/dist/chunk-IRCWIA3R.js.map +1 -0
- package/dist/chunk-IVQBLXBK.cjs +55 -0
- package/dist/chunk-IVQBLXBK.cjs.map +1 -0
- package/dist/{chunk-5PP4KRPV.js → chunk-IZD4HTCP.js} +5 -5
- package/dist/{chunk-5PP4KRPV.js.map → chunk-IZD4HTCP.js.map} +1 -1
- package/dist/{chunk-RDP6ZRSM.cjs → chunk-JQKMEKKW.cjs} +261 -204
- package/dist/chunk-JQKMEKKW.cjs.map +1 -0
- package/dist/chunk-JVA3KDEA.cjs +691 -0
- package/dist/chunk-JVA3KDEA.cjs.map +1 -0
- package/dist/{chunk-JG5XIJDY.js → chunk-K67P5DLL.js} +62 -22
- package/dist/chunk-K67P5DLL.js.map +1 -0
- package/dist/{chunk-MX7EKQPM.js → chunk-K6OZIHKI.js} +345 -97
- package/dist/chunk-K6OZIHKI.js.map +1 -0
- package/dist/{chunk-CS6JTQQ2.cjs → chunk-KACEYDYV.cjs} +94 -62
- package/dist/chunk-KACEYDYV.cjs.map +1 -0
- package/dist/{chunk-5OWHU7Z7.cjs → chunk-L6EVYIID.cjs} +248 -210
- package/dist/chunk-L6EVYIID.cjs.map +1 -0
- package/dist/{chunk-7OWE7WD6.js → chunk-LI4K2KEJ.js} +4 -4
- package/dist/{chunk-7OWE7WD6.js.map → chunk-LI4K2KEJ.js.map} +1 -1
- package/dist/chunk-LKZDQ2B4.js +1581 -0
- package/dist/chunk-LKZDQ2B4.js.map +1 -0
- package/dist/{chunk-45YZXI6X.cjs → chunk-LLFPQOBA.cjs} +27 -27
- package/dist/{chunk-45YZXI6X.cjs.map → chunk-LLFPQOBA.cjs.map} +1 -1
- package/dist/{chunk-ZRJTM7MT.js → chunk-LZMQ3SFK.js} +3 -3
- package/dist/{chunk-ZRJTM7MT.js.map → chunk-LZMQ3SFK.js.map} +1 -1
- package/dist/{chunk-DI6VC62F.js → chunk-M3VTS3F6.js} +3 -3
- package/dist/{chunk-DI6VC62F.js.map → chunk-M3VTS3F6.js.map} +1 -1
- package/dist/{chunk-MZ34E2GN.js → chunk-NBOS7BY3.js} +60 -21
- package/dist/chunk-NBOS7BY3.js.map +1 -0
- package/dist/{chunk-YA36ABIL.js → chunk-NGQDGL5X.js} +14 -48
- package/dist/chunk-NGQDGL5X.js.map +1 -0
- package/dist/{chunk-ZBFZGLZE.cjs → chunk-NLX5OWK7.cjs} +6 -2
- package/dist/chunk-NLX5OWK7.cjs.map +1 -0
- package/dist/chunk-NUQ2YFFH.cjs +1637 -0
- package/dist/chunk-NUQ2YFFH.cjs.map +1 -0
- package/dist/{chunk-TTCOPKUL.cjs → chunk-OGL4X4PH.cjs} +182 -184
- package/dist/chunk-OGL4X4PH.cjs.map +1 -0
- package/dist/{chunk-HY5BNOUN.cjs → chunk-OTNTGEXR.cjs} +4 -4
- package/dist/{chunk-HY5BNOUN.cjs.map → chunk-OTNTGEXR.cjs.map} +1 -1
- package/dist/chunk-OTWE63BW.js +53 -0
- package/dist/chunk-OTWE63BW.js.map +1 -0
- package/dist/chunk-PC5NGH5A.js +549 -0
- package/dist/chunk-PC5NGH5A.js.map +1 -0
- package/dist/{chunk-IPRP6TDL.cjs → chunk-PS3TUWJM.cjs} +7 -7
- package/dist/{chunk-IPRP6TDL.cjs.map → chunk-PS3TUWJM.cjs.map} +1 -1
- package/dist/{chunk-V76FGHY3.js → chunk-PVFFH7TL.js} +5 -5
- package/dist/{chunk-V76FGHY3.js.map → chunk-PVFFH7TL.js.map} +1 -1
- package/dist/chunk-QCD5JKU4.cjs +15 -0
- package/dist/chunk-QCD5JKU4.cjs.map +1 -0
- package/dist/{chunk-IRPYOHRC.js → chunk-QG5VEOKX.js} +6 -2
- package/dist/chunk-QG5VEOKX.js.map +1 -0
- package/dist/{chunk-2CYI5HRH.js → chunk-RI7RJH4G.js} +49 -17
- package/dist/chunk-RI7RJH4G.js.map +1 -0
- package/dist/{chunk-5LKOVCPP.js → chunk-RVUL2HXY.js} +6 -5
- package/dist/chunk-RVUL2HXY.js.map +1 -0
- package/dist/{chunk-WK23PGTP.cjs → chunk-S5GU4LUN.cjs} +11 -11
- package/dist/{chunk-WK23PGTP.cjs.map → chunk-S5GU4LUN.cjs.map} +1 -1
- package/dist/{chunk-S33YQEL7.js → chunk-SDPWO2Z5.js} +6 -6
- package/dist/{chunk-S33YQEL7.js.map → chunk-SDPWO2Z5.js.map} +1 -1
- package/dist/{chunk-6S3PTHL4.js → chunk-SLGGT2XD.js} +3 -3
- package/dist/{chunk-6S3PTHL4.js.map → chunk-SLGGT2XD.js.map} +1 -1
- package/dist/{chunk-HSEZ7X6Y.cjs → chunk-TIJUA4I6.cjs} +45 -45
- package/dist/{chunk-HSEZ7X6Y.cjs.map → chunk-TIJUA4I6.cjs.map} +1 -1
- package/dist/{chunk-CSNOYIB4.cjs → chunk-TM54OBHX.cjs} +13 -13
- package/dist/{chunk-CSNOYIB4.cjs.map → chunk-TM54OBHX.cjs.map} +1 -1
- package/dist/{chunk-MM3JHVKZ.cjs → chunk-TUWSVL6I.cjs} +4 -4
- package/dist/{chunk-MM3JHVKZ.cjs.map → chunk-TUWSVL6I.cjs.map} +1 -1
- package/dist/{chunk-2GIV5X4P.js → chunk-TYEYRCXL.js} +86 -33
- package/dist/chunk-TYEYRCXL.js.map +1 -0
- package/dist/{chunk-MJPZNEJZ.js → chunk-UKOVGCRN.js} +2095 -496
- package/dist/chunk-UKOVGCRN.js.map +1 -0
- package/dist/chunk-UYKDYE5D.cjs +12 -0
- package/dist/{chunk-KWNWG4RC.cjs.map → chunk-UYKDYE5D.cjs.map} +1 -1
- package/dist/{chunk-FX5ZW6PN.js → chunk-VAAC7L57.js} +95 -40
- package/dist/chunk-VAAC7L57.js.map +1 -0
- package/dist/{chunk-ISKCIQF2.cjs → chunk-VKHXYVN7.cjs} +14 -25
- package/dist/chunk-VKHXYVN7.cjs.map +1 -0
- package/dist/chunk-VUQZNUHU.js +171 -0
- package/dist/chunk-VUQZNUHU.js.map +1 -0
- package/dist/{chunk-K2XYLVVB.cjs → chunk-WDM5WQK4.cjs} +175 -136
- package/dist/chunk-WDM5WQK4.cjs.map +1 -0
- package/dist/{chunk-GVYVGGPJ.js → chunk-WFSYYU4W.js} +66 -28
- package/dist/chunk-WFSYYU4W.js.map +1 -0
- package/dist/{chunk-R7MRFE5P.js → chunk-WS5MT2UJ.js} +3 -3
- package/dist/{chunk-R7MRFE5P.js.map → chunk-WS5MT2UJ.js.map} +1 -1
- package/dist/chunk-XORONCV3.js +202 -0
- package/dist/chunk-XORONCV3.js.map +1 -0
- package/dist/chunk-ZGVTNKTX.cjs +217 -0
- package/dist/chunk-ZGVTNKTX.cjs.map +1 -0
- package/dist/core/index.cjs +20 -20
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +4 -4
- package/dist/{ddl-B49O7dB_.d.ts → ddl-BvcbgzHo.d.ts} +3 -3
- package/dist/{ddl-DcZG660s.d.cts → ddl-Ufebz5q5.d.cts} +3 -3
- package/dist/graph-extension/index.d.cts +2 -4
- package/dist/graph-extension/index.d.ts +2 -4
- package/dist/graph-merge/index.cjs +140 -125
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +8 -9
- package/dist/graph-merge/index.d.ts +8 -9
- package/dist/graph-merge/index.js +42 -27
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/index.cjs +144 -143
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -12
- package/dist/index.d.ts +11 -12
- package/dist/index.js +30 -29
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +14 -12
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +7 -5
- package/dist/{ingestion-import-target-CI8OWIkM.d.ts → ingestion-import-target-CAs1OX-l.d.cts} +1 -1
- package/dist/{ingestion-import-target-DCpfM1PX.d.cts → ingestion-import-target-DCQSPfNx.d.ts} +1 -1
- package/dist/interchange/index.cjs +41 -39
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +8 -8
- package/dist/interchange/index.d.ts +8 -8
- package/dist/interchange/index.js +16 -14
- package/dist/interchange/index.js.map +1 -1
- package/dist/local-store-impl-JC7OBRAW.js +75 -0
- package/dist/local-store-impl-JC7OBRAW.js.map +1 -0
- package/dist/local-store-impl-UOS2LUIG.cjs +77 -0
- package/dist/local-store-impl-UOS2LUIG.cjs.map +1 -0
- package/dist/{manager-Cfg1ENj1.d.ts → manager-B68OrPR2.d.ts} +1 -2
- package/dist/{manager-D348fa6W.d.cts → manager-D_t7oK69.d.cts} +1 -2
- package/dist/pglite-store-impl-J5J5AA52.cjs +75 -0
- package/dist/pglite-store-impl-J5J5AA52.cjs.map +1 -0
- package/dist/pglite-store-impl-LDRH2DUH.js +73 -0
- package/dist/pglite-store-impl-LDRH2DUH.js.map +1 -0
- package/dist/{postgres-UStOycLI.d.ts → postgres-BPLSVyHM.d.ts} +1 -1
- package/dist/{postgres-CH1kkM5J.d.cts → postgres-CqvtFC2y.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 +33 -20
- 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 +24 -11
- package/dist/provenance/index.js.map +1 -1
- package/dist/{repair-validity-windows-aWX7VNvv.d.cts → repair-validity-windows-DEzCKAdy.d.cts} +7 -3
- package/dist/{repair-validity-windows-BtOEe2pS.d.ts → repair-validity-windows-GMdaS2AH.d.ts} +7 -3
- package/dist/resolve-D_H8MHtq.d.ts +1805 -0
- package/dist/resolve-WEW8gWws.d.cts +1805 -0
- package/dist/schema/index.cjs +42 -40
- package/dist/schema/index.d.cts +4 -6
- package/dist/schema/index.d.ts +4 -6
- package/dist/schema/index.js +15 -13
- package/dist/{searchable-z4BiFfHI.d.ts → searchable-C_UREI9K.d.ts} +1 -1
- package/dist/{searchable-C8-RrL3l.d.cts → searchable-ClgET_i7.d.cts} +1 -1
- package/dist/{sqlite-axLw5Lo5.d.ts → sqlite-D1mXO9Kp.d.cts} +2 -1
- package/dist/{sqlite-Cyx9j9o6.d.cts → sqlite-MZA3oZNB.d.ts} +2 -1
- package/dist/{store-CTfQ9taw.d.ts → store-CuFX7fCx.d.cts} +38 -41
- package/dist/{store-DR9J7JVB.d.cts → store-D-ZjXQpW.d.ts} +38 -41
- package/dist/{temporal-CBOrERz5.d.ts → temporal-CpyEiRY8.d.cts} +1 -1
- package/dist/{temporal-B4Ky4wzh.d.cts → temporal-y0Aep9Su.d.ts} +1 -1
- package/dist/{types-CWg4dTjj.d.ts → types-6yf0Vv-_.d.cts} +1672 -1
- package/dist/{types-CWg4dTjj.d.cts → types-6yf0Vv-_.d.ts} +1672 -1
- package/dist/{types-BScHXVM7.d.ts → types-DzJ4dlzk.d.cts} +1 -1
- package/dist/{types-BE921wRl.d.cts → types-_vVSB9k-.d.ts} +1 -1
- package/dist/{where-BWXUPV3C.d.ts → where-DuG2LCLe.d.ts} +1 -1
- package/dist/{where-CNtx1aLc.d.cts → where-Mhf_yyKX.d.cts} +1 -1
- package/package.json +5 -1
- package/dist/chunk-2CYI5HRH.js.map +0 -1
- package/dist/chunk-2GIV5X4P.js.map +0 -1
- package/dist/chunk-2Q45FAIE.js.map +0 -1
- package/dist/chunk-46UGOVRW.js.map +0 -1
- package/dist/chunk-5LKOVCPP.js.map +0 -1
- package/dist/chunk-5OWHU7Z7.cjs.map +0 -1
- package/dist/chunk-6LEOAIIB.js +0 -1160
- package/dist/chunk-6LEOAIIB.js.map +0 -1
- package/dist/chunk-7CCMCMJO.cjs.map +0 -1
- package/dist/chunk-7PRMDZIA.cjs.map +0 -1
- package/dist/chunk-C76WFIVZ.cjs.map +0 -1
- package/dist/chunk-CS6JTQQ2.cjs.map +0 -1
- package/dist/chunk-EDLKIQRI.js.map +0 -1
- package/dist/chunk-EH3JZJUM.cjs +0 -567
- package/dist/chunk-EH3JZJUM.cjs.map +0 -1
- package/dist/chunk-FX5ZW6PN.js.map +0 -1
- package/dist/chunk-GHZPZNFC.cjs +0 -132
- package/dist/chunk-GHZPZNFC.cjs.map +0 -1
- package/dist/chunk-GVYVGGPJ.js.map +0 -1
- package/dist/chunk-IHK5KA2Q.cjs +0 -262
- package/dist/chunk-IHK5KA2Q.cjs.map +0 -1
- package/dist/chunk-IRPYOHRC.js.map +0 -1
- package/dist/chunk-ISKCIQF2.cjs.map +0 -1
- package/dist/chunk-JG5XIJDY.js.map +0 -1
- package/dist/chunk-K2XYLVVB.cjs.map +0 -1
- package/dist/chunk-KWNWG4RC.cjs +0 -12
- package/dist/chunk-LLVOQOWE.cjs.map +0 -1
- package/dist/chunk-MJPZNEJZ.js.map +0 -1
- package/dist/chunk-MX7EKQPM.js.map +0 -1
- package/dist/chunk-MZ34E2GN.js.map +0 -1
- package/dist/chunk-OJHD3LXJ.cjs.map +0 -1
- package/dist/chunk-PALYTHGM.js +0 -114
- package/dist/chunk-PALYTHGM.js.map +0 -1
- package/dist/chunk-RDP6ZRSM.cjs.map +0 -1
- package/dist/chunk-S3SDEQMC.js +0 -532
- package/dist/chunk-S3SDEQMC.js.map +0 -1
- package/dist/chunk-TEC24ZDA.cjs +0 -1254
- package/dist/chunk-TEC24ZDA.cjs.map +0 -1
- package/dist/chunk-TP4NJTI3.cjs +0 -1192
- package/dist/chunk-TP4NJTI3.cjs.map +0 -1
- package/dist/chunk-TTCOPKUL.cjs.map +0 -1
- package/dist/chunk-TUVD4DFR.cjs.map +0 -1
- package/dist/chunk-TYGGUWMS.cjs.map +0 -1
- package/dist/chunk-U3Z7XKAG.js.map +0 -1
- package/dist/chunk-U5EL6JUV.js.map +0 -1
- package/dist/chunk-VTJVMP4I.js.map +0 -1
- package/dist/chunk-WCLMKNQE.cjs.map +0 -1
- package/dist/chunk-XMY2SXOH.cjs.map +0 -1
- package/dist/chunk-Y55DLLEG.js +0 -247
- package/dist/chunk-Y55DLLEG.js.map +0 -1
- package/dist/chunk-YA36ABIL.js.map +0 -1
- package/dist/chunk-ZBFZGLZE.cjs.map +0 -1
- package/dist/index-B0PrmE3K.d.cts +0 -1146
- package/dist/index-CwcXsL5R.d.ts +0 -1146
- package/dist/materialize-indexes-C9GG3O3C.d.ts +0 -266
- package/dist/materialize-indexes-CrSiW_lT.d.cts +0 -266
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var chunkOJHD3LXJ_cjs = require('./chunk-OJHD3LXJ.cjs');
|
|
3
|
+
var chunk5WWEYV4H_cjs = require('./chunk-5WWEYV4H.cjs');
|
|
4
|
+
var chunkLLFPQOBA_cjs = require('./chunk-LLFPQOBA.cjs');
|
|
5
|
+
var chunk36SX6QXP_cjs = require('./chunk-36SX6QXP.cjs');
|
|
6
|
+
var chunkNLX5OWK7_cjs = require('./chunk-NLX5OWK7.cjs');
|
|
7
|
+
var chunkNUQ2YFFH_cjs = require('./chunk-NUQ2YFFH.cjs');
|
|
8
|
+
var chunkH2VWDQWC_cjs = require('./chunk-H2VWDQWC.cjs');
|
|
9
|
+
var chunkH5IJSROF_cjs = require('./chunk-H5IJSROF.cjs');
|
|
11
10
|
var chunkX4GDXBOP_cjs = require('./chunk-X4GDXBOP.cjs');
|
|
12
11
|
var chunkN66HCGCY_cjs = require('./chunk-N66HCGCY.cjs');
|
|
13
12
|
var drizzleOrm = require('drizzle-orm');
|
|
@@ -100,14 +99,14 @@ function hasModernBindLimitByVersion(rows) {
|
|
|
100
99
|
}
|
|
101
100
|
function detectHardMaxBindParameters(transactionMode, hostedPlatform) {
|
|
102
101
|
if (hostedPlatform === "durable-object" || transactionMode === "do-sqlite") {
|
|
103
|
-
return
|
|
102
|
+
return chunkNUQ2YFFH_cjs.DURABLE_OBJECT_MAX_BIND_PARAMETERS;
|
|
104
103
|
}
|
|
105
|
-
if (hostedPlatform === "d1") return
|
|
104
|
+
if (hostedPlatform === "d1") return chunkNUQ2YFFH_cjs.D1_MAX_BIND_PARAMETERS;
|
|
106
105
|
return void 0;
|
|
107
106
|
}
|
|
108
107
|
function detectMaxBindParameters(sqliteClient, hardMaxBindParameters) {
|
|
109
108
|
if (hardMaxBindParameters !== void 0) return hardMaxBindParameters;
|
|
110
|
-
if (sqliteClient === void 0) return
|
|
109
|
+
if (sqliteClient === void 0) return chunkNUQ2YFFH_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
111
110
|
try {
|
|
112
111
|
const compiled = parseCompiledMaxVariableNumber(
|
|
113
112
|
sqliteClient.prepare("PRAGMA compile_options").all()
|
|
@@ -116,9 +115,9 @@ function detectMaxBindParameters(sqliteClient, hardMaxBindParameters) {
|
|
|
116
115
|
const isModern = hasModernBindLimitByVersion(
|
|
117
116
|
sqliteClient.prepare("SELECT sqlite_version() AS version").all()
|
|
118
117
|
);
|
|
119
|
-
return isModern ?
|
|
118
|
+
return isModern ? chunkNUQ2YFFH_cjs.MODERN_SQLITE_MAX_BIND_PARAMETERS : chunkNUQ2YFFH_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
120
119
|
} catch {
|
|
121
|
-
return
|
|
120
|
+
return chunkNUQ2YFFH_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
123
|
function preparingClient(client) {
|
|
@@ -148,7 +147,7 @@ function resolveSqliteClient(db) {
|
|
|
148
147
|
return sqliteClient;
|
|
149
148
|
}
|
|
150
149
|
function getOrCreatePreparedStatement(cache, sqliteClient, sqlText, cacheMax) {
|
|
151
|
-
return
|
|
150
|
+
return chunk5WWEYV4H_cjs.getOrCreateLru(
|
|
152
151
|
cache,
|
|
153
152
|
sqlText,
|
|
154
153
|
cacheMax,
|
|
@@ -200,7 +199,7 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
200
199
|
supportsCompiledExecution: sqliteClient !== void 0,
|
|
201
200
|
transactionMode
|
|
202
201
|
};
|
|
203
|
-
const compile = (query) =>
|
|
202
|
+
const compile = (query) => chunkLLFPQOBA_cjs.compileQueryWithDialect(db, query, "SQLite");
|
|
204
203
|
if (sqliteClient !== void 0) {
|
|
205
204
|
let executeCompiled2 = function(compiledQuery) {
|
|
206
205
|
const preparedStatement = getOrCreatePreparedStatement(
|
|
@@ -273,7 +272,7 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
273
272
|
execute(query) {
|
|
274
273
|
return executeDrizzleQuery(
|
|
275
274
|
db,
|
|
276
|
-
|
|
275
|
+
chunkH5IJSROF_cjs.isSqlFragment(query) ? chunkLLFPQOBA_cjs.toDrizzleSql(query, "sqlite") : query
|
|
277
276
|
);
|
|
278
277
|
},
|
|
279
278
|
profile
|
|
@@ -297,6 +296,11 @@ var IDENTITY_TABLE_LOGICAL_NAMES = /* @__PURE__ */ new Set([
|
|
|
297
296
|
"identityClosure",
|
|
298
297
|
"identitySeparation"
|
|
299
298
|
]);
|
|
299
|
+
var RECORDED_TABLE_LOGICAL_NAMES = /* @__PURE__ */ new Set([
|
|
300
|
+
"recordedNodes",
|
|
301
|
+
"recordedEdges",
|
|
302
|
+
"recordedClock"
|
|
303
|
+
]);
|
|
300
304
|
function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
301
305
|
return {
|
|
302
306
|
checkUniqueBatchChunkSize: Math.max(
|
|
@@ -305,7 +309,7 @@ function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
|
305
309
|
),
|
|
306
310
|
embeddingUpsertBatchSize: Math.max(
|
|
307
311
|
1,
|
|
308
|
-
Math.floor(maxBindParameters /
|
|
312
|
+
Math.floor(maxBindParameters / chunk5WWEYV4H_cjs.EMBEDDING_UPSERT_PARAM_COUNT)
|
|
309
313
|
),
|
|
310
314
|
fulltextUpsertBatchSize: Math.max(
|
|
311
315
|
1,
|
|
@@ -321,7 +325,7 @@ function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
|
321
325
|
),
|
|
322
326
|
findEdgesEndpointChunkSize: Math.max(
|
|
323
327
|
1,
|
|
324
|
-
maxBindParameters -
|
|
328
|
+
maxBindParameters - chunk5WWEYV4H_cjs.FIND_EDGES_ENDPOINT_FIXED_PARAM_COUNT
|
|
325
329
|
),
|
|
326
330
|
getEdgesChunkSize: Math.max(
|
|
327
331
|
1,
|
|
@@ -345,11 +349,11 @@ function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
|
345
349
|
)
|
|
346
350
|
};
|
|
347
351
|
}
|
|
348
|
-
var toNodeRow =
|
|
349
|
-
var toEdgeRow =
|
|
350
|
-
var toUniqueRow =
|
|
351
|
-
var toSchemaVersionRow =
|
|
352
|
-
|
|
352
|
+
var toNodeRow = chunk36SX6QXP_cjs.createNodeRowMapper(chunk36SX6QXP_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
353
|
+
var toEdgeRow = chunk36SX6QXP_cjs.createEdgeRowMapper(chunk36SX6QXP_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
354
|
+
var toUniqueRow = chunk36SX6QXP_cjs.createUniqueRowMapper(chunk36SX6QXP_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
355
|
+
var toSchemaVersionRow = chunk36SX6QXP_cjs.createSchemaVersionRowMapper(
|
|
356
|
+
chunk36SX6QXP_cjs.SQLITE_ROW_MAPPER_CONFIG
|
|
353
357
|
);
|
|
354
358
|
var PENDING_FOREVER = new Promise(noop);
|
|
355
359
|
function pendingForever() {
|
|
@@ -425,20 +429,20 @@ function throwSqliteTransactionsDisabled(message) {
|
|
|
425
429
|
}
|
|
426
430
|
function buildSqliteCapabilities(options) {
|
|
427
431
|
const base = options.transactionMode === "none" ? {
|
|
428
|
-
...
|
|
432
|
+
...chunkNUQ2YFFH_cjs.SQLITE_CAPABILITIES,
|
|
429
433
|
transactions: false,
|
|
430
434
|
graphAnalytics: {
|
|
431
|
-
...
|
|
435
|
+
...chunkNUQ2YFFH_cjs.SQLITE_CAPABILITIES.graphAnalytics ?? {
|
|
432
436
|
mathFunctions: false
|
|
433
437
|
},
|
|
434
438
|
supported: false
|
|
435
439
|
}
|
|
436
|
-
} :
|
|
440
|
+
} : chunkNUQ2YFFH_cjs.SQLITE_CAPABILITIES;
|
|
437
441
|
return {
|
|
438
442
|
...base,
|
|
439
443
|
maxBindParameters: options.maxBindParameters,
|
|
440
|
-
fulltext:
|
|
441
|
-
...options.vectorStrategy === void 0 ? {} : { vector:
|
|
444
|
+
fulltext: chunkH2VWDQWC_cjs.buildFulltextCapabilities(options.fulltextStrategy),
|
|
445
|
+
...options.vectorStrategy === void 0 ? {} : { vector: chunkH2VWDQWC_cjs.buildVectorCapabilities(options.vectorStrategy) }
|
|
442
446
|
};
|
|
443
447
|
}
|
|
444
448
|
function resolveMaxBindParametersCapability(profile, override) {
|
|
@@ -446,7 +450,7 @@ function resolveMaxBindParametersCapability(profile, override) {
|
|
|
446
450
|
return profile.hardMaxBindParameters === void 0 ? requested : Math.min(requested, profile.hardMaxBindParameters);
|
|
447
451
|
}
|
|
448
452
|
function resolveSqliteGraphAnalyticsCapabilities(profile, override) {
|
|
449
|
-
const requested = override ??
|
|
453
|
+
const requested = override ?? chunkNUQ2YFFH_cjs.SQLITE_CAPABILITIES.graphAnalytics ?? {
|
|
450
454
|
supported: false,
|
|
451
455
|
mathFunctions: false
|
|
452
456
|
};
|
|
@@ -492,7 +496,7 @@ function createSqliteOperationBackend(options) {
|
|
|
492
496
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
493
497
|
if (compiledRun === void 0) {
|
|
494
498
|
await db.run(
|
|
495
|
-
|
|
499
|
+
chunkH5IJSROF_cjs.isSqlFragment(query) ? chunkLLFPQOBA_cjs.toDrizzleSql(query, "sqlite") : query
|
|
496
500
|
);
|
|
497
501
|
return;
|
|
498
502
|
}
|
|
@@ -500,17 +504,17 @@ function createSqliteOperationBackend(options) {
|
|
|
500
504
|
});
|
|
501
505
|
}
|
|
502
506
|
const batchConfig = computeSqliteBatchChunkSizes(
|
|
503
|
-
capabilities.maxBindParameters ??
|
|
507
|
+
capabilities.maxBindParameters ?? chunkNUQ2YFFH_cjs.SQLITE_MAX_BIND_PARAMETERS
|
|
504
508
|
);
|
|
505
|
-
const commonOperationMembers =
|
|
509
|
+
const commonOperationMembers = chunk5WWEYV4H_cjs.createCommonOperationBackend({
|
|
506
510
|
batchConfig,
|
|
507
511
|
execution: {
|
|
508
512
|
execAll,
|
|
509
513
|
execGet,
|
|
510
514
|
execRun
|
|
511
515
|
},
|
|
512
|
-
nowIso:
|
|
513
|
-
maxBindParameters: capabilities.maxBindParameters ??
|
|
516
|
+
nowIso: chunk36SX6QXP_cjs.nowIso,
|
|
517
|
+
maxBindParameters: capabilities.maxBindParameters ?? chunkNUQ2YFFH_cjs.SQLITE_MAX_BIND_PARAMETERS,
|
|
514
518
|
operationStrategy,
|
|
515
519
|
rowMappers: {
|
|
516
520
|
toEdgeRow,
|
|
@@ -530,28 +534,28 @@ function createSqliteOperationBackend(options) {
|
|
|
530
534
|
};
|
|
531
535
|
const vectorEmbeddingMethods = vectorStrategy === void 0 ? {} : {
|
|
532
536
|
async upsertEmbedding(params) {
|
|
533
|
-
const slot =
|
|
537
|
+
const slot = chunk5WWEYV4H_cjs.vectorSlotFromParams(params);
|
|
534
538
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
535
|
-
const statements = vectorStrategy.buildUpsert(slot, params,
|
|
539
|
+
const statements = vectorStrategy.buildUpsert(slot, params, chunk36SX6QXP_cjs.nowIso());
|
|
536
540
|
try {
|
|
537
541
|
for (const statement of statements) {
|
|
538
542
|
await execRun(statement);
|
|
539
543
|
}
|
|
540
544
|
} catch (error) {
|
|
541
|
-
throw
|
|
545
|
+
throw chunk5WWEYV4H_cjs.mapVectorWriteError(error, params);
|
|
542
546
|
}
|
|
543
547
|
},
|
|
544
548
|
async upsertEmbeddingBatch(params) {
|
|
545
549
|
if (params.rows.length === 0) return;
|
|
546
|
-
const slot =
|
|
550
|
+
const slot = chunk5WWEYV4H_cjs.vectorSlotFromParams(params);
|
|
547
551
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
548
552
|
const rowsById = new Map(
|
|
549
553
|
params.rows.map((row) => [row.nodeId, row])
|
|
550
554
|
);
|
|
551
555
|
const rows = [...rowsById.values()];
|
|
552
|
-
const timestamp =
|
|
556
|
+
const timestamp = chunk36SX6QXP_cjs.nowIso();
|
|
553
557
|
try {
|
|
554
|
-
for (const chunk2 of
|
|
558
|
+
for (const chunk2 of chunkNLX5OWK7_cjs.chunk(
|
|
555
559
|
rows,
|
|
556
560
|
batchConfig.embeddingUpsertBatchSize
|
|
557
561
|
)) {
|
|
@@ -580,11 +584,11 @@ function createSqliteOperationBackend(options) {
|
|
|
580
584
|
}
|
|
581
585
|
}
|
|
582
586
|
} catch (error) {
|
|
583
|
-
throw
|
|
587
|
+
throw chunk5WWEYV4H_cjs.mapVectorWriteError(error, params);
|
|
584
588
|
}
|
|
585
589
|
},
|
|
586
590
|
async deleteEmbedding(params) {
|
|
587
|
-
const slot =
|
|
591
|
+
const slot = chunk5WWEYV4H_cjs.vectorSlotFromParams(params);
|
|
588
592
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
589
593
|
const statements = vectorStrategy.buildDelete(slot, params);
|
|
590
594
|
for (const statement of statements) {
|
|
@@ -593,9 +597,9 @@ function createSqliteOperationBackend(options) {
|
|
|
593
597
|
},
|
|
594
598
|
async deleteEmbeddingBatch(params) {
|
|
595
599
|
if (params.nodeIds.length === 0) return;
|
|
596
|
-
const slot =
|
|
600
|
+
const slot = chunk5WWEYV4H_cjs.vectorSlotFromParams(params);
|
|
597
601
|
await contributionMaterializer.assertVectorSlot(slot);
|
|
598
|
-
for (const nodeIds of
|
|
602
|
+
for (const nodeIds of chunkNLX5OWK7_cjs.chunk(
|
|
599
603
|
[...new Set(params.nodeIds)],
|
|
600
604
|
batchConfig.embeddingUpsertBatchSize
|
|
601
605
|
)) {
|
|
@@ -607,33 +611,33 @@ function createSqliteOperationBackend(options) {
|
|
|
607
611
|
}
|
|
608
612
|
},
|
|
609
613
|
async vectorSearch(params) {
|
|
610
|
-
|
|
611
|
-
|
|
614
|
+
chunkH2VWDQWC_cjs.assertVectorSearchLimit(params.limit);
|
|
615
|
+
chunkH2VWDQWC_cjs.resolveEfSearchOverride({
|
|
612
616
|
efSearch: params.efSearch,
|
|
613
617
|
indexType: params.indexType,
|
|
614
|
-
tuning:
|
|
618
|
+
tuning: chunkH2VWDQWC_cjs.vectorSearchFrontierTuning(vectorStrategy),
|
|
615
619
|
transactions: capabilities.transactions,
|
|
616
620
|
dialect: "SQLite",
|
|
617
621
|
engine: vectorStrategy.name
|
|
618
622
|
});
|
|
619
|
-
const slot =
|
|
623
|
+
const slot = chunk5WWEYV4H_cjs.vectorSlotFromParams(params);
|
|
620
624
|
const query = vectorStrategy.buildSearch(
|
|
621
625
|
slot,
|
|
622
626
|
params,
|
|
623
627
|
// Store-compiled candidates (predicates + subclass + currency)
|
|
624
628
|
// take precedence; the live-node default covers direct backend use.
|
|
625
|
-
params.candidates ??
|
|
629
|
+
params.candidates ?? chunk5WWEYV4H_cjs.buildLiveNodeCandidates(
|
|
626
630
|
tableNames.nodes,
|
|
627
631
|
params.graphId,
|
|
628
632
|
params.nodeKind,
|
|
629
|
-
|
|
633
|
+
chunk36SX6QXP_cjs.nowIso()
|
|
630
634
|
)
|
|
631
635
|
);
|
|
632
636
|
let rows;
|
|
633
637
|
try {
|
|
634
638
|
rows = await execAll(query);
|
|
635
639
|
} catch (error) {
|
|
636
|
-
throw
|
|
640
|
+
throw chunk5WWEYV4H_cjs.mapVectorWriteError(error, params);
|
|
637
641
|
}
|
|
638
642
|
return rows.map((row) => ({
|
|
639
643
|
nodeId: row.node_id,
|
|
@@ -645,17 +649,17 @@ function createSqliteOperationBackend(options) {
|
|
|
645
649
|
// fallback by simply not exposing the member.
|
|
646
650
|
...capabilities.windowFunctions ? {
|
|
647
651
|
async hybridSearch(params) {
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
652
|
+
chunkH2VWDQWC_cjs.assertVectorSearchLimit(params.limit);
|
|
653
|
+
chunkH2VWDQWC_cjs.assertVectorSearchLimit(params.vector.k);
|
|
654
|
+
chunkH2VWDQWC_cjs.resolveEfSearchOverride({
|
|
651
655
|
efSearch: params.vector.efSearch,
|
|
652
656
|
indexType: params.vector.indexType,
|
|
653
|
-
tuning:
|
|
657
|
+
tuning: chunkH2VWDQWC_cjs.vectorSearchFrontierTuning(vectorStrategy),
|
|
654
658
|
transactions: capabilities.transactions,
|
|
655
659
|
dialect: "SQLite",
|
|
656
660
|
engine: vectorStrategy.name
|
|
657
661
|
});
|
|
658
|
-
const slot =
|
|
662
|
+
const slot = chunk5WWEYV4H_cjs.vectorSlotFromParams({
|
|
659
663
|
graphId: params.graphId,
|
|
660
664
|
nodeKind: params.nodeKind,
|
|
661
665
|
fieldPath: params.vector.fieldPath,
|
|
@@ -663,11 +667,11 @@ function createSqliteOperationBackend(options) {
|
|
|
663
667
|
metric: params.vector.metric,
|
|
664
668
|
indexType: params.vector.indexType
|
|
665
669
|
});
|
|
666
|
-
const candidates = params.candidates ??
|
|
670
|
+
const candidates = params.candidates ?? chunk5WWEYV4H_cjs.buildLiveNodeCandidates(
|
|
667
671
|
tableNames.nodes,
|
|
668
672
|
params.graphId,
|
|
669
673
|
params.nodeKind,
|
|
670
|
-
|
|
674
|
+
chunk36SX6QXP_cjs.nowIso()
|
|
671
675
|
);
|
|
672
676
|
const vectorParams = {
|
|
673
677
|
graphId: params.graphId,
|
|
@@ -683,20 +687,20 @@ function createSqliteOperationBackend(options) {
|
|
|
683
687
|
const vectorSql = vectorStrategy.buildSearch(
|
|
684
688
|
slot,
|
|
685
689
|
vectorParams,
|
|
686
|
-
|
|
690
|
+
chunkH5IJSROF_cjs.sql.raw("SELECT node_id FROM tg_hybrid_cand")
|
|
687
691
|
);
|
|
688
692
|
const statement = operationStrategy.buildHybridSearch(
|
|
689
693
|
{ ...params, candidates },
|
|
690
|
-
|
|
694
|
+
chunkLLFPQOBA_cjs.toDrizzleSql(vectorSql, "sqlite"),
|
|
691
695
|
params.vector.metric === "cosine"
|
|
692
696
|
);
|
|
693
697
|
let raw;
|
|
694
698
|
try {
|
|
695
699
|
raw = await execAll(statement);
|
|
696
700
|
} catch (error) {
|
|
697
|
-
throw
|
|
701
|
+
throw chunk5WWEYV4H_cjs.mapVectorWriteError(error, vectorParams);
|
|
698
702
|
}
|
|
699
|
-
return raw.map((row) =>
|
|
703
|
+
return raw.map((row) => chunk5WWEYV4H_cjs.mapHybridSearchRow(row, toNodeRow));
|
|
700
704
|
}
|
|
701
705
|
} : {}
|
|
702
706
|
};
|
|
@@ -752,7 +756,7 @@ function createSqliteOperationBackend(options) {
|
|
|
752
756
|
const active = await commonOperationMembers.getActiveSchema(
|
|
753
757
|
params.graphId
|
|
754
758
|
);
|
|
755
|
-
|
|
759
|
+
chunk5WWEYV4H_cjs.assertActiveSchemaVersion(
|
|
756
760
|
params.graphId,
|
|
757
761
|
params.expectedVersion,
|
|
758
762
|
active?.version ?? 0
|
|
@@ -760,7 +764,7 @@ function createSqliteOperationBackend(options) {
|
|
|
760
764
|
},
|
|
761
765
|
async createVectorIndex(params) {
|
|
762
766
|
if (vectorStrategy === void 0) return;
|
|
763
|
-
const slot =
|
|
767
|
+
const slot = chunk5WWEYV4H_cjs.vectorSlotFromCreateIndexParams(params);
|
|
764
768
|
await contributionMaterializer.ensureVectorSlot(slot);
|
|
765
769
|
const indexStatement = vectorStrategy.buildCreateIndex?.(slot);
|
|
766
770
|
if (indexStatement !== void 0) {
|
|
@@ -769,18 +773,18 @@ function createSqliteOperationBackend(options) {
|
|
|
769
773
|
},
|
|
770
774
|
async dropVectorIndex(params) {
|
|
771
775
|
if (vectorStrategy === void 0) return;
|
|
772
|
-
const slot =
|
|
776
|
+
const slot = chunk5WWEYV4H_cjs.vectorSlotFromDropIndexParams(params);
|
|
773
777
|
const dropStatement = vectorStrategy.buildDropIndex?.(slot);
|
|
774
778
|
if (dropStatement === void 0) return;
|
|
775
779
|
try {
|
|
776
780
|
await execRun(dropStatement);
|
|
777
781
|
} catch (error) {
|
|
778
|
-
if (!
|
|
782
|
+
if (!chunkNLX5OWK7_cjs.isMissingTableError(error)) throw error;
|
|
779
783
|
}
|
|
780
784
|
},
|
|
781
785
|
// === Fulltext Operations ===
|
|
782
786
|
async upsertFulltext(params) {
|
|
783
|
-
const timestamp =
|
|
787
|
+
const timestamp = chunk36SX6QXP_cjs.nowIso();
|
|
784
788
|
const statements = operationStrategy.buildUpsertFulltext(
|
|
785
789
|
params,
|
|
786
790
|
timestamp
|
|
@@ -797,8 +801,8 @@ function createSqliteOperationBackend(options) {
|
|
|
797
801
|
},
|
|
798
802
|
async upsertFulltextBatch(params) {
|
|
799
803
|
if (params.rows.length === 0) return;
|
|
800
|
-
const timestamp =
|
|
801
|
-
for (const rows of
|
|
804
|
+
const timestamp = chunk36SX6QXP_cjs.nowIso();
|
|
805
|
+
for (const rows of chunkNLX5OWK7_cjs.chunk(
|
|
802
806
|
params.rows,
|
|
803
807
|
batchConfig.fulltextUpsertBatchSize
|
|
804
808
|
)) {
|
|
@@ -813,7 +817,7 @@ function createSqliteOperationBackend(options) {
|
|
|
813
817
|
},
|
|
814
818
|
async deleteFulltextBatch(params) {
|
|
815
819
|
if (params.nodeIds.length === 0) return;
|
|
816
|
-
for (const nodeIds of
|
|
820
|
+
for (const nodeIds of chunkNLX5OWK7_cjs.chunk(
|
|
817
821
|
params.nodeIds,
|
|
818
822
|
batchConfig.fulltextDeleteChunkSize
|
|
819
823
|
)) {
|
|
@@ -831,7 +835,7 @@ function createSqliteOperationBackend(options) {
|
|
|
831
835
|
const rows = await execAll(query);
|
|
832
836
|
return rows.map((row, index) => ({
|
|
833
837
|
nodeId: row.node_id,
|
|
834
|
-
score:
|
|
838
|
+
score: chunk36SX6QXP_cjs.coerceNumericScore(row.score),
|
|
835
839
|
rank: index + 1,
|
|
836
840
|
...row.snippet === null ? {} : { snippet: row.snippet }
|
|
837
841
|
}));
|
|
@@ -864,18 +868,18 @@ function getSerializedSqliteConnection(db) {
|
|
|
864
868
|
return isLocalLibsqlClient(client) ? client : void 0;
|
|
865
869
|
}
|
|
866
870
|
function createSqliteBackend(db, options = {}) {
|
|
867
|
-
const resourceAudit =
|
|
871
|
+
const resourceAudit = chunkNLX5OWK7_cjs.resolveDeclaredBackendResource(
|
|
868
872
|
getSerializedSqliteConnection(db),
|
|
869
873
|
options.serializedResource
|
|
870
874
|
);
|
|
871
|
-
const tables2 = options.tables ??
|
|
872
|
-
const fulltextStrategy = options.fulltext ??
|
|
875
|
+
const tables2 = options.tables ?? chunk5WWEYV4H_cjs.tables2;
|
|
876
|
+
const fulltextStrategy = options.fulltext ?? chunkH2VWDQWC_cjs.fts5Strategy;
|
|
873
877
|
const profileHints = options.executionProfile ?? {};
|
|
874
878
|
const executionAdapter = createSqliteExecutionAdapter(db, { profileHints });
|
|
875
879
|
const { isSync, transactionMode } = executionAdapter.profile;
|
|
876
880
|
const vectorStrategy = options.vector;
|
|
877
881
|
const capabilityOverrides = options.capabilities ?? {};
|
|
878
|
-
const declaredCapabilities =
|
|
882
|
+
const declaredCapabilities = chunkNUQ2YFFH_cjs.normalizeGraphAnalyticsCapabilities({
|
|
879
883
|
...buildSqliteCapabilities({
|
|
880
884
|
fulltextStrategy,
|
|
881
885
|
vectorStrategy,
|
|
@@ -892,18 +896,20 @@ function createSqliteBackend(db, options = {}) {
|
|
|
892
896
|
capabilityOverrides.graphAnalytics
|
|
893
897
|
)
|
|
894
898
|
});
|
|
895
|
-
const capabilities =
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
899
|
+
const capabilities = chunk5WWEYV4H_cjs.assertBundledCapabilityDeclarations(
|
|
900
|
+
{
|
|
901
|
+
...declaredCapabilities,
|
|
902
|
+
contributions: {
|
|
903
|
+
supported: true,
|
|
904
|
+
probe: true,
|
|
905
|
+
rebuild: chunk5WWEYV4H_cjs.contributionRebuildSupported(
|
|
906
|
+
fulltextStrategy,
|
|
907
|
+
tables2.fulltextTableName,
|
|
908
|
+
declaredCapabilities.transactions
|
|
909
|
+
)
|
|
910
|
+
}
|
|
905
911
|
}
|
|
906
|
-
|
|
912
|
+
);
|
|
907
913
|
const tableNames = {
|
|
908
914
|
nodes: drizzleOrm.getTableName(tables2.nodes),
|
|
909
915
|
edges: drizzleOrm.getTableName(tables2.edges),
|
|
@@ -934,14 +940,14 @@ function createSqliteBackend(db, options = {}) {
|
|
|
934
940
|
tableNames.identityClosure,
|
|
935
941
|
tableNames.identitySeparation
|
|
936
942
|
];
|
|
937
|
-
const operationStrategy =
|
|
943
|
+
const operationStrategy = chunk5WWEYV4H_cjs.createSqliteOperationStrategy(
|
|
938
944
|
tables2,
|
|
939
945
|
fulltextStrategy
|
|
940
946
|
);
|
|
941
947
|
const serializedQueue = transactionMode === "none" ? void 0 : createSerializedExecutionQueue();
|
|
942
948
|
const matTable = tables2.contributionMaterializations;
|
|
943
949
|
async function ensureContributionMaterializationsTableImpl() {
|
|
944
|
-
await db.run(drizzleOrm.sql.raw(
|
|
950
|
+
await db.run(drizzleOrm.sql.raw(chunk5WWEYV4H_cjs.generateSqliteCreateTableSQL(matTable)));
|
|
945
951
|
}
|
|
946
952
|
async function getContributionMaterializationRow(identity) {
|
|
947
953
|
const rows = await db.select().from(matTable).where(
|
|
@@ -954,25 +960,25 @@ function createSqliteBackend(db, options = {}) {
|
|
|
954
960
|
);
|
|
955
961
|
const row = rows[0];
|
|
956
962
|
if (row === void 0) return void 0;
|
|
957
|
-
return
|
|
963
|
+
return chunk5WWEYV4H_cjs.mapContributionMaterializationRow(
|
|
958
964
|
row,
|
|
959
|
-
|
|
965
|
+
chunk5WWEYV4H_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
960
966
|
);
|
|
961
967
|
}
|
|
962
968
|
async function getContributionMaterializationRows(graphId) {
|
|
963
969
|
const rows = await db.select().from(matTable).where(drizzleOrm.eq(matTable.graphId, graphId));
|
|
964
970
|
return rows.map(
|
|
965
|
-
(row) =>
|
|
971
|
+
(row) => chunk5WWEYV4H_cjs.mapContributionMaterializationRow(
|
|
966
972
|
row,
|
|
967
|
-
|
|
973
|
+
chunk5WWEYV4H_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
968
974
|
)
|
|
969
975
|
);
|
|
970
976
|
}
|
|
971
977
|
async function recordContributionMaterializationRow(params) {
|
|
972
978
|
await db.insert(matTable).values(
|
|
973
|
-
|
|
979
|
+
chunk5WWEYV4H_cjs.buildContributionInsertValues(
|
|
974
980
|
params,
|
|
975
|
-
|
|
981
|
+
chunk5WWEYV4H_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.encode
|
|
976
982
|
)
|
|
977
983
|
).onConflictDoUpdate({
|
|
978
984
|
target: [
|
|
@@ -981,7 +987,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
981
987
|
matTable.owner,
|
|
982
988
|
matTable.tableName
|
|
983
989
|
],
|
|
984
|
-
set:
|
|
990
|
+
set: chunk5WWEYV4H_cjs.buildContributionOnConflictSet(
|
|
985
991
|
matTable.materializedAt,
|
|
986
992
|
params.materializedAt
|
|
987
993
|
)
|
|
@@ -1001,21 +1007,32 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1001
1007
|
const rows = await executionAdapter.execute(
|
|
1002
1008
|
operationStrategy.buildTableExists(tableName)
|
|
1003
1009
|
);
|
|
1004
|
-
return
|
|
1010
|
+
return chunk5WWEYV4H_cjs.tableExistsFromRow(rows[0]);
|
|
1005
1011
|
}
|
|
1006
1012
|
function identityContributionsFor(identityTableNames) {
|
|
1007
|
-
const identityTables =
|
|
1013
|
+
const identityTables = chunk5WWEYV4H_cjs.createSqliteTables({
|
|
1008
1014
|
identityAssertions: identityTableNames.identityAssertions,
|
|
1009
1015
|
recordedIdentityAssertions: identityTableNames.recordedIdentityAssertions,
|
|
1010
1016
|
identityClosure: identityTableNames.identityClosure,
|
|
1011
1017
|
identitySeparation: identityTableNames.identitySeparation
|
|
1012
1018
|
});
|
|
1013
|
-
return
|
|
1019
|
+
return chunk5WWEYV4H_cjs.sqliteContributions(identityTables, fulltextStrategy).filter(
|
|
1014
1020
|
(contribution) => IDENTITY_TABLE_LOGICAL_NAMES.has(contribution.logicalName)
|
|
1015
1021
|
);
|
|
1016
1022
|
}
|
|
1017
|
-
|
|
1023
|
+
function recordedContributionsFor(recordedTableNames) {
|
|
1024
|
+
const recordedTables = chunk5WWEYV4H_cjs.createSqliteTables({
|
|
1025
|
+
recordedNodes: recordedTableNames.recordedNodes,
|
|
1026
|
+
recordedEdges: recordedTableNames.recordedEdges,
|
|
1027
|
+
recordedClock: recordedTableNames.recordedClock
|
|
1028
|
+
});
|
|
1029
|
+
return chunk5WWEYV4H_cjs.sqliteContributions(recordedTables, fulltextStrategy).filter(
|
|
1030
|
+
(contribution) => RECORDED_TABLE_LOGICAL_NAMES.has(contribution.logicalName)
|
|
1031
|
+
);
|
|
1032
|
+
}
|
|
1033
|
+
const contributionMaterializer = chunk5WWEYV4H_cjs.createContributionMaterializer({
|
|
1018
1034
|
dialect: "sqlite",
|
|
1035
|
+
fenceTarget: chunkNUQ2YFFH_cjs.markFirstPartyFactory({ dialect: "sqlite", capabilities }),
|
|
1019
1036
|
fulltextStrategy,
|
|
1020
1037
|
fulltextTableName: tables2.fulltextTableName,
|
|
1021
1038
|
vectorStrategy,
|
|
@@ -1154,7 +1171,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1154
1171
|
vectorStrategy,
|
|
1155
1172
|
contributionMaterializer
|
|
1156
1173
|
});
|
|
1157
|
-
return
|
|
1174
|
+
return chunk5WWEYV4H_cjs.gateFulltext(
|
|
1158
1175
|
txBackend,
|
|
1159
1176
|
contributionMaterializer.assertInitialized,
|
|
1160
1177
|
contributionMaterializer.refuseUnavailableFulltext
|
|
@@ -1170,29 +1187,29 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1170
1187
|
...options_.schemaWrite
|
|
1171
1188
|
});
|
|
1172
1189
|
}
|
|
1173
|
-
await
|
|
1174
|
-
const indexDefinitions = await
|
|
1190
|
+
await chunk5WWEYV4H_cjs.assertTrustedImportDatabaseEmpty(tx, tableNames);
|
|
1191
|
+
const indexDefinitions = await chunk5WWEYV4H_cjs.suspendSqliteSecondaryIndexes(
|
|
1175
1192
|
tx,
|
|
1176
1193
|
tableNames
|
|
1177
1194
|
);
|
|
1178
1195
|
const result = await fn(
|
|
1179
|
-
|
|
1196
|
+
chunk5WWEYV4H_cjs.createSqliteTrustedImportSession(executionAdapter, tableNames)
|
|
1180
1197
|
);
|
|
1181
|
-
await
|
|
1182
|
-
await
|
|
1198
|
+
await chunk5WWEYV4H_cjs.restoreSecondaryIndexes(tx, indexDefinitions);
|
|
1199
|
+
await chunk5WWEYV4H_cjs.analyzeImportedTables(tx, tableNames);
|
|
1183
1200
|
return result;
|
|
1184
1201
|
});
|
|
1185
1202
|
}
|
|
1186
1203
|
} : {},
|
|
1187
1204
|
async bootstrapTables() {
|
|
1188
|
-
const statements =
|
|
1205
|
+
const statements = chunk5WWEYV4H_cjs.generateSqliteDDL(tables2, fulltextStrategy);
|
|
1189
1206
|
for (const statement of statements) {
|
|
1190
1207
|
await db.run(drizzleOrm.sql.raw(statement));
|
|
1191
1208
|
}
|
|
1192
1209
|
},
|
|
1193
1210
|
async ensureRevisionOriginsTable() {
|
|
1194
1211
|
await db.run(
|
|
1195
|
-
drizzleOrm.sql.raw(
|
|
1212
|
+
drizzleOrm.sql.raw(chunk5WWEYV4H_cjs.generateSqliteCreateTableSQL(tables2.revisionOrigins))
|
|
1196
1213
|
);
|
|
1197
1214
|
},
|
|
1198
1215
|
async ensureIdentityTables(identityTableNames, options2) {
|
|
@@ -1217,12 +1234,33 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1217
1234
|
(contribution) => [...contribution.createDdl]
|
|
1218
1235
|
);
|
|
1219
1236
|
},
|
|
1237
|
+
recordedTableDdl(recordedTableNames) {
|
|
1238
|
+
const contributions = recordedContributionsFor(recordedTableNames);
|
|
1239
|
+
function ddlFor(logicalName) {
|
|
1240
|
+
const contribution = chunkN66HCGCY_cjs.requireDefined(
|
|
1241
|
+
contributions.find((entry) => entry.logicalName === logicalName),
|
|
1242
|
+
`recordedTableDdl: no contribution for ${logicalName}.`
|
|
1243
|
+
);
|
|
1244
|
+
return {
|
|
1245
|
+
createTable: chunkN66HCGCY_cjs.requireDefined(
|
|
1246
|
+
contribution.createDdl[0],
|
|
1247
|
+
`recordedTableDdl: empty DDL for ${logicalName}.`
|
|
1248
|
+
),
|
|
1249
|
+
indexes: contribution.createDdl.slice(1)
|
|
1250
|
+
};
|
|
1251
|
+
}
|
|
1252
|
+
return {
|
|
1253
|
+
recordedClock: ddlFor("recordedClock"),
|
|
1254
|
+
recordedEdges: ddlFor("recordedEdges"),
|
|
1255
|
+
recordedNodes: ddlFor("recordedNodes")
|
|
1256
|
+
};
|
|
1257
|
+
},
|
|
1220
1258
|
// Every fulltext-touching method asserts the durable marker instead
|
|
1221
1259
|
// of lazily emitting DDL. Steady state performs zero ensure; an
|
|
1222
1260
|
// uninitialized database throws `StoreNotInitializedError` rather
|
|
1223
1261
|
// than self-healing (#135). Shared verbatim with the tx-scoped gate
|
|
1224
1262
|
// via `gateFulltextMethods`.
|
|
1225
|
-
...
|
|
1263
|
+
...chunk5WWEYV4H_cjs.gateFulltextMethods(
|
|
1226
1264
|
operations,
|
|
1227
1265
|
contributionMaterializer.assertInitialized,
|
|
1228
1266
|
contributionMaterializer.refuseUnavailableFulltext
|
|
@@ -1232,7 +1270,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1232
1270
|
},
|
|
1233
1271
|
async ensureIndexMaterializationsTable() {
|
|
1234
1272
|
await db.run(
|
|
1235
|
-
drizzleOrm.sql.raw(
|
|
1273
|
+
drizzleOrm.sql.raw(chunk5WWEYV4H_cjs.generateSqliteCreateTableSQL(tables2.indexMaterializations))
|
|
1236
1274
|
);
|
|
1237
1275
|
},
|
|
1238
1276
|
async getIndexMaterialization(indexName) {
|
|
@@ -1240,26 +1278,26 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1240
1278
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.indexName, indexName));
|
|
1241
1279
|
const row = rows[0];
|
|
1242
1280
|
if (row === void 0) return void 0;
|
|
1243
|
-
return
|
|
1281
|
+
return chunk5WWEYV4H_cjs.mapMaterializationRow(row, chunk5WWEYV4H_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode);
|
|
1244
1282
|
},
|
|
1245
1283
|
async getIndexMaterializations(statusKeys) {
|
|
1246
1284
|
if (statusKeys.length === 0) return [];
|
|
1247
1285
|
const t = tables2.indexMaterializations;
|
|
1248
1286
|
const rows = await db.select().from(t).where(drizzleOrm.inArray(t.indexName, [...statusKeys]));
|
|
1249
1287
|
return rows.map(
|
|
1250
|
-
(row) =>
|
|
1288
|
+
(row) => chunk5WWEYV4H_cjs.mapMaterializationRow(row, chunk5WWEYV4H_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode)
|
|
1251
1289
|
);
|
|
1252
1290
|
},
|
|
1253
1291
|
async recordIndexMaterialization(params) {
|
|
1254
1292
|
const t = tables2.indexMaterializations;
|
|
1255
1293
|
await db.insert(t).values(
|
|
1256
|
-
|
|
1294
|
+
chunk5WWEYV4H_cjs.buildMaterializationInsertValues(
|
|
1257
1295
|
params,
|
|
1258
|
-
|
|
1296
|
+
chunk5WWEYV4H_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.encode
|
|
1259
1297
|
)
|
|
1260
1298
|
).onConflictDoUpdate({
|
|
1261
1299
|
target: t.indexName,
|
|
1262
|
-
set:
|
|
1300
|
+
set: chunk5WWEYV4H_cjs.buildMaterializationOnConflictSet(params.materializedAt)
|
|
1263
1301
|
});
|
|
1264
1302
|
},
|
|
1265
1303
|
async ensureContributionMaterializationsTable() {
|
|
@@ -1275,37 +1313,37 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1275
1313
|
await contributionMaterializer.assertInitialized(graphId);
|
|
1276
1314
|
},
|
|
1277
1315
|
async ensureKindRemovalsTable() {
|
|
1278
|
-
await db.run(drizzleOrm.sql.raw(
|
|
1316
|
+
await db.run(drizzleOrm.sql.raw(chunk5WWEYV4H_cjs.generateSqliteCreateTableSQL(tables2.kindRemovals)));
|
|
1279
1317
|
},
|
|
1280
1318
|
async getPendingKindRemovals(graphId) {
|
|
1281
1319
|
const t = tables2.kindRemovals;
|
|
1282
1320
|
const rows = await db.select().from(t).where(drizzleOrm.and(drizzleOrm.eq(t.graphId, graphId), drizzleOrm.isNull(t.removedAt)));
|
|
1283
1321
|
return rows.map(
|
|
1284
|
-
(row) =>
|
|
1322
|
+
(row) => chunk5WWEYV4H_cjs.mapKindRemovalRow(row, chunk5WWEYV4H_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1285
1323
|
);
|
|
1286
1324
|
},
|
|
1287
1325
|
async getAllKindRemovals(graphId) {
|
|
1288
1326
|
const t = tables2.kindRemovals;
|
|
1289
1327
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
|
|
1290
1328
|
return rows.map(
|
|
1291
|
-
(row) =>
|
|
1329
|
+
(row) => chunk5WWEYV4H_cjs.mapKindRemovalRow(row, chunk5WWEYV4H_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
1292
1330
|
);
|
|
1293
1331
|
},
|
|
1294
1332
|
async recordKindRemoval(params) {
|
|
1295
1333
|
const t = tables2.kindRemovals;
|
|
1296
1334
|
await db.insert(t).values(
|
|
1297
|
-
|
|
1335
|
+
chunk5WWEYV4H_cjs.buildKindRemovalInsertValues(
|
|
1298
1336
|
params,
|
|
1299
|
-
|
|
1337
|
+
chunk5WWEYV4H_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.encode
|
|
1300
1338
|
)
|
|
1301
1339
|
).onConflictDoUpdate({
|
|
1302
1340
|
target: [t.graphId, t.kindName, t.entity, t.schemaVersion],
|
|
1303
|
-
set:
|
|
1341
|
+
set: chunk5WWEYV4H_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
|
|
1304
1342
|
});
|
|
1305
1343
|
},
|
|
1306
1344
|
async ensureReconciliationMarkersTable() {
|
|
1307
1345
|
await db.run(
|
|
1308
|
-
drizzleOrm.sql.raw(
|
|
1346
|
+
drizzleOrm.sql.raw(chunk5WWEYV4H_cjs.generateSqliteCreateTableSQL(tables2.reconciliationMarkers))
|
|
1309
1347
|
);
|
|
1310
1348
|
},
|
|
1311
1349
|
async ensureRuntimeContributions(graphId) {
|
|
@@ -1371,18 +1409,18 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1371
1409
|
async refreshStatistics() {
|
|
1372
1410
|
try {
|
|
1373
1411
|
await db.run(
|
|
1374
|
-
|
|
1375
|
-
|
|
1412
|
+
chunkLLFPQOBA_cjs.toDrizzleSql(
|
|
1413
|
+
chunkH5IJSROF_cjs.sql`PRAGMA analysis_limit = ${chunkH5IJSROF_cjs.sql.raw(String(SQLITE_ANALYZE_ROW_LIMIT))}`,
|
|
1376
1414
|
"sqlite"
|
|
1377
1415
|
)
|
|
1378
1416
|
);
|
|
1379
1417
|
} catch (error) {
|
|
1380
|
-
if (!
|
|
1418
|
+
if (!chunkNLX5OWK7_cjs.isSqliteNotAuthorizedError(error)) throw error;
|
|
1381
1419
|
}
|
|
1382
1420
|
for (const tableName of coreAnalyzeTables) {
|
|
1383
1421
|
await db.run(
|
|
1384
|
-
|
|
1385
|
-
|
|
1422
|
+
chunkLLFPQOBA_cjs.toDrizzleSql(
|
|
1423
|
+
chunkH5IJSROF_cjs.sql`ANALYZE ${chunkH5IJSROF_cjs.sql.identifier(tableName)}`,
|
|
1386
1424
|
"sqlite"
|
|
1387
1425
|
)
|
|
1388
1426
|
);
|
|
@@ -1390,13 +1428,13 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1390
1428
|
for (const tableName of guardedAnalyzeTables) {
|
|
1391
1429
|
try {
|
|
1392
1430
|
await db.run(
|
|
1393
|
-
|
|
1394
|
-
|
|
1431
|
+
chunkLLFPQOBA_cjs.toDrizzleSql(
|
|
1432
|
+
chunkH5IJSROF_cjs.sql`ANALYZE ${chunkH5IJSROF_cjs.sql.identifier(tableName)}`,
|
|
1395
1433
|
"sqlite"
|
|
1396
1434
|
)
|
|
1397
1435
|
);
|
|
1398
1436
|
} catch (error) {
|
|
1399
|
-
if (!
|
|
1437
|
+
if (!chunkNLX5OWK7_cjs.isMissingTableError(error)) throw error;
|
|
1400
1438
|
}
|
|
1401
1439
|
}
|
|
1402
1440
|
},
|
|
@@ -1407,7 +1445,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1407
1445
|
},
|
|
1408
1446
|
async commitSchemaVersionIfKindsEmpty(params, probes) {
|
|
1409
1447
|
return runSchemaWriteTransaction(
|
|
1410
|
-
(target) =>
|
|
1448
|
+
(target) => chunk5WWEYV4H_cjs.commitSchemaVersionIfKindsEmpty(target, params, probes)
|
|
1411
1449
|
);
|
|
1412
1450
|
},
|
|
1413
1451
|
async commitSchemaVersionWithPreflight(params, preflight) {
|
|
@@ -1428,7 +1466,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1428
1466
|
return backend.transactionWithNative((tx) => fn(tx), options2);
|
|
1429
1467
|
},
|
|
1430
1468
|
async transactionWithNative(fn, options2) {
|
|
1431
|
-
const temporaryWrites = options2?.temporaryWrites ===
|
|
1469
|
+
const temporaryWrites = options2?.temporaryWrites === chunkNUQ2YFFH_cjs.INTERNAL_TEMPORARY_WRITES;
|
|
1432
1470
|
if (temporaryWrites && options2.accessMode !== "read_only") {
|
|
1433
1471
|
throw new chunkX4GDXBOP_cjs.ConfigurationError(
|
|
1434
1472
|
"Temporary-write transactions must be semantically read-only.",
|
|
@@ -1458,7 +1496,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1458
1496
|
);
|
|
1459
1497
|
try {
|
|
1460
1498
|
const result = await fn(
|
|
1461
|
-
|
|
1499
|
+
chunk5WWEYV4H_cjs.gateFulltext(
|
|
1462
1500
|
txBackend,
|
|
1463
1501
|
contributionMaterializer.assertInitialized,
|
|
1464
1502
|
contributionMaterializer.refuseUnavailableFulltext
|
|
@@ -1491,7 +1529,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1491
1529
|
"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)."
|
|
1492
1530
|
);
|
|
1493
1531
|
}
|
|
1494
|
-
|
|
1532
|
+
chunk5WWEYV4H_cjs.assertAdoptedDialect(
|
|
1495
1533
|
externalTx,
|
|
1496
1534
|
sqliteCore.BaseSQLiteDatabase,
|
|
1497
1535
|
"sqlite"
|
|
@@ -1503,7 +1541,8 @@ function createSqliteBackend(db, options = {}) {
|
|
|
1503
1541
|
return Promise.resolve();
|
|
1504
1542
|
}
|
|
1505
1543
|
};
|
|
1506
|
-
|
|
1544
|
+
chunkNLX5OWK7_cjs.auditBackendResource(backend, resourceAudit);
|
|
1545
|
+
chunkNUQ2YFFH_cjs.markFirstPartyFactory(backend);
|
|
1507
1546
|
return backend;
|
|
1508
1547
|
}
|
|
1509
1548
|
function createTransactionBackend(options) {
|
|
@@ -1525,5 +1564,5 @@ function createTransactionBackend(options) {
|
|
|
1525
1564
|
|
|
1526
1565
|
exports.createSqliteBackend = createSqliteBackend;
|
|
1527
1566
|
exports.isLocalLibsqlClient = isLocalLibsqlClient;
|
|
1528
|
-
//# sourceMappingURL=chunk-
|
|
1529
|
-
//# sourceMappingURL=chunk-
|
|
1567
|
+
//# sourceMappingURL=chunk-WDM5WQK4.cjs.map
|
|
1568
|
+
//# sourceMappingURL=chunk-WDM5WQK4.cjs.map
|