@nicia-ai/typegraph 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/postgres/index.cjs +29 -29
- package/dist/backend/postgres/index.d.cts +39 -7
- package/dist/backend/postgres/index.d.ts +39 -7
- package/dist/backend/postgres/index.js +16 -16
- package/dist/backend/postgres/pglite.cjs +21 -21
- package/dist/backend/postgres/pglite.d.cts +4 -4
- package/dist/backend/postgres/pglite.d.ts +4 -4
- package/dist/backend/postgres/pglite.js +16 -16
- package/dist/backend/sqlite/index.cjs +25 -26
- package/dist/backend/sqlite/index.d.cts +8 -8
- package/dist/backend/sqlite/index.d.ts +8 -8
- package/dist/backend/sqlite/index.js +13 -14
- package/dist/backend/sqlite/libsql.cjs +19 -19
- package/dist/backend/sqlite/libsql.d.cts +4 -4
- package/dist/backend/sqlite/libsql.d.ts +4 -4
- package/dist/backend/sqlite/libsql.js +15 -15
- package/dist/backend/sqlite/local.cjs +101 -21
- package/dist/backend/sqlite/local.cjs.map +1 -1
- package/dist/backend/sqlite/local.d.cts +95 -5
- package/dist/backend/sqlite/local.d.ts +95 -5
- package/dist/backend/sqlite/local.js +95 -16
- package/dist/backend/sqlite/local.js.map +1 -1
- package/dist/{chunk-T6SPUYLX.cjs → chunk-2THZ3TQI.cjs} +116 -10
- package/dist/chunk-2THZ3TQI.cjs.map +1 -0
- package/dist/{chunk-UJLOZYKT.cjs → chunk-456Z2U7Y.cjs} +441 -115
- package/dist/chunk-456Z2U7Y.cjs.map +1 -0
- package/dist/chunk-4BCU6VFZ.cjs +100 -0
- package/dist/chunk-4BCU6VFZ.cjs.map +1 -0
- package/dist/chunk-4BMPGT35.cjs +12 -0
- package/dist/{chunk-HMFK4BXR.cjs.map → chunk-4BMPGT35.cjs.map} +1 -1
- package/dist/chunk-4CAXEB2F.cjs +1366 -0
- package/dist/chunk-4CAXEB2F.cjs.map +1 -0
- package/dist/{chunk-RY2VIWAM.js → chunk-4GX2JJXS.js} +355 -32
- package/dist/chunk-4GX2JJXS.js.map +1 -0
- package/dist/{chunk-GQANNXXT.cjs → chunk-5A6FNS6N.cjs} +75 -20
- package/dist/chunk-5A6FNS6N.cjs.map +1 -0
- package/dist/{chunk-3Z6TW3CT.cjs → chunk-5AQIKK56.cjs} +65 -25
- package/dist/chunk-5AQIKK56.cjs.map +1 -0
- package/dist/{chunk-WLRIWYHQ.js → chunk-5DIPR3L3.js} +2145 -1937
- package/dist/chunk-5DIPR3L3.js.map +1 -0
- package/dist/{chunk-BVTWD66D.js → chunk-5SEGFTZX.js} +3 -3
- package/dist/{chunk-BVTWD66D.js.map → chunk-5SEGFTZX.js.map} +1 -1
- package/dist/{chunk-A7SZZFAG.js → chunk-5VTR2F2K.js} +452 -109
- package/dist/chunk-5VTR2F2K.js.map +1 -0
- package/dist/{chunk-JJRCLAUN.cjs → chunk-5W4L6DLF.cjs} +116 -10
- package/dist/chunk-5W4L6DLF.cjs.map +1 -0
- package/dist/{chunk-6GNSY7AV.js → chunk-6FR2MMS6.js} +7 -7
- package/dist/chunk-6FR2MMS6.js.map +1 -0
- package/dist/{chunk-3BRVBQQD.cjs → chunk-7BQLPXK6.cjs} +2648 -2440
- package/dist/chunk-7BQLPXK6.cjs.map +1 -0
- package/dist/chunk-7YSP4V4R.cjs +69 -0
- package/dist/chunk-7YSP4V4R.cjs.map +1 -0
- package/dist/chunk-A42GCBGX.cjs +28 -0
- package/dist/chunk-A42GCBGX.cjs.map +1 -0
- package/dist/{chunk-ZV5N4DBG.js → chunk-BJVEU3ZL.js} +300 -58
- package/dist/chunk-BJVEU3ZL.js.map +1 -0
- package/dist/chunk-BYPOGQWK.js +25 -0
- package/dist/chunk-BYPOGQWK.js.map +1 -0
- package/dist/chunk-CUHM5CWJ.cjs +12 -0
- package/dist/chunk-CUHM5CWJ.cjs.map +1 -0
- package/dist/{chunk-2JXB3NYJ.cjs → chunk-D7ZEOS56.cjs} +25 -32
- package/dist/chunk-D7ZEOS56.cjs.map +1 -0
- package/dist/chunk-DFVLCOP6.js +10 -0
- package/dist/chunk-DFVLCOP6.js.map +1 -0
- package/dist/{chunk-JIEJCTDS.cjs → chunk-DIK74MXX.cjs} +37 -4
- package/dist/chunk-DIK74MXX.cjs.map +1 -0
- package/dist/chunk-DN5VP4JC.js +1343 -0
- package/dist/chunk-DN5VP4JC.js.map +1 -0
- package/dist/chunk-EOLERH7Y.cjs +40 -0
- package/dist/chunk-EOLERH7Y.cjs.map +1 -0
- package/dist/{chunk-TGJE22RM.cjs → chunk-FACJJWGF.cjs} +24 -6
- package/dist/chunk-FACJJWGF.cjs.map +1 -0
- package/dist/{chunk-WVC2Q2FD.cjs → chunk-FN35DLCN.cjs} +31 -9
- package/dist/chunk-FN35DLCN.cjs.map +1 -0
- package/dist/{chunk-KUTNI6SI.js → chunk-FPIZFYHE.js} +10 -18
- package/dist/chunk-FPIZFYHE.js.map +1 -0
- package/dist/{chunk-VCGO4V26.js → chunk-FRV5Q5IO.js} +64 -9
- package/dist/chunk-FRV5Q5IO.js.map +1 -0
- package/dist/{chunk-K5P5OZXS.js → chunk-G6Q5UM7U.js} +2 -2
- package/dist/{chunk-K5P5OZXS.js.map → chunk-G6Q5UM7U.js.map} +1 -1
- package/dist/{chunk-JQGIPGVL.cjs → chunk-H7YNSMA7.cjs} +43 -2
- package/dist/chunk-H7YNSMA7.cjs.map +1 -0
- package/dist/chunk-HW3LW7DH.cjs +1271 -0
- package/dist/chunk-HW3LW7DH.cjs.map +1 -0
- package/dist/{chunk-V3QNTB7Z.js → chunk-IU46OHVW.js} +194 -114
- package/dist/chunk-IU46OHVW.js.map +1 -0
- package/dist/{chunk-HK5SATYM.cjs → chunk-J3LEGNQB.cjs} +16 -109
- package/dist/chunk-J3LEGNQB.cjs.map +1 -0
- package/dist/{chunk-ZP5WHI4C.cjs → chunk-JFMEONLG.cjs} +358 -116
- package/dist/chunk-JFMEONLG.cjs.map +1 -0
- package/dist/{chunk-2MRAX3UE.js → chunk-JFUPDJXD.js} +47 -4
- package/dist/chunk-JFUPDJXD.js.map +1 -0
- package/dist/{chunk-Z5XBMDXU.js → chunk-KBGQIPRQ.js} +42 -3
- package/dist/chunk-KBGQIPRQ.js.map +1 -0
- package/dist/{chunk-K2TGS3EN.js → chunk-M75SUBFG.js} +138 -89
- package/dist/chunk-M75SUBFG.js.map +1 -0
- package/dist/chunk-OHMP6N2J.js +47 -0
- package/dist/chunk-OHMP6N2J.js.map +1 -0
- package/dist/{chunk-4DIBPQNJ.js → chunk-OR5ZA5WP.js} +135 -25
- package/dist/chunk-OR5ZA5WP.js.map +1 -0
- package/dist/{chunk-6HVOHZHS.cjs → chunk-PWGX5DF5.cjs} +213 -168
- package/dist/chunk-PWGX5DF5.cjs.map +1 -0
- package/dist/chunk-PZKNKG5M.js +1252 -0
- package/dist/chunk-PZKNKG5M.js.map +1 -0
- package/dist/{chunk-DEQFL35G.js → chunk-Q5TEXCTB.js} +61 -7
- package/dist/chunk-Q5TEXCTB.js.map +1 -0
- package/dist/{chunk-QV245VMN.js → chunk-RAXU3RMB.js} +100 -6
- package/dist/chunk-RAXU3RMB.js.map +1 -0
- package/dist/{chunk-RHZWOJVA.cjs → chunk-RSSQKPSZ.cjs} +52 -4
- package/dist/chunk-RSSQKPSZ.cjs.map +1 -0
- package/dist/{chunk-G6SOJEDI.cjs → chunk-S55OV6PW.cjs} +15 -15
- package/dist/chunk-S55OV6PW.cjs.map +1 -0
- package/dist/chunk-S5F7ZLP2.js +94 -0
- package/dist/chunk-S5F7ZLP2.js.map +1 -0
- package/dist/{chunk-3E7SNSIA.cjs → chunk-SJDMVITW.cjs} +4 -4
- package/dist/{chunk-3E7SNSIA.cjs.map → chunk-SJDMVITW.cjs.map} +1 -1
- package/dist/{chunk-CHXTTSC6.js → chunk-SKCOUWAX.js} +104 -5
- package/dist/chunk-SKCOUWAX.js.map +1 -0
- package/dist/{chunk-XLUNB2TZ.js → chunk-SNXVDZAJ.js} +3 -3
- package/dist/{chunk-XLUNB2TZ.js.map → chunk-SNXVDZAJ.js.map} +1 -1
- package/dist/{chunk-ZURTTSCM.js → chunk-SXGE7ITL.js} +6 -94
- package/dist/chunk-SXGE7ITL.js.map +1 -0
- package/dist/{chunk-RBV7YCQD.js → chunk-T2WUSPDA.js} +49 -9
- package/dist/chunk-T2WUSPDA.js.map +1 -0
- package/dist/{chunk-KGC4LY5T.cjs → chunk-TCOCYN2P.cjs} +75 -21
- package/dist/chunk-TCOCYN2P.cjs.map +1 -0
- package/dist/{chunk-FLRCVI2G.cjs → chunk-TDXIBCGY.cjs} +2 -2
- package/dist/{chunk-FLRCVI2G.cjs.map → chunk-TDXIBCGY.cjs.map} +1 -1
- package/dist/{chunk-ZY4GXIVN.cjs → chunk-TEDRJXOG.cjs} +5 -5
- package/dist/{chunk-ZY4GXIVN.cjs.map → chunk-TEDRJXOG.cjs.map} +1 -1
- package/dist/{chunk-WL2SG7ZV.cjs → chunk-UMDVATGY.cjs} +6 -6
- package/dist/{chunk-WL2SG7ZV.cjs.map → chunk-UMDVATGY.cjs.map} +1 -1
- package/dist/chunk-UT3S4SEN.js +31 -0
- package/dist/chunk-UT3S4SEN.js.map +1 -0
- package/dist/{chunk-RRKQAKD6.cjs → chunk-UUT7UN2N.cjs} +149 -39
- package/dist/chunk-UUT7UN2N.cjs.map +1 -0
- package/dist/{chunk-SHLY4MCM.js → chunk-UZV3AZKF.js} +21 -3
- package/dist/chunk-UZV3AZKF.js.map +1 -0
- package/dist/{chunk-CYX2JTDG.js → chunk-VHMPG6UL.js} +29 -7
- package/dist/chunk-VHMPG6UL.js.map +1 -0
- package/dist/{chunk-LANHCOXB.js → chunk-VQEXF5D4.js} +485 -83
- package/dist/chunk-VQEXF5D4.js.map +1 -0
- package/dist/{chunk-K34OPSJK.js → chunk-W63OVYY4.js} +3 -3
- package/dist/{chunk-K34OPSJK.js.map → chunk-W63OVYY4.js.map} +1 -1
- package/dist/{chunk-TQOYM4LN.js → chunk-WI7ISNQF.js} +35 -5
- package/dist/chunk-WI7ISNQF.js.map +1 -0
- package/dist/{chunk-UNNPKQUG.cjs → chunk-X4JBT642.cjs} +246 -155
- package/dist/chunk-X4JBT642.cjs.map +1 -0
- package/dist/chunk-ZAMFOJ5P.cjs +1176 -0
- package/dist/chunk-ZAMFOJ5P.cjs.map +1 -0
- package/dist/{chunk-T46GR2VY.js → chunk-ZIGXMKQQ.js} +3 -3
- package/dist/{chunk-T46GR2VY.js.map → chunk-ZIGXMKQQ.js.map} +1 -1
- package/dist/{chunk-5IQIX7LU.cjs → chunk-ZUNQ5BEP.cjs} +518 -172
- package/dist/chunk-ZUNQ5BEP.cjs.map +1 -0
- package/dist/{ddl-BrmPg61z.d.ts → ddl-C2rZ-Aen.d.ts} +4 -4
- package/dist/{ddl-j1-sH6lE.d.cts → ddl-CZz7a0E8.d.cts} +4 -4
- package/dist/{extension-types-YGFJPrzK.d.cts → extension-types-ixRpJVUp.d.cts} +24 -1
- package/dist/{extension-types-YGFJPrzK.d.ts → extension-types-ixRpJVUp.d.ts} +24 -1
- package/dist/{types-DkNnF-7K.d.cts → fulltext-strategy-B57yvC5Q.d.ts} +2562 -2133
- package/dist/{types-D1Sqeyxy.d.ts → fulltext-strategy-CDkSSYhq.d.cts} +2562 -2133
- package/dist/graph-extension/index.cjs +20 -19
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +5 -4
- package/dist/graph-merge/index.cjs +255 -164
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +63 -33
- package/dist/graph-merge/index.d.ts +63 -33
- package/dist/graph-merge/index.js +135 -44
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-DGX6D9j1.d.ts → index-BFvdmBPV.d.ts} +301 -93
- package/dist/{index-SEvUHDA6.d.cts → index-BLtQWKRj.d.cts} +301 -93
- package/dist/index.cjs +216 -188
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +33 -33
- package/dist/indexes/index.cjs +19 -20
- package/dist/indexes/index.d.cts +5 -5
- package/dist/indexes/index.d.ts +5 -5
- package/dist/indexes/index.js +10 -11
- package/dist/interchange/index.cjs +48 -26
- package/dist/interchange/index.d.cts +126 -12
- package/dist/interchange/index.d.ts +126 -12
- package/dist/interchange/index.js +15 -13
- package/dist/{manager-ms9cKdc6.d.cts → manager-DwQi8eV0.d.cts} +9 -2
- package/dist/{manager-BZUeN_BU.d.ts → manager-ejUCB52T.d.ts} +9 -2
- package/dist/{materialize-indexes-D20xNluI.d.cts → materialize-indexes-B4e9360H.d.cts} +20 -4
- package/dist/{materialize-indexes-CAkIYFV-.d.ts → materialize-indexes-te9TPMMJ.d.ts} +20 -4
- package/dist/{postgres-BhpxGMC5.d.cts → postgres-CfEqsRMp.d.cts} +152 -1
- package/dist/{postgres-CWHLwNl1.d.ts → postgres-DQ5R6rzV.d.ts} +152 -1
- package/dist/profiler/index.cjs +11 -11
- package/dist/profiler/index.d.cts +7 -7
- package/dist/profiler/index.d.ts +7 -7
- package/dist/profiler/index.js +4 -4
- package/dist/provenance/index.cjs +40 -41
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +5 -5
- package/dist/provenance/index.d.ts +5 -5
- package/dist/provenance/index.js +11 -12
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +53 -40
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +57 -57
- package/dist/schema/index.d.ts +57 -57
- package/dist/schema/index.js +28 -15
- package/dist/schema/index.js.map +1 -1
- package/dist/{sqlite-XrDxNaa7.d.cts → sqlite-D7zBinNR.d.cts} +92 -1
- package/dist/{sqlite-CGu5SLsw.d.ts → sqlite-DvQndLky.d.ts} +92 -1
- package/dist/{store-view-D09po4H6.d.cts → store-view-9KDOpZzF.d.cts} +643 -58
- package/dist/{store-view-BlgnhEYf.d.ts → store-view-DplHC3Nt.d.ts} +643 -58
- package/dist/{types-DiE1AO7p.d.cts → types-Bv9DcS_E.d.cts} +2 -2
- package/dist/{types-B1TbZJYS.d.ts → types-CoxuV7EJ.d.ts} +2 -2
- package/dist/{where-DKjuofPr.d.cts → where-7RKFOsXt.d.ts} +2 -2
- package/dist/{where-DrUIIWHb.d.ts → where-DdMIXOtH.d.cts} +2 -2
- package/package.json +14 -13
- package/dist/chunk-2EBMPJBO.js +0 -16
- package/dist/chunk-2EBMPJBO.js.map +0 -1
- package/dist/chunk-2JXB3NYJ.cjs.map +0 -1
- package/dist/chunk-2MRAX3UE.js.map +0 -1
- package/dist/chunk-3BRVBQQD.cjs.map +0 -1
- package/dist/chunk-3EUKJEQ3.js +0 -77
- package/dist/chunk-3EUKJEQ3.js.map +0 -1
- package/dist/chunk-3Z6TW3CT.cjs.map +0 -1
- package/dist/chunk-4DIBPQNJ.js.map +0 -1
- package/dist/chunk-4S2FXGBJ.js +0 -9
- package/dist/chunk-4S2FXGBJ.js.map +0 -1
- package/dist/chunk-5IQIX7LU.cjs.map +0 -1
- package/dist/chunk-6GNSY7AV.js.map +0 -1
- package/dist/chunk-6HVOHZHS.cjs.map +0 -1
- package/dist/chunk-6SCVW4AS.js +0 -20
- package/dist/chunk-6SCVW4AS.js.map +0 -1
- package/dist/chunk-A7SZZFAG.js.map +0 -1
- package/dist/chunk-CHXTTSC6.js.map +0 -1
- package/dist/chunk-CYX2JTDG.js.map +0 -1
- package/dist/chunk-DEQFL35G.js.map +0 -1
- package/dist/chunk-G6SOJEDI.cjs.map +0 -1
- package/dist/chunk-GQANNXXT.cjs.map +0 -1
- package/dist/chunk-GZCNZ7QW.js +0 -24
- package/dist/chunk-GZCNZ7QW.js.map +0 -1
- package/dist/chunk-HK5SATYM.cjs.map +0 -1
- package/dist/chunk-HMFK4BXR.cjs +0 -12
- package/dist/chunk-HTGDWIDE.cjs +0 -89
- package/dist/chunk-HTGDWIDE.cjs.map +0 -1
- package/dist/chunk-JIEJCTDS.cjs.map +0 -1
- package/dist/chunk-JJRCLAUN.cjs.map +0 -1
- package/dist/chunk-JQGIPGVL.cjs.map +0 -1
- package/dist/chunk-K2TGS3EN.js.map +0 -1
- package/dist/chunk-KGC4LY5T.cjs.map +0 -1
- package/dist/chunk-KNHYNQQ3.cjs +0 -663
- package/dist/chunk-KNHYNQQ3.cjs.map +0 -1
- package/dist/chunk-KUTNI6SI.js.map +0 -1
- package/dist/chunk-LANHCOXB.js.map +0 -1
- package/dist/chunk-N6WTUSBV.cjs +0 -23
- package/dist/chunk-N6WTUSBV.cjs.map +0 -1
- package/dist/chunk-NAUA4PW5.cjs +0 -28
- package/dist/chunk-NAUA4PW5.cjs.map +0 -1
- package/dist/chunk-QV245VMN.js.map +0 -1
- package/dist/chunk-RBV7YCQD.js.map +0 -1
- package/dist/chunk-RHZWOJVA.cjs.map +0 -1
- package/dist/chunk-RRKQAKD6.cjs.map +0 -1
- package/dist/chunk-RY2VIWAM.js.map +0 -1
- package/dist/chunk-SHLY4MCM.js.map +0 -1
- package/dist/chunk-T2DWPQNE.js +0 -649
- package/dist/chunk-T2DWPQNE.js.map +0 -1
- package/dist/chunk-T6SPUYLX.cjs.map +0 -1
- package/dist/chunk-TGJE22RM.cjs.map +0 -1
- package/dist/chunk-TOTPVGOG.cjs +0 -774
- package/dist/chunk-TOTPVGOG.cjs.map +0 -1
- package/dist/chunk-TQOYM4LN.js.map +0 -1
- package/dist/chunk-UJLOZYKT.cjs.map +0 -1
- package/dist/chunk-UNNPKQUG.cjs.map +0 -1
- package/dist/chunk-V3QNTB7Z.js.map +0 -1
- package/dist/chunk-VCGO4V26.js.map +0 -1
- package/dist/chunk-WLRIWYHQ.js.map +0 -1
- package/dist/chunk-WVC2Q2FD.cjs.map +0 -1
- package/dist/chunk-XXVEULWX.js +0 -39
- package/dist/chunk-XXVEULWX.js.map +0 -1
- package/dist/chunk-YAZE7QZR.cjs +0 -32
- package/dist/chunk-YAZE7QZR.cjs.map +0 -1
- package/dist/chunk-YC6PWTHY.cjs +0 -44
- package/dist/chunk-YC6PWTHY.cjs.map +0 -1
- package/dist/chunk-Z5HBYM7U.cjs +0 -11
- package/dist/chunk-Z5HBYM7U.cjs.map +0 -1
- package/dist/chunk-Z5XBMDXU.js.map +0 -1
- package/dist/chunk-ZP5WHI4C.cjs.map +0 -1
- package/dist/chunk-ZURTTSCM.js.map +0 -1
- package/dist/chunk-ZV5N4DBG.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
3
|
+
var chunk456Z2U7Y_cjs = require('./chunk-456Z2U7Y.cjs');
|
|
4
|
+
var chunkFN35DLCN_cjs = require('./chunk-FN35DLCN.cjs');
|
|
5
|
+
var chunk5W4L6DLF_cjs = require('./chunk-5W4L6DLF.cjs');
|
|
6
|
+
var chunkD7ZEOS56_cjs = require('./chunk-D7ZEOS56.cjs');
|
|
7
|
+
var chunkX4JBT642_cjs = require('./chunk-X4JBT642.cjs');
|
|
8
|
+
var chunkRSSQKPSZ_cjs = require('./chunk-RSSQKPSZ.cjs');
|
|
9
|
+
var chunkDIK74MXX_cjs = require('./chunk-DIK74MXX.cjs');
|
|
10
10
|
var drizzleOrm = require('drizzle-orm');
|
|
11
11
|
var sqliteCore = require('drizzle-orm/sqlite-core');
|
|
12
12
|
|
|
@@ -64,6 +64,44 @@ function detectTransactionMode(db, profileHints, isSync) {
|
|
|
64
64
|
if (isSync) return "sql";
|
|
65
65
|
return "drizzle";
|
|
66
66
|
}
|
|
67
|
+
var MAX_VARIABLE_NUMBER_COMPILE_OPTION = /^MAX_VARIABLE_NUMBER=(\d+)$/;
|
|
68
|
+
var FIRST_MODERN_BIND_LIMIT_MAJOR = 3;
|
|
69
|
+
var FIRST_MODERN_BIND_LIMIT_MINOR = 32;
|
|
70
|
+
function parseCompiledMaxVariableNumber(rows) {
|
|
71
|
+
for (const row of rows) {
|
|
72
|
+
if (typeof row !== "object" || row === null) continue;
|
|
73
|
+
const option = row.compile_options;
|
|
74
|
+
if (typeof option !== "string") continue;
|
|
75
|
+
const match = MAX_VARIABLE_NUMBER_COMPILE_OPTION.exec(option);
|
|
76
|
+
if (match !== null) return Number(match[1]);
|
|
77
|
+
}
|
|
78
|
+
return void 0;
|
|
79
|
+
}
|
|
80
|
+
function hasModernBindLimitByVersion(rows) {
|
|
81
|
+
const first = rows[0];
|
|
82
|
+
if (typeof first !== "object" || first === null) return false;
|
|
83
|
+
const version = first.version;
|
|
84
|
+
if (typeof version !== "string") return false;
|
|
85
|
+
const [major = 0, minor = 0] = version.split(".").map(Number);
|
|
86
|
+
if (!Number.isFinite(major) || !Number.isFinite(minor)) return false;
|
|
87
|
+
return major > FIRST_MODERN_BIND_LIMIT_MAJOR || major === FIRST_MODERN_BIND_LIMIT_MAJOR && minor >= FIRST_MODERN_BIND_LIMIT_MINOR;
|
|
88
|
+
}
|
|
89
|
+
function detectMaxBindParameters(db, sqliteClient) {
|
|
90
|
+
if (isD1DatabaseBySessionName(db)) return chunkX4JBT642_cjs.D1_MAX_BIND_PARAMETERS;
|
|
91
|
+
if (sqliteClient === void 0) return chunkX4JBT642_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
92
|
+
try {
|
|
93
|
+
const compiled = parseCompiledMaxVariableNumber(
|
|
94
|
+
sqliteClient.prepare("PRAGMA compile_options").all()
|
|
95
|
+
);
|
|
96
|
+
if (compiled !== void 0) return compiled;
|
|
97
|
+
const isModern = hasModernBindLimitByVersion(
|
|
98
|
+
sqliteClient.prepare("SELECT sqlite_version() AS version").all()
|
|
99
|
+
);
|
|
100
|
+
return isModern ? chunkX4JBT642_cjs.MODERN_SQLITE_MAX_BIND_PARAMETERS : chunkX4JBT642_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
101
|
+
} catch {
|
|
102
|
+
return chunkX4JBT642_cjs.SQLITE_MAX_BIND_PARAMETERS;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
67
105
|
function resolveSqliteClient(db) {
|
|
68
106
|
const databaseWithClient = db;
|
|
69
107
|
const sqliteClient = databaseWithClient.$client;
|
|
@@ -73,7 +111,7 @@ function resolveSqliteClient(db) {
|
|
|
73
111
|
return sqliteClient;
|
|
74
112
|
}
|
|
75
113
|
function getOrCreatePreparedStatement(cache, sqliteClient, sqlText, cacheMax) {
|
|
76
|
-
return
|
|
114
|
+
return chunk456Z2U7Y_cjs.getOrCreateLru(
|
|
77
115
|
cache,
|
|
78
116
|
sqlText,
|
|
79
117
|
cacheMax,
|
|
@@ -106,10 +144,11 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
106
144
|
const transactionMode = detectTransactionMode(db, profileHints, isSync);
|
|
107
145
|
const profile = {
|
|
108
146
|
isSync,
|
|
147
|
+
maxBindParameters: detectMaxBindParameters(db, sqliteClient),
|
|
109
148
|
supportsCompiledExecution: sqliteClient !== void 0,
|
|
110
149
|
transactionMode
|
|
111
150
|
};
|
|
112
|
-
const compile = (query) =>
|
|
151
|
+
const compile = (query) => chunk456Z2U7Y_cjs.compileQueryWithDialect(db, query, "SQLite");
|
|
113
152
|
if (sqliteClient !== void 0) {
|
|
114
153
|
let executeCompiled2 = function(compiledQuery) {
|
|
115
154
|
const preparedStatement = getOrCreatePreparedStatement(
|
|
@@ -120,6 +159,19 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
120
159
|
);
|
|
121
160
|
const rows = preparedStatement.all(...compiledQuery.params);
|
|
122
161
|
return Promise.resolve(rows);
|
|
162
|
+
}, executeCompiledRun2 = function(compiledQuery) {
|
|
163
|
+
const preparedStatement = getOrCreatePreparedStatement(
|
|
164
|
+
statementCache,
|
|
165
|
+
client,
|
|
166
|
+
compiledQuery.sql,
|
|
167
|
+
statementCacheMax
|
|
168
|
+
);
|
|
169
|
+
if (preparedStatement.run === void 0 || preparedStatement.reader === true) {
|
|
170
|
+
preparedStatement.all(...compiledQuery.params);
|
|
171
|
+
} else {
|
|
172
|
+
preparedStatement.run(...compiledQuery.params);
|
|
173
|
+
}
|
|
174
|
+
return Promise.resolve();
|
|
123
175
|
};
|
|
124
176
|
const client = sqliteClient;
|
|
125
177
|
const statementCache = /* @__PURE__ */ new Map();
|
|
@@ -133,6 +185,7 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
133
185
|
return executeCompiled2(compiledQuery);
|
|
134
186
|
},
|
|
135
187
|
executeCompiled: executeCompiled2,
|
|
188
|
+
executeCompiledRun: executeCompiledRun2,
|
|
136
189
|
prepare(sqlText) {
|
|
137
190
|
return createPreparedStatementExecutor(
|
|
138
191
|
client,
|
|
@@ -158,32 +211,58 @@ function createSqliteExecutionAdapter(db, statementCacheMaxOrOptions = {}) {
|
|
|
158
211
|
// src/backend/drizzle/sqlite.ts
|
|
159
212
|
var NODE_INSERT_PARAM_COUNT = 9;
|
|
160
213
|
var EDGE_INSERT_PARAM_COUNT = 12;
|
|
161
|
-
var
|
|
162
|
-
|
|
163
|
-
Math.floor(chunkUNNPKQUG_cjs.SQLITE_MAX_BIND_PARAMETERS / NODE_INSERT_PARAM_COUNT)
|
|
164
|
-
);
|
|
165
|
-
var SQLITE_EDGE_INSERT_BATCH_SIZE = Math.max(
|
|
166
|
-
1,
|
|
167
|
-
Math.floor(chunkUNNPKQUG_cjs.SQLITE_MAX_BIND_PARAMETERS / EDGE_INSERT_PARAM_COUNT)
|
|
168
|
-
);
|
|
169
|
-
var SQLITE_GET_NODES_ID_CHUNK_SIZE = Math.max(
|
|
170
|
-
1,
|
|
171
|
-
chunkUNNPKQUG_cjs.SQLITE_MAX_BIND_PARAMETERS - 2
|
|
172
|
-
);
|
|
173
|
-
var SQLITE_GET_EDGES_ID_CHUNK_SIZE = Math.max(
|
|
174
|
-
1,
|
|
175
|
-
chunkUNNPKQUG_cjs.SQLITE_MAX_BIND_PARAMETERS - 1
|
|
176
|
-
);
|
|
214
|
+
var GET_NODES_FIXED_PARAM_COUNT = 2;
|
|
215
|
+
var GET_EDGES_FIXED_PARAM_COUNT = 1;
|
|
177
216
|
var CHECK_UNIQUE_BATCH_FIXED_PARAM_COUNT = 3;
|
|
178
|
-
var
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
217
|
+
var FULLTEXT_UPSERT_PARAM_COUNT = 6;
|
|
218
|
+
var FULLTEXT_DELETE_FIXED_PARAM_COUNT = 2;
|
|
219
|
+
var UNIQUE_INSERT_PARAM_COUNT = 6;
|
|
220
|
+
var SQLITE_ANALYZE_ROW_LIMIT = 1e3;
|
|
221
|
+
function computeSqliteBatchChunkSizes(maxBindParameters) {
|
|
222
|
+
return {
|
|
223
|
+
checkUniqueBatchChunkSize: Math.max(
|
|
224
|
+
1,
|
|
225
|
+
maxBindParameters - CHECK_UNIQUE_BATCH_FIXED_PARAM_COUNT
|
|
226
|
+
),
|
|
227
|
+
embeddingUpsertBatchSize: Math.max(
|
|
228
|
+
1,
|
|
229
|
+
Math.floor(maxBindParameters / chunk456Z2U7Y_cjs.EMBEDDING_UPSERT_PARAM_COUNT)
|
|
230
|
+
),
|
|
231
|
+
fulltextUpsertBatchSize: Math.max(
|
|
232
|
+
1,
|
|
233
|
+
Math.floor(maxBindParameters / FULLTEXT_UPSERT_PARAM_COUNT)
|
|
234
|
+
),
|
|
235
|
+
fulltextDeleteChunkSize: Math.max(
|
|
236
|
+
1,
|
|
237
|
+
maxBindParameters - FULLTEXT_DELETE_FIXED_PARAM_COUNT
|
|
238
|
+
),
|
|
239
|
+
edgeInsertBatchSize: Math.max(
|
|
240
|
+
1,
|
|
241
|
+
Math.floor(maxBindParameters / EDGE_INSERT_PARAM_COUNT)
|
|
242
|
+
),
|
|
243
|
+
getEdgesChunkSize: Math.max(
|
|
244
|
+
1,
|
|
245
|
+
maxBindParameters - GET_EDGES_FIXED_PARAM_COUNT
|
|
246
|
+
),
|
|
247
|
+
getNodesChunkSize: Math.max(
|
|
248
|
+
1,
|
|
249
|
+
maxBindParameters - GET_NODES_FIXED_PARAM_COUNT
|
|
250
|
+
),
|
|
251
|
+
nodeInsertBatchSize: Math.max(
|
|
252
|
+
1,
|
|
253
|
+
Math.floor(maxBindParameters / NODE_INSERT_PARAM_COUNT)
|
|
254
|
+
),
|
|
255
|
+
uniqueInsertBatchSize: Math.max(
|
|
256
|
+
1,
|
|
257
|
+
Math.floor(maxBindParameters / UNIQUE_INSERT_PARAM_COUNT)
|
|
258
|
+
)
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
var toNodeRow = chunk5W4L6DLF_cjs.createNodeRowMapper(chunk5W4L6DLF_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
262
|
+
var toEdgeRow = chunk5W4L6DLF_cjs.createEdgeRowMapper(chunk5W4L6DLF_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
263
|
+
var toUniqueRow = chunk5W4L6DLF_cjs.createUniqueRowMapper(chunk5W4L6DLF_cjs.SQLITE_ROW_MAPPER_CONFIG);
|
|
264
|
+
var toSchemaVersionRow = chunk5W4L6DLF_cjs.createSchemaVersionRowMapper(
|
|
265
|
+
chunk5W4L6DLF_cjs.SQLITE_ROW_MAPPER_CONFIG
|
|
187
266
|
);
|
|
188
267
|
var PENDING_FOREVER = new Promise(noop);
|
|
189
268
|
function pendingForever() {
|
|
@@ -202,7 +281,7 @@ async function loadQueueTaskContext() {
|
|
|
202
281
|
void loadQueueTaskContext();
|
|
203
282
|
function rejectReentrantQueueSubmission() {
|
|
204
283
|
return Promise.reject(
|
|
205
|
-
new
|
|
284
|
+
new chunkDIK74MXX_cjs.ConfigurationError(
|
|
206
285
|
"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.",
|
|
207
286
|
{ backend: "sqlite", capability: "concurrentRootAccess" },
|
|
208
287
|
{
|
|
@@ -223,7 +302,7 @@ function createSerializedExecutionQueue() {
|
|
|
223
302
|
disposed = true;
|
|
224
303
|
},
|
|
225
304
|
runExclusive(task) {
|
|
226
|
-
if (isDisposed()) return Promise.reject(new
|
|
305
|
+
if (isDisposed()) return Promise.reject(new chunkDIK74MXX_cjs.BackendDisposedError());
|
|
227
306
|
if (queueTaskContext?.getStore() === taskMarker) {
|
|
228
307
|
return rejectReentrantQueueSubmission();
|
|
229
308
|
}
|
|
@@ -251,18 +330,19 @@ function runWithSerializedQueue(queue, task) {
|
|
|
251
330
|
return queue.runExclusive(task);
|
|
252
331
|
}
|
|
253
332
|
function throwSqliteTransactionsDisabled(message) {
|
|
254
|
-
throw new
|
|
333
|
+
throw new chunkDIK74MXX_cjs.ConfigurationError(message, {
|
|
255
334
|
backend: "sqlite",
|
|
256
335
|
capability: "transactions",
|
|
257
336
|
supportsTransactions: false
|
|
258
337
|
});
|
|
259
338
|
}
|
|
260
339
|
function buildSqliteCapabilities(options) {
|
|
261
|
-
const base = options.transactionMode === "none" ? { ...
|
|
340
|
+
const base = options.transactionMode === "none" ? { ...chunkX4JBT642_cjs.SQLITE_CAPABILITIES, transactions: false } : chunkX4JBT642_cjs.SQLITE_CAPABILITIES;
|
|
262
341
|
return {
|
|
263
342
|
...base,
|
|
264
|
-
|
|
265
|
-
|
|
343
|
+
maxBindParameters: options.maxBindParameters,
|
|
344
|
+
fulltext: chunkD7ZEOS56_cjs.buildFulltextCapabilities(options.fulltextStrategy),
|
|
345
|
+
...options.vectorStrategy === void 0 ? {} : { vector: chunkD7ZEOS56_cjs.buildVectorCapabilities(options.vectorStrategy) }
|
|
266
346
|
};
|
|
267
347
|
}
|
|
268
348
|
function createSqliteOperationBackend(options) {
|
|
@@ -277,36 +357,46 @@ function createSqliteOperationBackend(options) {
|
|
|
277
357
|
vectorStrategy,
|
|
278
358
|
vectorSlotLatch
|
|
279
359
|
} = options;
|
|
360
|
+
const compiledExecute = executionAdapter.executeCompiled;
|
|
361
|
+
const compiledRun = executionAdapter.executeCompiledRun;
|
|
280
362
|
function execGet(query) {
|
|
281
363
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
282
|
-
|
|
364
|
+
if (compiledExecute === void 0) {
|
|
365
|
+
const rows2 = await db.all(query);
|
|
366
|
+
return rows2[0];
|
|
367
|
+
}
|
|
368
|
+
const rows = await compiledExecute(executionAdapter.compile(query));
|
|
283
369
|
return rows[0];
|
|
284
370
|
});
|
|
285
371
|
}
|
|
286
372
|
function execAll(query) {
|
|
287
373
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
288
|
-
|
|
374
|
+
if (compiledExecute === void 0) {
|
|
375
|
+
return await db.all(query);
|
|
376
|
+
}
|
|
377
|
+
return [...await compiledExecute(executionAdapter.compile(query))];
|
|
289
378
|
});
|
|
290
379
|
}
|
|
291
380
|
function execRun(query) {
|
|
292
381
|
return runWithSerializedQueue(serializedQueue, async () => {
|
|
293
|
-
|
|
382
|
+
if (compiledRun === void 0) {
|
|
383
|
+
await db.run(query);
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
await compiledRun(executionAdapter.compile(query));
|
|
294
387
|
});
|
|
295
388
|
}
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
getNodesChunkSize: SQLITE_GET_NODES_ID_CHUNK_SIZE,
|
|
302
|
-
nodeInsertBatchSize: SQLITE_NODE_INSERT_BATCH_SIZE
|
|
303
|
-
},
|
|
389
|
+
const batchConfig = computeSqliteBatchChunkSizes(
|
|
390
|
+
capabilities.maxBindParameters ?? chunkX4JBT642_cjs.SQLITE_MAX_BIND_PARAMETERS
|
|
391
|
+
);
|
|
392
|
+
const commonBackend = chunk456Z2U7Y_cjs.createCommonOperationBackend({
|
|
393
|
+
batchConfig,
|
|
304
394
|
execution: {
|
|
305
395
|
execAll,
|
|
306
396
|
execGet,
|
|
307
397
|
execRun
|
|
308
398
|
},
|
|
309
|
-
nowIso:
|
|
399
|
+
nowIso: chunk5W4L6DLF_cjs.nowIso,
|
|
310
400
|
operationStrategy,
|
|
311
401
|
rowMappers: {
|
|
312
402
|
toEdgeRow,
|
|
@@ -332,19 +422,61 @@ function createSqliteOperationBackend(options) {
|
|
|
332
422
|
}
|
|
333
423
|
const vectorEmbeddingMethods = vectorStrategy === void 0 ? {} : {
|
|
334
424
|
async upsertEmbedding(params) {
|
|
335
|
-
const slot =
|
|
425
|
+
const slot = chunk456Z2U7Y_cjs.vectorSlotFromParams(params);
|
|
336
426
|
await ensureVectorSlotStorage(slot);
|
|
337
|
-
const statements = vectorStrategy.buildUpsert(slot, params,
|
|
427
|
+
const statements = vectorStrategy.buildUpsert(slot, params, chunk5W4L6DLF_cjs.nowIso());
|
|
338
428
|
try {
|
|
339
429
|
for (const statement of statements) {
|
|
340
430
|
await execRun(statement);
|
|
341
431
|
}
|
|
342
432
|
} catch (error) {
|
|
343
|
-
throw
|
|
433
|
+
throw chunk456Z2U7Y_cjs.mapVectorWriteError(error, params);
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
async upsertEmbeddingBatch(params) {
|
|
437
|
+
if (params.rows.length === 0) return;
|
|
438
|
+
const slot = chunk456Z2U7Y_cjs.vectorSlotFromParams(params);
|
|
439
|
+
await ensureVectorSlotStorage(slot);
|
|
440
|
+
const rowsById = new Map(
|
|
441
|
+
params.rows.map((row) => [row.nodeId, row])
|
|
442
|
+
);
|
|
443
|
+
const rows = [...rowsById.values()];
|
|
444
|
+
const timestamp = chunk5W4L6DLF_cjs.nowIso();
|
|
445
|
+
try {
|
|
446
|
+
for (const chunk2 of chunkX4JBT642_cjs.chunk(
|
|
447
|
+
rows,
|
|
448
|
+
batchConfig.embeddingUpsertBatchSize
|
|
449
|
+
)) {
|
|
450
|
+
const statements = vectorStrategy.buildUpsertBatch === void 0 ? chunk2.flatMap(
|
|
451
|
+
(row) => vectorStrategy.buildUpsert(
|
|
452
|
+
slot,
|
|
453
|
+
{
|
|
454
|
+
graphId: params.graphId,
|
|
455
|
+
nodeKind: params.nodeKind,
|
|
456
|
+
nodeId: row.nodeId,
|
|
457
|
+
fieldPath: params.fieldPath,
|
|
458
|
+
embedding: row.embedding,
|
|
459
|
+
dimensions: params.dimensions,
|
|
460
|
+
metric: params.metric,
|
|
461
|
+
indexType: params.indexType
|
|
462
|
+
},
|
|
463
|
+
timestamp
|
|
464
|
+
)
|
|
465
|
+
) : vectorStrategy.buildUpsertBatch(
|
|
466
|
+
slot,
|
|
467
|
+
{ ...params, rows: chunk2 },
|
|
468
|
+
timestamp
|
|
469
|
+
);
|
|
470
|
+
for (const statement of statements) {
|
|
471
|
+
await execRun(statement);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
} catch (error) {
|
|
475
|
+
throw chunk456Z2U7Y_cjs.mapVectorWriteError(error, params);
|
|
344
476
|
}
|
|
345
477
|
},
|
|
346
478
|
async deleteEmbedding(params) {
|
|
347
|
-
const slot =
|
|
479
|
+
const slot = chunk456Z2U7Y_cjs.vectorSlotFromParams(params);
|
|
348
480
|
await ensureVectorSlotStorage(slot);
|
|
349
481
|
const statements = vectorStrategy.buildDelete(slot, params);
|
|
350
482
|
for (const statement of statements) {
|
|
@@ -352,21 +484,80 @@ function createSqliteOperationBackend(options) {
|
|
|
352
484
|
}
|
|
353
485
|
},
|
|
354
486
|
async vectorSearch(params) {
|
|
355
|
-
|
|
356
|
-
const slot =
|
|
487
|
+
chunkD7ZEOS56_cjs.assertVectorSearchLimit(params.limit);
|
|
488
|
+
const slot = chunk456Z2U7Y_cjs.vectorSlotFromParams(params);
|
|
357
489
|
await ensureVectorSlotStorage(slot);
|
|
358
|
-
const query = vectorStrategy.buildSearch(
|
|
490
|
+
const query = vectorStrategy.buildSearch(
|
|
491
|
+
slot,
|
|
492
|
+
params,
|
|
493
|
+
// Store-compiled candidates (predicates + subclass + currency)
|
|
494
|
+
// take precedence; the live-node default covers direct backend use.
|
|
495
|
+
params.candidates ?? operationStrategy.buildLiveNodeIds(
|
|
496
|
+
params.graphId,
|
|
497
|
+
params.nodeKind
|
|
498
|
+
)
|
|
499
|
+
);
|
|
359
500
|
let rows;
|
|
360
501
|
try {
|
|
361
502
|
rows = await execAll(query);
|
|
362
503
|
} catch (error) {
|
|
363
|
-
throw
|
|
504
|
+
throw chunk456Z2U7Y_cjs.mapVectorWriteError(error, params);
|
|
364
505
|
}
|
|
365
506
|
return rows.map((row) => ({
|
|
366
507
|
nodeId: row.node_id,
|
|
367
508
|
score: row.score
|
|
368
509
|
}));
|
|
369
|
-
}
|
|
510
|
+
},
|
|
511
|
+
// Single-statement hybrid needs ROW_NUMBER(); a capability profile
|
|
512
|
+
// that disables window functions keeps the store's multi-statement
|
|
513
|
+
// fallback by simply not exposing the member.
|
|
514
|
+
...capabilities.windowFunctions ? {
|
|
515
|
+
async hybridSearch(params) {
|
|
516
|
+
chunkD7ZEOS56_cjs.assertVectorSearchLimit(params.limit);
|
|
517
|
+
chunkD7ZEOS56_cjs.assertVectorSearchLimit(params.vector.k);
|
|
518
|
+
const slot = chunk456Z2U7Y_cjs.vectorSlotFromParams({
|
|
519
|
+
graphId: params.graphId,
|
|
520
|
+
nodeKind: params.nodeKind,
|
|
521
|
+
fieldPath: params.vector.fieldPath,
|
|
522
|
+
dimensions: params.vector.dimensions,
|
|
523
|
+
metric: params.vector.metric,
|
|
524
|
+
indexType: params.vector.indexType
|
|
525
|
+
});
|
|
526
|
+
await ensureVectorSlotStorage(slot);
|
|
527
|
+
const candidates = params.candidates ?? operationStrategy.buildLiveNodeIds(
|
|
528
|
+
params.graphId,
|
|
529
|
+
params.nodeKind
|
|
530
|
+
);
|
|
531
|
+
const vectorParams = {
|
|
532
|
+
graphId: params.graphId,
|
|
533
|
+
nodeKind: params.nodeKind,
|
|
534
|
+
fieldPath: params.vector.fieldPath,
|
|
535
|
+
queryEmbedding: params.vector.queryEmbedding,
|
|
536
|
+
metric: params.vector.metric,
|
|
537
|
+
dimensions: params.vector.dimensions,
|
|
538
|
+
indexType: params.vector.indexType,
|
|
539
|
+
limit: params.vector.k,
|
|
540
|
+
...params.vector.minScore === void 0 ? {} : { minScore: params.vector.minScore }
|
|
541
|
+
};
|
|
542
|
+
const vectorSql = vectorStrategy.buildSearch(
|
|
543
|
+
slot,
|
|
544
|
+
vectorParams,
|
|
545
|
+
chunk456Z2U7Y_cjs.hybridCandidatesRef()
|
|
546
|
+
);
|
|
547
|
+
const statement = operationStrategy.buildHybridSearch(
|
|
548
|
+
{ ...params, candidates },
|
|
549
|
+
vectorSql,
|
|
550
|
+
params.vector.metric === "cosine"
|
|
551
|
+
);
|
|
552
|
+
let raw;
|
|
553
|
+
try {
|
|
554
|
+
raw = await execAll(statement);
|
|
555
|
+
} catch (error) {
|
|
556
|
+
throw chunk456Z2U7Y_cjs.mapVectorWriteError(error, vectorParams);
|
|
557
|
+
}
|
|
558
|
+
return raw.map((row) => chunk456Z2U7Y_cjs.mapHybridSearchRow(row, toNodeRow));
|
|
559
|
+
}
|
|
560
|
+
} : {}
|
|
370
561
|
};
|
|
371
562
|
const operationBackend = {
|
|
372
563
|
...commonBackend,
|
|
@@ -379,7 +570,7 @@ function createSqliteOperationBackend(options) {
|
|
|
379
570
|
...vectorStrategy === void 0 ? {} : { vectorStrategy },
|
|
380
571
|
async createVectorIndex(params) {
|
|
381
572
|
if (vectorStrategy === void 0) return;
|
|
382
|
-
const slot =
|
|
573
|
+
const slot = chunk456Z2U7Y_cjs.vectorSlotFromCreateIndexParams(params);
|
|
383
574
|
await ensureVectorSlotStorage(slot);
|
|
384
575
|
const indexStatement = vectorStrategy.buildCreateIndex?.(slot);
|
|
385
576
|
if (indexStatement !== void 0) {
|
|
@@ -388,18 +579,18 @@ function createSqliteOperationBackend(options) {
|
|
|
388
579
|
},
|
|
389
580
|
async dropVectorIndex(params) {
|
|
390
581
|
if (vectorStrategy === void 0) return;
|
|
391
|
-
const slot =
|
|
582
|
+
const slot = chunk456Z2U7Y_cjs.vectorSlotFromDropIndexParams(params);
|
|
392
583
|
const dropStatement = vectorStrategy.buildDropIndex?.(slot);
|
|
393
584
|
if (dropStatement === void 0) return;
|
|
394
585
|
try {
|
|
395
586
|
await execRun(dropStatement);
|
|
396
587
|
} catch (error) {
|
|
397
|
-
if (!
|
|
588
|
+
if (!chunkRSSQKPSZ_cjs.isMissingTableError(error)) throw error;
|
|
398
589
|
}
|
|
399
590
|
},
|
|
400
591
|
// === Fulltext Operations ===
|
|
401
592
|
async upsertFulltext(params) {
|
|
402
|
-
const timestamp =
|
|
593
|
+
const timestamp = chunk5W4L6DLF_cjs.nowIso();
|
|
403
594
|
const statements = operationStrategy.buildUpsertFulltext(
|
|
404
595
|
params,
|
|
405
596
|
timestamp
|
|
@@ -416,20 +607,33 @@ function createSqliteOperationBackend(options) {
|
|
|
416
607
|
},
|
|
417
608
|
async upsertFulltextBatch(params) {
|
|
418
609
|
if (params.rows.length === 0) return;
|
|
419
|
-
const timestamp =
|
|
420
|
-
const
|
|
421
|
-
params,
|
|
422
|
-
|
|
423
|
-
)
|
|
424
|
-
|
|
425
|
-
|
|
610
|
+
const timestamp = chunk5W4L6DLF_cjs.nowIso();
|
|
611
|
+
for (const rows of chunkX4JBT642_cjs.chunk(
|
|
612
|
+
params.rows,
|
|
613
|
+
batchConfig.fulltextUpsertBatchSize
|
|
614
|
+
)) {
|
|
615
|
+
const statements = operationStrategy.buildUpsertFulltextBatch(
|
|
616
|
+
{ ...params, rows },
|
|
617
|
+
timestamp
|
|
618
|
+
);
|
|
619
|
+
for (const stmt of statements) {
|
|
620
|
+
await execRun(stmt);
|
|
621
|
+
}
|
|
426
622
|
}
|
|
427
623
|
},
|
|
428
624
|
async deleteFulltextBatch(params) {
|
|
429
625
|
if (params.nodeIds.length === 0) return;
|
|
430
|
-
const
|
|
431
|
-
|
|
432
|
-
|
|
626
|
+
for (const nodeIds of chunkX4JBT642_cjs.chunk(
|
|
627
|
+
params.nodeIds,
|
|
628
|
+
batchConfig.fulltextDeleteChunkSize
|
|
629
|
+
)) {
|
|
630
|
+
const statements = operationStrategy.buildDeleteFulltextBatch({
|
|
631
|
+
...params,
|
|
632
|
+
nodeIds
|
|
633
|
+
});
|
|
634
|
+
for (const stmt of statements) {
|
|
635
|
+
await execRun(stmt);
|
|
636
|
+
}
|
|
433
637
|
}
|
|
434
638
|
},
|
|
435
639
|
async fulltextSearch(params) {
|
|
@@ -437,7 +641,7 @@ function createSqliteOperationBackend(options) {
|
|
|
437
641
|
const rows = await execAll(query);
|
|
438
642
|
return rows.map((row, index) => ({
|
|
439
643
|
nodeId: row.node_id,
|
|
440
|
-
score:
|
|
644
|
+
score: chunk5W4L6DLF_cjs.coerceNumericScore(row.score),
|
|
441
645
|
rank: index + 1,
|
|
442
646
|
...row.snippet === null ? {} : { snippet: row.snippet }
|
|
443
647
|
}));
|
|
@@ -456,18 +660,19 @@ function createSqliteOperationBackend(options) {
|
|
|
456
660
|
return operationBackend;
|
|
457
661
|
}
|
|
458
662
|
function createSqliteBackend(db, options = {}) {
|
|
459
|
-
const tables2 = options.tables ??
|
|
460
|
-
const fulltextStrategy = options.fulltext ??
|
|
663
|
+
const tables2 = options.tables ?? chunkFN35DLCN_cjs.tables;
|
|
664
|
+
const fulltextStrategy = options.fulltext ?? chunkD7ZEOS56_cjs.fts5Strategy;
|
|
461
665
|
const profileHints = options.executionProfile ?? {};
|
|
462
666
|
const executionAdapter = createSqliteExecutionAdapter(db, { profileHints });
|
|
463
667
|
const { isSync, transactionMode } = executionAdapter.profile;
|
|
464
668
|
const vectorStrategy = options.vector;
|
|
465
|
-
const vectorSlotLatch = vectorStrategy === void 0 ? void 0 :
|
|
669
|
+
const vectorSlotLatch = vectorStrategy === void 0 ? void 0 : chunk456Z2U7Y_cjs.createVectorSlotLatch();
|
|
466
670
|
const capabilities = {
|
|
467
671
|
...buildSqliteCapabilities({
|
|
468
672
|
fulltextStrategy,
|
|
469
673
|
vectorStrategy,
|
|
470
|
-
transactionMode
|
|
674
|
+
transactionMode,
|
|
675
|
+
maxBindParameters: executionAdapter.profile.maxBindParameters
|
|
471
676
|
}),
|
|
472
677
|
...options.capabilities
|
|
473
678
|
};
|
|
@@ -477,10 +682,22 @@ function createSqliteBackend(db, options = {}) {
|
|
|
477
682
|
recordedNodes: drizzleOrm.getTableName(tables2.recordedNodes),
|
|
478
683
|
recordedEdges: drizzleOrm.getTableName(tables2.recordedEdges),
|
|
479
684
|
recordedClock: drizzleOrm.getTableName(tables2.recordedClock),
|
|
685
|
+
revisionOrigins: drizzleOrm.getTableName(tables2.revisionOrigins),
|
|
480
686
|
fulltext: tables2.fulltextTableName,
|
|
481
687
|
uniques: drizzleOrm.getTableName(tables2.uniques)
|
|
482
688
|
};
|
|
483
|
-
const
|
|
689
|
+
const coreAnalyzeTables = [
|
|
690
|
+
tableNames.nodes,
|
|
691
|
+
tableNames.edges,
|
|
692
|
+
tableNames.uniques,
|
|
693
|
+
tableNames.fulltext
|
|
694
|
+
];
|
|
695
|
+
const recordedAnalyzeTables = [
|
|
696
|
+
tableNames.recordedNodes,
|
|
697
|
+
tableNames.recordedEdges,
|
|
698
|
+
tableNames.recordedClock
|
|
699
|
+
];
|
|
700
|
+
const operationStrategy = chunk456Z2U7Y_cjs.createSqliteOperationStrategy(
|
|
484
701
|
tables2,
|
|
485
702
|
fulltextStrategy
|
|
486
703
|
);
|
|
@@ -509,6 +726,14 @@ function createSqliteBackend(db, options = {}) {
|
|
|
509
726
|
async () => storageTransaction.call(storage, run)
|
|
510
727
|
);
|
|
511
728
|
}
|
|
729
|
+
async function runFrameStatement(query) {
|
|
730
|
+
const compiledRun = executionAdapter.executeCompiledRun;
|
|
731
|
+
if (compiledRun === void 0) {
|
|
732
|
+
await db.run(query);
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
await compiledRun(executionAdapter.compile(query));
|
|
736
|
+
}
|
|
512
737
|
function runSchemaWriteTransaction(fn) {
|
|
513
738
|
if (transactionMode === "none") {
|
|
514
739
|
throwSqliteTransactionsDisabled(
|
|
@@ -526,13 +751,13 @@ function createSqliteBackend(db, options = {}) {
|
|
|
526
751
|
tableNames,
|
|
527
752
|
fulltextStrategy,
|
|
528
753
|
vectorStrategy});
|
|
529
|
-
await
|
|
754
|
+
await runFrameStatement(drizzleOrm.sql`BEGIN IMMEDIATE`);
|
|
530
755
|
try {
|
|
531
756
|
const result = await fn(txBackend);
|
|
532
|
-
await
|
|
757
|
+
await runFrameStatement(drizzleOrm.sql`COMMIT`);
|
|
533
758
|
return result;
|
|
534
759
|
} catch (error) {
|
|
535
|
-
await
|
|
760
|
+
await runFrameStatement(drizzleOrm.sql`ROLLBACK`);
|
|
536
761
|
throw error;
|
|
537
762
|
}
|
|
538
763
|
});
|
|
@@ -570,7 +795,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
570
795
|
}
|
|
571
796
|
const matTable = tables2.contributionMaterializations;
|
|
572
797
|
async function ensureContributionMaterializationsTableImpl() {
|
|
573
|
-
await db.run(drizzleOrm.sql.raw(
|
|
798
|
+
await db.run(drizzleOrm.sql.raw(chunk456Z2U7Y_cjs.generateSqliteCreateTableSQL(matTable)));
|
|
574
799
|
}
|
|
575
800
|
async function getContributionMaterializationRow(identity) {
|
|
576
801
|
const rows = await db.select().from(matTable).where(
|
|
@@ -583,16 +808,16 @@ function createSqliteBackend(db, options = {}) {
|
|
|
583
808
|
);
|
|
584
809
|
const row = rows[0];
|
|
585
810
|
if (row === void 0) return void 0;
|
|
586
|
-
return
|
|
811
|
+
return chunk456Z2U7Y_cjs.mapContributionMaterializationRow(
|
|
587
812
|
row,
|
|
588
|
-
|
|
813
|
+
chunk456Z2U7Y_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.decode
|
|
589
814
|
);
|
|
590
815
|
}
|
|
591
816
|
async function recordContributionMaterializationRow(params) {
|
|
592
817
|
await db.insert(matTable).values(
|
|
593
|
-
|
|
818
|
+
chunk456Z2U7Y_cjs.buildContributionInsertValues(
|
|
594
819
|
params,
|
|
595
|
-
|
|
820
|
+
chunk456Z2U7Y_cjs.SQLITE_CONTRIBUTION_MAT_TIMESTAMPS.encode
|
|
596
821
|
)
|
|
597
822
|
).onConflictDoUpdate({
|
|
598
823
|
target: [
|
|
@@ -601,13 +826,13 @@ function createSqliteBackend(db, options = {}) {
|
|
|
601
826
|
matTable.owner,
|
|
602
827
|
matTable.tableName
|
|
603
828
|
],
|
|
604
|
-
set:
|
|
829
|
+
set: chunk456Z2U7Y_cjs.buildContributionOnConflictSet(
|
|
605
830
|
matTable.materializedAt,
|
|
606
831
|
params.materializedAt
|
|
607
832
|
)
|
|
608
833
|
});
|
|
609
834
|
}
|
|
610
|
-
const contributionMaterializer =
|
|
835
|
+
const contributionMaterializer = chunk456Z2U7Y_cjs.createContributionMaterializer({
|
|
611
836
|
dialect: "sqlite",
|
|
612
837
|
fulltextStrategy,
|
|
613
838
|
fulltextTableName: tables2.fulltextTableName,
|
|
@@ -627,22 +852,27 @@ function createSqliteBackend(db, options = {}) {
|
|
|
627
852
|
tableNames,
|
|
628
853
|
fulltextStrategy,
|
|
629
854
|
vectorStrategy});
|
|
630
|
-
return
|
|
855
|
+
return chunk456Z2U7Y_cjs.gateFulltext(txBackend, contributionMaterializer.assertInitialized);
|
|
631
856
|
}
|
|
632
857
|
const backend = {
|
|
633
858
|
...operations,
|
|
634
859
|
async bootstrapTables() {
|
|
635
|
-
const statements =
|
|
860
|
+
const statements = chunk456Z2U7Y_cjs.generateSqliteDDL(tables2, fulltextStrategy);
|
|
636
861
|
for (const statement of statements) {
|
|
637
862
|
await db.run(drizzleOrm.sql.raw(statement));
|
|
638
863
|
}
|
|
639
864
|
},
|
|
865
|
+
async ensureRevisionOriginsTable() {
|
|
866
|
+
await db.run(
|
|
867
|
+
drizzleOrm.sql.raw(chunk456Z2U7Y_cjs.generateSqliteCreateTableSQL(tables2.revisionOrigins))
|
|
868
|
+
);
|
|
869
|
+
},
|
|
640
870
|
// Every fulltext-touching method asserts the durable marker instead
|
|
641
871
|
// of lazily emitting DDL. Steady state performs zero ensure; an
|
|
642
872
|
// uninitialized database throws `StoreNotInitializedError` rather
|
|
643
873
|
// than self-healing (#135). Shared verbatim with the tx-scoped gate
|
|
644
874
|
// via `gateFulltextMethods`.
|
|
645
|
-
...
|
|
875
|
+
...chunk456Z2U7Y_cjs.gateFulltextMethods(
|
|
646
876
|
operations,
|
|
647
877
|
contributionMaterializer.assertInitialized
|
|
648
878
|
),
|
|
@@ -651,7 +881,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
651
881
|
},
|
|
652
882
|
async ensureIndexMaterializationsTable() {
|
|
653
883
|
await db.run(
|
|
654
|
-
drizzleOrm.sql.raw(
|
|
884
|
+
drizzleOrm.sql.raw(chunk456Z2U7Y_cjs.generateSqliteCreateTableSQL(tables2.indexMaterializations))
|
|
655
885
|
);
|
|
656
886
|
},
|
|
657
887
|
async getIndexMaterialization(indexName) {
|
|
@@ -659,26 +889,26 @@ function createSqliteBackend(db, options = {}) {
|
|
|
659
889
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.indexName, indexName));
|
|
660
890
|
const row = rows[0];
|
|
661
891
|
if (row === void 0) return void 0;
|
|
662
|
-
return
|
|
892
|
+
return chunk456Z2U7Y_cjs.mapMaterializationRow(row, chunk456Z2U7Y_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode);
|
|
663
893
|
},
|
|
664
894
|
async getIndexMaterializations(statusKeys) {
|
|
665
895
|
if (statusKeys.length === 0) return [];
|
|
666
896
|
const t = tables2.indexMaterializations;
|
|
667
897
|
const rows = await db.select().from(t).where(drizzleOrm.inArray(t.indexName, [...statusKeys]));
|
|
668
898
|
return rows.map(
|
|
669
|
-
(row) =>
|
|
899
|
+
(row) => chunk456Z2U7Y_cjs.mapMaterializationRow(row, chunk456Z2U7Y_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.decode)
|
|
670
900
|
);
|
|
671
901
|
},
|
|
672
902
|
async recordIndexMaterialization(params) {
|
|
673
903
|
const t = tables2.indexMaterializations;
|
|
674
904
|
await db.insert(t).values(
|
|
675
|
-
|
|
905
|
+
chunk456Z2U7Y_cjs.buildMaterializationInsertValues(
|
|
676
906
|
params,
|
|
677
|
-
|
|
907
|
+
chunk456Z2U7Y_cjs.SQLITE_INDEX_MAT_TIMESTAMPS.encode
|
|
678
908
|
)
|
|
679
909
|
).onConflictDoUpdate({
|
|
680
910
|
target: t.indexName,
|
|
681
|
-
set:
|
|
911
|
+
set: chunk456Z2U7Y_cjs.buildMaterializationOnConflictSet(
|
|
682
912
|
t.materializedAt,
|
|
683
913
|
params.materializedAt
|
|
684
914
|
)
|
|
@@ -697,37 +927,37 @@ function createSqliteBackend(db, options = {}) {
|
|
|
697
927
|
await contributionMaterializer.assertInitialized(graphId);
|
|
698
928
|
},
|
|
699
929
|
async ensureKindRemovalsTable() {
|
|
700
|
-
await db.run(drizzleOrm.sql.raw(
|
|
930
|
+
await db.run(drizzleOrm.sql.raw(chunk456Z2U7Y_cjs.generateSqliteCreateTableSQL(tables2.kindRemovals)));
|
|
701
931
|
},
|
|
702
932
|
async getPendingKindRemovals(graphId) {
|
|
703
933
|
const t = tables2.kindRemovals;
|
|
704
934
|
const rows = await db.select().from(t).where(drizzleOrm.and(drizzleOrm.eq(t.graphId, graphId), drizzleOrm.isNull(t.removedAt)));
|
|
705
935
|
return rows.map(
|
|
706
|
-
(row) =>
|
|
936
|
+
(row) => chunk456Z2U7Y_cjs.mapKindRemovalRow(row, chunk456Z2U7Y_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
707
937
|
);
|
|
708
938
|
},
|
|
709
939
|
async getAllKindRemovals(graphId) {
|
|
710
940
|
const t = tables2.kindRemovals;
|
|
711
941
|
const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
|
|
712
942
|
return rows.map(
|
|
713
|
-
(row) =>
|
|
943
|
+
(row) => chunk456Z2U7Y_cjs.mapKindRemovalRow(row, chunk456Z2U7Y_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.decode)
|
|
714
944
|
);
|
|
715
945
|
},
|
|
716
946
|
async recordKindRemoval(params) {
|
|
717
947
|
const t = tables2.kindRemovals;
|
|
718
948
|
await db.insert(t).values(
|
|
719
|
-
|
|
949
|
+
chunk456Z2U7Y_cjs.buildKindRemovalInsertValues(
|
|
720
950
|
params,
|
|
721
|
-
|
|
951
|
+
chunk456Z2U7Y_cjs.SQLITE_KIND_REMOVAL_TIMESTAMPS.encode
|
|
722
952
|
)
|
|
723
953
|
).onConflictDoUpdate({
|
|
724
954
|
target: [t.graphId, t.kindName, t.entity, t.schemaVersion],
|
|
725
|
-
set:
|
|
955
|
+
set: chunk456Z2U7Y_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
|
|
726
956
|
});
|
|
727
957
|
},
|
|
728
958
|
async ensureReconciliationMarkersTable() {
|
|
729
959
|
await db.run(
|
|
730
|
-
drizzleOrm.sql.raw(
|
|
960
|
+
drizzleOrm.sql.raw(chunk456Z2U7Y_cjs.generateSqliteCreateTableSQL(tables2.reconciliationMarkers))
|
|
731
961
|
);
|
|
732
962
|
},
|
|
733
963
|
async ensureRuntimeContributions(graphId) {
|
|
@@ -754,7 +984,19 @@ function createSqliteBackend(db, options = {}) {
|
|
|
754
984
|
});
|
|
755
985
|
},
|
|
756
986
|
async refreshStatistics() {
|
|
757
|
-
await db.run(
|
|
987
|
+
await db.run(
|
|
988
|
+
drizzleOrm.sql`PRAGMA analysis_limit = ${drizzleOrm.sql.raw(String(SQLITE_ANALYZE_ROW_LIMIT))}`
|
|
989
|
+
);
|
|
990
|
+
for (const tableName of coreAnalyzeTables) {
|
|
991
|
+
await db.run(drizzleOrm.sql`ANALYZE ${chunk5W4L6DLF_cjs.quoteIdentifier(tableName)}`);
|
|
992
|
+
}
|
|
993
|
+
for (const tableName of recordedAnalyzeTables) {
|
|
994
|
+
try {
|
|
995
|
+
await db.run(drizzleOrm.sql`ANALYZE ${chunk5W4L6DLF_cjs.quoteIdentifier(tableName)}`);
|
|
996
|
+
} catch (error) {
|
|
997
|
+
if (!chunkRSSQKPSZ_cjs.isMissingTableError(error)) throw error;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
758
1000
|
},
|
|
759
1001
|
async commitSchemaVersion(params) {
|
|
760
1002
|
return runSchemaWriteTransaction(
|
|
@@ -783,19 +1025,19 @@ function createSqliteBackend(db, options = {}) {
|
|
|
783
1025
|
tableNames,
|
|
784
1026
|
fulltextStrategy,
|
|
785
1027
|
vectorStrategy});
|
|
786
|
-
await
|
|
1028
|
+
await runFrameStatement(drizzleOrm.sql`BEGIN IMMEDIATE`);
|
|
787
1029
|
try {
|
|
788
1030
|
const result = await fn(
|
|
789
|
-
|
|
1031
|
+
chunk456Z2U7Y_cjs.gateFulltext(
|
|
790
1032
|
txBackend,
|
|
791
1033
|
contributionMaterializer.assertInitialized
|
|
792
1034
|
),
|
|
793
1035
|
db
|
|
794
1036
|
);
|
|
795
|
-
await
|
|
1037
|
+
await runFrameStatement(drizzleOrm.sql`COMMIT`);
|
|
796
1038
|
return result;
|
|
797
1039
|
} catch (error) {
|
|
798
|
-
await
|
|
1040
|
+
await runFrameStatement(drizzleOrm.sql`ROLLBACK`);
|
|
799
1041
|
throw error;
|
|
800
1042
|
}
|
|
801
1043
|
});
|
|
@@ -818,7 +1060,7 @@ function createSqliteBackend(db, options = {}) {
|
|
|
818
1060
|
"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)."
|
|
819
1061
|
);
|
|
820
1062
|
}
|
|
821
|
-
|
|
1063
|
+
chunk456Z2U7Y_cjs.assertAdoptedDialect(
|
|
822
1064
|
externalTx,
|
|
823
1065
|
sqliteCore.BaseSQLiteDatabase,
|
|
824
1066
|
"sqlite"
|
|
@@ -844,10 +1086,10 @@ function createTransactionBackend(options) {
|
|
|
844
1086
|
tableNames: options.tableNames,
|
|
845
1087
|
fulltextStrategy: options.fulltextStrategy,
|
|
846
1088
|
vectorStrategy: options.vectorStrategy,
|
|
847
|
-
...options.vectorStrategy === void 0 ? {} : { vectorSlotLatch:
|
|
1089
|
+
...options.vectorStrategy === void 0 ? {} : { vectorSlotLatch: chunk456Z2U7Y_cjs.createVectorSlotLatch() }
|
|
848
1090
|
});
|
|
849
1091
|
}
|
|
850
1092
|
|
|
851
1093
|
exports.createSqliteBackend = createSqliteBackend;
|
|
852
|
-
//# sourceMappingURL=chunk-
|
|
853
|
-
//# sourceMappingURL=chunk-
|
|
1094
|
+
//# sourceMappingURL=chunk-JFMEONLG.cjs.map
|
|
1095
|
+
//# sourceMappingURL=chunk-JFMEONLG.cjs.map
|