@nicia-ai/typegraph 0.33.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/backend/postgres/index.cjs +30 -26
- package/dist/backend/postgres/index.d.cts +39 -7
- package/dist/backend/postgres/index.d.ts +39 -7
- package/dist/backend/postgres/index.js +17 -13
- package/dist/backend/postgres/pglite.cjs +22 -18
- package/dist/backend/postgres/pglite.cjs.map +1 -1
- package/dist/backend/postgres/pglite.d.cts +4 -4
- package/dist/backend/postgres/pglite.d.ts +4 -4
- package/dist/backend/postgres/pglite.js +17 -13
- package/dist/backend/postgres/pglite.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +26 -23
- package/dist/backend/sqlite/index.d.cts +8 -8
- package/dist/backend/sqlite/index.d.ts +8 -8
- package/dist/backend/sqlite/index.js +14 -11
- package/dist/backend/sqlite/libsql.cjs +21 -17
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +13 -6
- package/dist/backend/sqlite/libsql.d.ts +13 -6
- package/dist/backend/sqlite/libsql.js +17 -13
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +102 -18
- 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 +96 -13
- package/dist/backend/sqlite/local.js.map +1 -1
- package/dist/{chunk-JHOBXD7O.js → chunk-3TWF3SH4.js} +332 -64
- package/dist/chunk-3TWF3SH4.js.map +1 -0
- package/dist/chunk-4JEZZJ6S.cjs +1271 -0
- package/dist/chunk-4JEZZJ6S.cjs.map +1 -0
- package/dist/{chunk-I4W7MKVG.cjs → chunk-4TOD4LBZ.cjs} +249 -294
- package/dist/chunk-4TOD4LBZ.cjs.map +1 -0
- package/dist/chunk-55MZDDZV.js +239 -0
- package/dist/chunk-55MZDDZV.js.map +1 -0
- package/dist/{chunk-LM2IC4ZJ.cjs → chunk-5A6FNS6N.cjs} +75 -19
- package/dist/chunk-5A6FNS6N.cjs.map +1 -0
- package/dist/{chunk-FDN43KXV.cjs → chunk-5AQIKK56.cjs} +65 -24
- package/dist/chunk-5AQIKK56.cjs.map +1 -0
- package/dist/{chunk-IZ4PCL47.js → chunk-5SEGFTZX.js} +4 -66
- package/dist/chunk-5SEGFTZX.js.map +1 -0
- package/dist/{chunk-CWFPJ3RC.js → chunk-6FR2MMS6.js} +7 -7
- package/dist/chunk-6FR2MMS6.js.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-ACSVZPK7.cjs +21 -0
- package/dist/chunk-ACSVZPK7.cjs.map +1 -0
- package/dist/{chunk-OIE2UPVG.cjs → chunk-BLZDPRXT.cjs} +52 -21
- package/dist/chunk-BLZDPRXT.cjs.map +1 -0
- package/dist/chunk-BYPOGQWK.js +25 -0
- package/dist/chunk-BYPOGQWK.js.map +1 -0
- package/dist/{chunk-NG5N7R45.cjs → chunk-CK5BVQOW.cjs} +325 -213
- package/dist/chunk-CK5BVQOW.cjs.map +1 -0
- package/dist/chunk-CTTSDJLY.cjs +261 -0
- package/dist/chunk-CTTSDJLY.cjs.map +1 -0
- package/dist/chunk-CUHM5CWJ.cjs +12 -0
- package/dist/chunk-CUHM5CWJ.cjs.map +1 -0
- package/dist/chunk-CZQ3FO2Q.js +2320 -0
- package/dist/chunk-CZQ3FO2Q.js.map +1 -0
- package/dist/{chunk-CFNT3ITG.cjs → chunk-D7ZEOS56.cjs} +25 -52
- 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-DI74SMXS.cjs +29 -0
- package/dist/chunk-DI74SMXS.cjs.map +1 -0
- package/dist/{chunk-KY5SDVA7.cjs → chunk-EM3CWPND.cjs} +442 -113
- package/dist/chunk-EM3CWPND.cjs.map +1 -0
- package/dist/chunk-EMF62TZG.cjs +1176 -0
- package/dist/chunk-EMF62TZG.cjs.map +1 -0
- package/dist/chunk-EOLERH7Y.cjs +40 -0
- package/dist/chunk-EOLERH7Y.cjs.map +1 -0
- package/dist/{chunk-3QRBXYT5.cjs → chunk-FACJJWGF.cjs} +24 -6
- package/dist/chunk-FACJJWGF.cjs.map +1 -0
- package/dist/{chunk-KTIEB7VH.cjs → chunk-FL472AMI.cjs} +49 -165
- package/dist/chunk-FL472AMI.cjs.map +1 -0
- package/dist/{chunk-4RBAJVEC.cjs → chunk-FN35DLCN.cjs} +31 -9
- package/dist/chunk-FN35DLCN.cjs.map +1 -0
- package/dist/{chunk-C4C4Q7A6.js → chunk-FPIZFYHE.js} +12 -35
- package/dist/chunk-FPIZFYHE.js.map +1 -0
- package/dist/{chunk-XKNAK27R.js → chunk-FRV5Q5IO.js} +64 -8
- 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-GSQ6NPH6.cjs +100 -0
- package/dist/chunk-GSQ6NPH6.cjs.map +1 -0
- package/dist/chunk-GUR2FNB5.cjs +12 -0
- package/dist/{chunk-6ZR4QC3O.cjs.map → chunk-GUR2FNB5.cjs.map} +1 -1
- package/dist/{chunk-ZFWNO3GE.cjs → chunk-H7YNSMA7.cjs} +107 -2
- package/dist/chunk-H7YNSMA7.cjs.map +1 -0
- package/dist/{chunk-GYVBEZAO.js → chunk-I7ZUZKFD.js} +47 -19
- package/dist/chunk-I7ZUZKFD.js.map +1 -0
- package/dist/chunk-ITE4IXAK.js +25 -0
- package/dist/chunk-ITE4IXAK.js.map +1 -0
- package/dist/{chunk-D3EWZ67S.cjs → chunk-J7WFGBJR.cjs} +3372 -4970
- package/dist/chunk-J7WFGBJR.cjs.map +1 -0
- package/dist/{chunk-PYD3UCDU.js → chunk-JBTOYDMN.js} +202 -251
- package/dist/chunk-JBTOYDMN.js.map +1 -0
- package/dist/{chunk-XVUJY72M.js → chunk-K3PPLHY7.js} +234 -118
- package/dist/chunk-K3PPLHY7.js.map +1 -0
- package/dist/{chunk-454I6GDF.js → chunk-KBGQIPRQ.js} +102 -3
- package/dist/chunk-KBGQIPRQ.js.map +1 -0
- package/dist/chunk-KMI7LYAF.js +1252 -0
- package/dist/chunk-KMI7LYAF.js.map +1 -0
- package/dist/{chunk-JIEJCTDS.cjs → chunk-LGEALRC6.cjs} +21 -4
- package/dist/chunk-LGEALRC6.cjs.map +1 -0
- package/dist/{chunk-TQOYM4LN.js → chunk-MP2JQKSG.js} +21 -5
- package/dist/chunk-MP2JQKSG.js.map +1 -0
- package/dist/{chunk-3642VBVC.cjs → chunk-O7UN7OXA.cjs} +389 -121
- package/dist/chunk-O7UN7OXA.cjs.map +1 -0
- package/dist/chunk-OHMP6N2J.js +47 -0
- package/dist/chunk-OHMP6N2J.js.map +1 -0
- package/dist/{chunk-6NRFUHMS.js → chunk-OR5ZA5WP.js} +135 -24
- package/dist/chunk-OR5ZA5WP.js.map +1 -0
- package/dist/{chunk-PRMKPFN5.js → chunk-Q5TEXCTB.js} +61 -6
- package/dist/chunk-Q5TEXCTB.js.map +1 -0
- package/dist/chunk-QNKSQTKQ.js +1312 -0
- package/dist/chunk-QNKSQTKQ.js.map +1 -0
- package/dist/{chunk-YCV72E6L.js → chunk-QOTI55H7.js} +7 -116
- package/dist/chunk-QOTI55H7.js.map +1 -0
- package/dist/{chunk-QBYTJSAY.js → chunk-QWEUYILR.js} +99 -34
- package/dist/chunk-QWEUYILR.js.map +1 -0
- package/dist/{chunk-OS6KS3HV.js → chunk-RGP33ZJ5.js} +485 -82
- package/dist/chunk-RGP33ZJ5.js.map +1 -0
- package/dist/chunk-RGPG7EOJ.js +94 -0
- package/dist/chunk-RGPG7EOJ.js.map +1 -0
- package/dist/{chunk-WWVV44DY.cjs → chunk-S55OV6PW.cjs} +15 -15
- package/dist/chunk-S55OV6PW.cjs.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-XLUNB2TZ.js → chunk-SNXVDZAJ.js} +3 -3
- package/dist/{chunk-XLUNB2TZ.js.map → chunk-SNXVDZAJ.js.map} +1 -1
- package/dist/{chunk-CEF2QOTO.js → chunk-T2WUSPDA.js} +49 -8
- package/dist/chunk-T2WUSPDA.js.map +1 -0
- package/dist/{chunk-YW7GHMF4.cjs → chunk-TCOCYN2P.cjs} +75 -20
- 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-TEDRJXOG.cjs +32 -0
- package/dist/chunk-TEDRJXOG.cjs.map +1 -0
- package/dist/{chunk-WLP6TKFB.js → chunk-UES55P7G.js} +2809 -4398
- package/dist/chunk-UES55P7G.js.map +1 -0
- package/dist/{chunk-EF3Z645U.cjs → chunk-UMDVATGY.cjs} +6 -72
- package/dist/chunk-UMDVATGY.cjs.map +1 -0
- package/dist/chunk-UR7W5YQK.js +18 -0
- package/dist/chunk-UR7W5YQK.js.map +1 -0
- package/dist/chunk-UT3S4SEN.js +31 -0
- package/dist/chunk-UT3S4SEN.js.map +1 -0
- package/dist/{chunk-3IR2GEMJ.cjs → chunk-UUT7UN2N.cjs} +149 -38
- package/dist/chunk-UUT7UN2N.cjs.map +1 -0
- package/dist/{chunk-PIHXFF73.js → chunk-UZV3AZKF.js} +21 -3
- package/dist/chunk-UZV3AZKF.js.map +1 -0
- package/dist/{chunk-DJYRRDHA.js → chunk-VHMPG6UL.js} +29 -7
- package/dist/chunk-VHMPG6UL.js.map +1 -0
- package/dist/{chunk-MBLXCV2Y.cjs → chunk-VPYHY3LJ.cjs} +111 -43
- package/dist/chunk-VPYHY3LJ.cjs.map +1 -0
- package/dist/{chunk-WYTUF3QO.js → chunk-VSPCZAXF.js} +3 -3
- package/dist/{chunk-WYTUF3QO.js.map → chunk-VSPCZAXF.js.map} +1 -1
- package/dist/chunk-W63OVYY4.js +29 -0
- package/dist/chunk-W63OVYY4.js.map +1 -0
- package/dist/{chunk-UPDMJEW6.js → chunk-WDBCBWC4.js} +356 -30
- package/dist/chunk-WDBCBWC4.js.map +1 -0
- package/dist/chunk-WJT7OU7E.cjs +1334 -0
- package/dist/chunk-WJT7OU7E.cjs.map +1 -0
- package/dist/chunk-XOX22WHL.cjs +2383 -0
- package/dist/chunk-XOX22WHL.cjs.map +1 -0
- package/dist/{ddl-CVnHJcar.d.ts → ddl-C2rZ-Aen.d.ts} +4 -4
- package/dist/{ddl-Dxt_fBHr.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-DGylBhWo.d.ts → fulltext-strategy-B57yvC5Q.d.ts} +2558 -2125
- package/dist/{types-C_UnQOQp.d.cts → fulltext-strategy-CDkSSYhq.d.cts} +2558 -2125
- package/dist/graph-extension/index.cjs +21 -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 +6 -4
- package/dist/graph-merge/index.cjs +408 -169
- 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 +286 -47
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-DGX6D9j1.d.ts → index-6CSUAq-x.d.ts} +234 -93
- package/dist/{index-SEvUHDA6.d.cts → index-Bks_3HHK.d.cts} +234 -93
- package/dist/index.cjs +240 -211
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +35 -27
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +28 -27
- package/dist/indexes/index.d.cts +5 -5
- package/dist/indexes/index.d.ts +5 -5
- package/dist/indexes/index.js +10 -9
- package/dist/interchange/index.cjs +47 -17
- package/dist/interchange/index.d.cts +126 -12
- package/dist/interchange/index.d.ts +126 -12
- package/dist/interchange/index.js +14 -4
- package/dist/{manager-BYl_zyZR.d.cts → manager-DwQi8eV0.d.cts} +9 -2
- package/dist/{manager-C0_r0ALf.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-_9psmVGm.d.cts → postgres-CfEqsRMp.d.cts} +152 -1
- package/dist/{postgres-MzBPkYzq.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 +590 -0
- package/dist/provenance/index.cjs.map +1 -0
- package/dist/provenance/index.d.cts +73 -0
- package/dist/provenance/index.d.ts +73 -0
- package/dist/provenance/index.js +588 -0
- package/dist/provenance/index.js.map +1 -0
- package/dist/schema/index.cjs +55 -38
- 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 +30 -13
- package/dist/schema/index.js.map +1 -1
- package/dist/{sqlite-gm44dShb.d.ts → sqlite-D7zBinNR.d.cts} +92 -1
- package/dist/{sqlite-BfksSb45.d.cts → sqlite-DvQndLky.d.ts} +92 -1
- package/dist/{store-view-FfE5_7eo.d.ts → store-view-BSpqvAxK.d.cts} +445 -46
- package/dist/{store-view-9jQ2rPum.d.cts → store-view-CKbHFRnn.d.ts} +445 -46
- package/dist/{types-B6mhrcLv.d.cts → types-Bv9DcS_E.d.cts} +2 -2
- package/dist/{types-CdWxK-nD.d.ts → types-CoxuV7EJ.d.ts} +2 -2
- package/dist/{where-Bpp2ul_z.d.cts → where-7RKFOsXt.d.ts} +2 -2
- package/dist/{where-BsEXraKW.d.ts → where-DdMIXOtH.d.cts} +2 -2
- package/package.json +21 -14
- package/dist/chunk-2YMGNYXY.js +0 -40
- package/dist/chunk-2YMGNYXY.js.map +0 -1
- package/dist/chunk-3642VBVC.cjs.map +0 -1
- package/dist/chunk-3EUKJEQ3.js +0 -77
- package/dist/chunk-3EUKJEQ3.js.map +0 -1
- package/dist/chunk-3IR2GEMJ.cjs.map +0 -1
- package/dist/chunk-3QRBXYT5.cjs.map +0 -1
- package/dist/chunk-454I6GDF.js.map +0 -1
- package/dist/chunk-4RBAJVEC.cjs.map +0 -1
- package/dist/chunk-6NRFUHMS.js.map +0 -1
- package/dist/chunk-6ZR4QC3O.cjs +0 -12
- package/dist/chunk-73KASJGO.cjs +0 -52
- package/dist/chunk-73KASJGO.cjs.map +0 -1
- package/dist/chunk-BF3ZDEUE.cjs +0 -773
- package/dist/chunk-BF3ZDEUE.cjs.map +0 -1
- package/dist/chunk-C4C4Q7A6.js.map +0 -1
- package/dist/chunk-CEF2QOTO.js.map +0 -1
- package/dist/chunk-CFNT3ITG.cjs.map +0 -1
- package/dist/chunk-CWFPJ3RC.js.map +0 -1
- package/dist/chunk-D3EWZ67S.cjs.map +0 -1
- package/dist/chunk-DJYRRDHA.js.map +0 -1
- package/dist/chunk-EF3Z645U.cjs.map +0 -1
- package/dist/chunk-FDN43KXV.cjs.map +0 -1
- package/dist/chunk-GYVBEZAO.js.map +0 -1
- package/dist/chunk-HTGDWIDE.cjs +0 -89
- package/dist/chunk-HTGDWIDE.cjs.map +0 -1
- package/dist/chunk-I4W7MKVG.cjs.map +0 -1
- package/dist/chunk-IZ4PCL47.js.map +0 -1
- package/dist/chunk-JHOBXD7O.js.map +0 -1
- package/dist/chunk-JIEJCTDS.cjs.map +0 -1
- package/dist/chunk-KTIEB7VH.cjs.map +0 -1
- package/dist/chunk-KY5SDVA7.cjs.map +0 -1
- package/dist/chunk-LM2IC4ZJ.cjs.map +0 -1
- package/dist/chunk-MBLXCV2Y.cjs.map +0 -1
- package/dist/chunk-NG5N7R45.cjs.map +0 -1
- package/dist/chunk-OIE2UPVG.cjs.map +0 -1
- package/dist/chunk-OS6KS3HV.js.map +0 -1
- package/dist/chunk-PIHXFF73.js.map +0 -1
- package/dist/chunk-PRMKPFN5.js.map +0 -1
- package/dist/chunk-PYD3UCDU.js.map +0 -1
- package/dist/chunk-QBYTJSAY.js.map +0 -1
- package/dist/chunk-SPT5JMME.js +0 -610
- package/dist/chunk-SPT5JMME.js.map +0 -1
- package/dist/chunk-SST7XDY6.cjs +0 -624
- package/dist/chunk-SST7XDY6.cjs.map +0 -1
- package/dist/chunk-TQOYM4LN.js.map +0 -1
- package/dist/chunk-UPDMJEW6.js.map +0 -1
- package/dist/chunk-WLP6TKFB.js.map +0 -1
- package/dist/chunk-WWVV44DY.cjs.map +0 -1
- package/dist/chunk-XKNAK27R.js.map +0 -1
- package/dist/chunk-XVUJY72M.js.map +0 -1
- package/dist/chunk-YCV72E6L.js.map +0 -1
- package/dist/chunk-YW7GHMF4.cjs.map +0 -1
- package/dist/chunk-ZFWNO3GE.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -116,6 +116,26 @@ Examples: [Bitemporal Time Travel](https://typegraph.dev/examples/bitemporal-tim
|
|
|
116
116
|
· [Agent Decision Replay](https://typegraph.dev/examples/agent-decision-replay)
|
|
117
117
|
· [Breach Forensics](https://typegraph.dev/examples/breach-forensics)
|
|
118
118
|
|
|
119
|
+
## Provenance and Retraction
|
|
120
|
+
|
|
121
|
+
TypeGraph ships source-lineage retraction as a dedicated subpath:
|
|
122
|
+
|
|
123
|
+
```ts
|
|
124
|
+
import { createRetractionCapability } from "@nicia-ai/typegraph/provenance";
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Map ordinary graph kinds onto source, justification, fact, premise, and
|
|
128
|
+
derivation roles. Retraction flips a source's boolean flag, recomputes
|
|
129
|
+
well-founded support, keeps facts with alternate support current, and makes
|
|
130
|
+
unsupported facts non-current. Source roles can cover multiple node kinds, and
|
|
131
|
+
terminal fact kinds do not have to be valid premises. Because the capability
|
|
132
|
+
requires `history: true`, recorded-time reads can replay what the graph believed
|
|
133
|
+
before and after the transition.
|
|
134
|
+
|
|
135
|
+
Docs: [Provenance and Retraction](https://typegraph.dev/provenance)
|
|
136
|
+
|
|
137
|
+
Example: [Provenance Retraction](https://typegraph.dev/examples/provenance-retraction)
|
|
138
|
+
|
|
119
139
|
## Performance Smoke Check
|
|
120
140
|
|
|
121
141
|
The perf harness lives in `@nicia-ai/typegraph-benchmarks`; these commands delegate to it.
|
|
@@ -1,72 +1,76 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
11
|
-
require('../../chunk-
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-
|
|
15
|
-
require('../../chunk-
|
|
3
|
+
var chunkEMF62TZG_cjs = require('../../chunk-EMF62TZG.cjs');
|
|
4
|
+
var chunkEM3CWPND_cjs = require('../../chunk-EM3CWPND.cjs');
|
|
5
|
+
require('../../chunk-TCOCYN2P.cjs');
|
|
6
|
+
require('../../chunk-CUHM5CWJ.cjs');
|
|
7
|
+
require('../../chunk-FN35DLCN.cjs');
|
|
8
|
+
require('../../chunk-S55OV6PW.cjs');
|
|
9
|
+
require('../../chunk-CTTSDJLY.cjs');
|
|
10
|
+
require('../../chunk-ACSVZPK7.cjs');
|
|
11
|
+
require('../../chunk-TEDRJXOG.cjs');
|
|
12
|
+
require('../../chunk-D7ZEOS56.cjs');
|
|
13
|
+
require('../../chunk-EOLERH7Y.cjs');
|
|
14
|
+
require('../../chunk-4TOD4LBZ.cjs');
|
|
15
|
+
require('../../chunk-BLZDPRXT.cjs');
|
|
16
|
+
require('../../chunk-7YSP4V4R.cjs');
|
|
17
|
+
require('../../chunk-SJDMVITW.cjs');
|
|
18
|
+
require('../../chunk-LGEALRC6.cjs');
|
|
19
|
+
require('../../chunk-TDXIBCGY.cjs');
|
|
16
20
|
|
|
17
21
|
|
|
18
22
|
|
|
19
23
|
Object.defineProperty(exports, "createPostgresBackend", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkEMF62TZG_cjs.createPostgresBackend; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "createPostgresTables", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkEM3CWPND_cjs.createPostgresTables; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "edges", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkEM3CWPND_cjs.edges; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "fulltext", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkEM3CWPND_cjs.fulltext; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "generatePostgresDDL", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkEM3CWPND_cjs.generatePostgresDDL; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "generatePostgresMigrationSQL", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkEM3CWPND_cjs.generatePostgresMigrationSQL; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "nodes", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkEM3CWPND_cjs.nodes; }
|
|
46
50
|
});
|
|
47
51
|
Object.defineProperty(exports, "recordedClock", {
|
|
48
52
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkEM3CWPND_cjs.recordedClock; }
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(exports, "recordedEdges", {
|
|
52
56
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkEM3CWPND_cjs.recordedEdges; }
|
|
54
58
|
});
|
|
55
59
|
Object.defineProperty(exports, "recordedNodes", {
|
|
56
60
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkEM3CWPND_cjs.recordedNodes; }
|
|
58
62
|
});
|
|
59
63
|
Object.defineProperty(exports, "schemaVersions", {
|
|
60
64
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkEM3CWPND_cjs.schemaVersions; }
|
|
62
66
|
});
|
|
63
67
|
Object.defineProperty(exports, "tables", {
|
|
64
68
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkEM3CWPND_cjs.tables; }
|
|
66
70
|
});
|
|
67
71
|
Object.defineProperty(exports, "uniques", {
|
|
68
72
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkEM3CWPND_cjs.uniques; }
|
|
70
74
|
});
|
|
71
75
|
//# sourceMappingURL=index.cjs.map
|
|
72
76
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,13 +1,45 @@
|
|
|
1
|
-
import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities,
|
|
2
|
-
import { P as PostgresTables } from '../../postgres-
|
|
3
|
-
export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-
|
|
4
|
-
export {
|
|
5
|
-
import 'zod';
|
|
6
|
-
import '../../extension-types-YGFJPrzK.cjs';
|
|
1
|
+
import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AnyPgDatabase, G as GraphBackend } from '../../fulltext-strategy-CDkSSYhq.cjs';
|
|
2
|
+
import { P as PostgresTables } from '../../postgres-CfEqsRMp.cjs';
|
|
3
|
+
export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-CfEqsRMp.cjs';
|
|
4
|
+
export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-CZz7a0E8.cjs';
|
|
7
5
|
import 'drizzle-orm';
|
|
6
|
+
import '../../extension-types-ixRpJVUp.cjs';
|
|
7
|
+
import 'zod';
|
|
8
8
|
import 'drizzle-orm/pg-core';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
|
-
import '../../sqlite-
|
|
10
|
+
import '../../sqlite-D7zBinNR.cjs';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* PostgreSQL backend adapter for TypeGraph.
|
|
14
|
+
*
|
|
15
|
+
* Works with any Drizzle PostgreSQL database instance. Tested against:
|
|
16
|
+
* - `drizzle-orm/node-postgres` (pg Pool / Client)
|
|
17
|
+
* - `drizzle-orm/postgres-js` (postgres-js tagged-template client)
|
|
18
|
+
* - `drizzle-orm/neon-serverless` (@neondatabase/serverless Pool / Client)
|
|
19
|
+
* - `drizzle-orm/neon-http` (@neondatabase/serverless `neon(url)`) —
|
|
20
|
+
* transactions are auto-disabled because HTTP can't hold a session;
|
|
21
|
+
* use `drizzle-orm/neon-serverless` if you need transactional writes.
|
|
22
|
+
*
|
|
23
|
+
* - `drizzle-orm/pglite` (PGlite, Postgres-in-WASM) — the execution
|
|
24
|
+
* fast path detects PGlite and routes it correctly (its `.query` has no
|
|
25
|
+
* named-statement form). For a batteries-included in-process setup, see
|
|
26
|
+
* `createLocalPgliteBackend` in `@nicia-ai/typegraph/postgres/pglite`.
|
|
27
|
+
*
|
|
28
|
+
* Other pg-protocol Drizzle adapters (Vercel Postgres, Supabase via pg)
|
|
29
|
+
* work unchanged because they all expose a compatible `db.execute()` /
|
|
30
|
+
* `db.transaction()` surface.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import { drizzle } from "drizzle-orm/node-postgres";
|
|
35
|
+
* import { Pool } from "pg";
|
|
36
|
+
* import { createPostgresBackend, tables } from "@nicia-ai/typegraph/postgres";
|
|
37
|
+
*
|
|
38
|
+
* const pool = new Pool({ connectionString: process.env.DATABASE_URL });
|
|
39
|
+
* const db = drizzle(pool);
|
|
40
|
+
* const backend = createPostgresBackend(db, { tables });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
11
43
|
|
|
12
44
|
/**
|
|
13
45
|
* Options for creating a PostgreSQL backend.
|
|
@@ -1,13 +1,45 @@
|
|
|
1
|
-
import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities,
|
|
2
|
-
import { P as PostgresTables } from '../../postgres-
|
|
3
|
-
export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-
|
|
4
|
-
export {
|
|
5
|
-
import 'zod';
|
|
6
|
-
import '../../extension-types-YGFJPrzK.js';
|
|
1
|
+
import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AnyPgDatabase, G as GraphBackend } from '../../fulltext-strategy-B57yvC5Q.js';
|
|
2
|
+
import { P as PostgresTables } from '../../postgres-DQ5R6rzV.js';
|
|
3
|
+
export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-DQ5R6rzV.js';
|
|
4
|
+
export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-C2rZ-Aen.js';
|
|
7
5
|
import 'drizzle-orm';
|
|
6
|
+
import '../../extension-types-ixRpJVUp.js';
|
|
7
|
+
import 'zod';
|
|
8
8
|
import 'drizzle-orm/pg-core';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
|
-
import '../../sqlite-
|
|
10
|
+
import '../../sqlite-DvQndLky.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* PostgreSQL backend adapter for TypeGraph.
|
|
14
|
+
*
|
|
15
|
+
* Works with any Drizzle PostgreSQL database instance. Tested against:
|
|
16
|
+
* - `drizzle-orm/node-postgres` (pg Pool / Client)
|
|
17
|
+
* - `drizzle-orm/postgres-js` (postgres-js tagged-template client)
|
|
18
|
+
* - `drizzle-orm/neon-serverless` (@neondatabase/serverless Pool / Client)
|
|
19
|
+
* - `drizzle-orm/neon-http` (@neondatabase/serverless `neon(url)`) —
|
|
20
|
+
* transactions are auto-disabled because HTTP can't hold a session;
|
|
21
|
+
* use `drizzle-orm/neon-serverless` if you need transactional writes.
|
|
22
|
+
*
|
|
23
|
+
* - `drizzle-orm/pglite` (PGlite, Postgres-in-WASM) — the execution
|
|
24
|
+
* fast path detects PGlite and routes it correctly (its `.query` has no
|
|
25
|
+
* named-statement form). For a batteries-included in-process setup, see
|
|
26
|
+
* `createLocalPgliteBackend` in `@nicia-ai/typegraph/postgres/pglite`.
|
|
27
|
+
*
|
|
28
|
+
* Other pg-protocol Drizzle adapters (Vercel Postgres, Supabase via pg)
|
|
29
|
+
* work unchanged because they all expose a compatible `db.execute()` /
|
|
30
|
+
* `db.transaction()` surface.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import { drizzle } from "drizzle-orm/node-postgres";
|
|
35
|
+
* import { Pool } from "pg";
|
|
36
|
+
* import { createPostgresBackend, tables } from "@nicia-ai/typegraph/postgres";
|
|
37
|
+
*
|
|
38
|
+
* const pool = new Pool({ connectionString: process.env.DATABASE_URL });
|
|
39
|
+
* const db = drizzle(pool);
|
|
40
|
+
* const backend = createPostgresBackend(db, { tables });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
11
43
|
|
|
12
44
|
/**
|
|
13
45
|
* Options for creating a PostgreSQL backend.
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
export { createPostgresBackend } from '../../chunk-
|
|
2
|
-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
1
|
+
export { createPostgresBackend } from '../../chunk-RGP33ZJ5.js';
|
|
2
|
+
export { createPostgresTables, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-WDBCBWC4.js';
|
|
3
|
+
import '../../chunk-Q5TEXCTB.js';
|
|
4
|
+
import '../../chunk-DFVLCOP6.js';
|
|
5
|
+
import '../../chunk-VHMPG6UL.js';
|
|
6
|
+
import '../../chunk-6FR2MMS6.js';
|
|
7
|
+
import '../../chunk-55MZDDZV.js';
|
|
8
|
+
import '../../chunk-UR7W5YQK.js';
|
|
9
|
+
import '../../chunk-W63OVYY4.js';
|
|
10
|
+
import '../../chunk-FPIZFYHE.js';
|
|
11
|
+
import '../../chunk-UT3S4SEN.js';
|
|
12
|
+
import '../../chunk-JBTOYDMN.js';
|
|
13
|
+
import '../../chunk-I7ZUZKFD.js';
|
|
14
|
+
import '../../chunk-OHMP6N2J.js';
|
|
15
|
+
import '../../chunk-SNXVDZAJ.js';
|
|
16
|
+
import '../../chunk-MP2JQKSG.js';
|
|
17
|
+
import '../../chunk-G6Q5UM7U.js';
|
|
14
18
|
//# sourceMappingURL=index.js.map
|
|
15
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
|
|
10
|
-
require('../../chunk-
|
|
11
|
-
require('../../chunk-
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
var
|
|
15
|
-
require('../../chunk-
|
|
3
|
+
var chunkEMF62TZG_cjs = require('../../chunk-EMF62TZG.cjs');
|
|
4
|
+
var chunkEM3CWPND_cjs = require('../../chunk-EM3CWPND.cjs');
|
|
5
|
+
require('../../chunk-TCOCYN2P.cjs');
|
|
6
|
+
require('../../chunk-CUHM5CWJ.cjs');
|
|
7
|
+
require('../../chunk-FN35DLCN.cjs');
|
|
8
|
+
require('../../chunk-S55OV6PW.cjs');
|
|
9
|
+
require('../../chunk-CTTSDJLY.cjs');
|
|
10
|
+
require('../../chunk-ACSVZPK7.cjs');
|
|
11
|
+
require('../../chunk-TEDRJXOG.cjs');
|
|
12
|
+
require('../../chunk-D7ZEOS56.cjs');
|
|
13
|
+
require('../../chunk-EOLERH7Y.cjs');
|
|
14
|
+
var chunk4TOD4LBZ_cjs = require('../../chunk-4TOD4LBZ.cjs');
|
|
15
|
+
require('../../chunk-BLZDPRXT.cjs');
|
|
16
|
+
require('../../chunk-7YSP4V4R.cjs');
|
|
17
|
+
require('../../chunk-SJDMVITW.cjs');
|
|
18
|
+
var chunkLGEALRC6_cjs = require('../../chunk-LGEALRC6.cjs');
|
|
19
|
+
require('../../chunk-TDXIBCGY.cjs');
|
|
16
20
|
var pglite = require('@electric-sql/pglite');
|
|
17
21
|
var pglite$1 = require('drizzle-orm/pglite');
|
|
18
22
|
|
|
@@ -21,7 +25,7 @@ async function loadDefaultPgvectorExtension() {
|
|
|
21
25
|
const module_ = await import('@electric-sql/pglite-pgvector');
|
|
22
26
|
return module_.vector;
|
|
23
27
|
} catch (error) {
|
|
24
|
-
throw new
|
|
28
|
+
throw new chunkLGEALRC6_cjs.ConfigurationError(
|
|
25
29
|
"createLocalPgliteBackend needs the pgvector extension but `@electric-sql/pglite-pgvector` could not be loaded. Install it (`pnpm add @electric-sql/pglite-pgvector`), pass your own `vector` extension, or set `vector: false` to disable vector support.",
|
|
26
30
|
{ backend: "pglite", dependency: "@electric-sql/pglite-pgvector" },
|
|
27
31
|
{ cause: error }
|
|
@@ -29,21 +33,21 @@ async function loadDefaultPgvectorExtension() {
|
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
async function createLocalPgliteBackend(options = {}) {
|
|
32
|
-
const tables2 = options.tables ??
|
|
36
|
+
const tables2 = options.tables ?? chunkEM3CWPND_cjs.tables;
|
|
33
37
|
const vectorExtension = options.vector === false ? void 0 : options.vector ?? await loadDefaultPgvectorExtension();
|
|
34
38
|
const vectorEnabled = vectorExtension !== void 0;
|
|
35
39
|
const client = await pglite.PGlite.create({
|
|
36
40
|
...options.dataDir === void 0 ? {} : { dataDir: options.dataDir },
|
|
37
41
|
...vectorExtension === void 0 ? {} : { extensions: { vector: vectorExtension } }
|
|
38
42
|
});
|
|
39
|
-
const migrationSql = vectorEnabled ?
|
|
43
|
+
const migrationSql = vectorEnabled ? chunkEM3CWPND_cjs.generatePostgresMigrationSQL(tables2) : chunkEM3CWPND_cjs.generatePostgresDDL(tables2).join("\n\n");
|
|
40
44
|
await client.exec(migrationSql);
|
|
41
45
|
const db = pglite$1.drizzle(client);
|
|
42
|
-
const backend =
|
|
46
|
+
const backend = chunkEMF62TZG_cjs.createPostgresBackend(db, {
|
|
43
47
|
tables: tables2,
|
|
44
48
|
...vectorEnabled ? {} : { vector: false }
|
|
45
49
|
});
|
|
46
|
-
const managedBackend =
|
|
50
|
+
const managedBackend = chunk4TOD4LBZ_cjs.wrapWithManagedClose(backend, async () => {
|
|
47
51
|
await client.close();
|
|
48
52
|
});
|
|
49
53
|
return { backend: managedBackend, db, client };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/backend/postgres/pglite.ts"],"names":["ConfigurationError","tables","PGlite","generatePostgresMigrationSQL","generatePostgresDDL","drizzle","createPostgresBackend","wrapWithManagedClose"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/backend/postgres/pglite.ts"],"names":["ConfigurationError","tables","PGlite","generatePostgresMigrationSQL","generatePostgresDDL","drizzle","createPostgresBackend","wrapWithManagedClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA2HA,eAAe,4BAAA,GAAmD;AAChE,EAAA,IAAI;AACF,IAAA,MAAM,OAAA,GAAU,MAAM,OAAO,+BAA+B,CAAA;AAC5D,IAAA,OAAO,OAAA,CAAQ,MAAA;AAAA,EACjB,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,IAAIA,oCAAA;AAAA,MACR,2PAAA;AAAA,MAIA,EAAE,OAAA,EAAS,QAAA,EAAU,UAAA,EAAY,+BAAA,EAAgC;AAAA,MACjE,EAAE,OAAO,KAAA;AAAM,KACjB;AAAA,EACF;AACF;AAoBA,eAAsB,wBAAA,CACpB,OAAA,GAAqC,EAAC,EACH;AACnC,EAAA,MAAMC,OAAAA,GAAS,QAAQ,MAAA,IAAUA,wBAAA;AAMjC,EAAA,MAAM,eAAA,GACJ,QAAQ,MAAA,KAAW,KAAA,GACjB,SACC,OAAA,CAAQ,MAAA,IAAW,MAAM,4BAAA,EAA6B;AAC3D,EAAA,MAAM,gBAAgB,eAAA,KAAoB,MAAA;AAO1C,EAAA,MAAM,MAAA,GAAS,MAAMC,aAAA,CAAO,MAAA,CAAO;AAAA,IACjC,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,eAAA,KAAoB,MAAA,GACtB,EAAC,GACD,EAAE,UAAA,EAAY,EAAE,MAAA,EAAQ,eAAA,EAAgB;AAAE,GAC7C,CAAA;AAID,EAAA,MAAM,YAAA,GACJ,gBACEC,8CAAA,CAA6BF,OAAM,IACnCG,qCAAA,CAAoBH,OAAM,CAAA,CAAE,IAAA,CAAK,MAAM,CAAA;AAC3C,EAAA,MAAM,MAAA,CAAO,KAAK,YAAY,CAAA;AAE9B,EAAA,MAAM,EAAA,GAAKI,iBAAQ,MAAM,CAAA;AACzB,EAAA,MAAM,OAAA,GAAUC,wCAAsB,EAAA,EAAI;AAAA,IACxC,MAAA,EAAAL,OAAAA;AAAA,IACA,GAAI,aAAA,GAAgB,EAAC,GAAI,EAAE,QAAQ,KAAA;AAAM,GAC1C,CAAA;AACD,EAAA,MAAM,cAAA,GAAiBM,sCAAA,CAAqB,OAAA,EAAS,YAAY;AAC/D,IAAA,MAAM,OAAO,KAAA,EAAM;AAAA,EACrB,CAAC,CAAA;AAED,EAAA,OAAO,EAAE,OAAA,EAAS,cAAA,EAAgB,EAAA,EAAI,MAAA,EAAO;AAC/C","file":"pglite.cjs","sourcesContent":["/**\n * Local PGlite backend — Postgres-in-WASM, running in-process.\n *\n * [PGlite](https://pglite.dev/) is a full Postgres compiled to WebAssembly\n * that runs inside the Node/Bun/Deno/browser process with no server and no\n * native addon. This is the batteries-included Postgres analog of\n * `createLocalSqliteBackend`: it constructs a PGlite instance, loads the\n * pgvector extension, runs the schema DDL, and returns a ready\n * `{ backend, db }` pair whose `close()` disposes the engine.\n *\n * `@electric-sql/pglite` is an optional peer dependency. Vector support\n * additionally needs `@electric-sql/pglite-pgvector` (PGlite ≥ 0.5 ships\n * pgvector as a separate package). Install what you need:\n *\n * ```bash\n * pnpm add @electric-sql/pglite @electric-sql/pglite-pgvector\n * ```\n *\n * @example In-memory database (default, vector enabled)\n * ```typescript\n * import { createLocalPgliteBackend } from \"@nicia-ai/typegraph/postgres/pglite\";\n *\n * const { backend } = await createLocalPgliteBackend();\n * const store = createStore(graph, backend);\n * ```\n *\n * @example Persistent on-disk database\n * ```typescript\n * const { backend, db } = await createLocalPgliteBackend({ dataDir: \"./pgdata\" });\n * ```\n *\n * @example No vector support (skip the pgvector extension)\n * ```typescript\n * const { backend } = await createLocalPgliteBackend({ vector: false });\n * ```\n *\n * PGlite is single-connection and serial: there is no pooling, so concurrent\n * `store.transaction()` calls queue rather than run in parallel.\n */\nimport { type Extension, PGlite } from \"@electric-sql/pglite\";\nimport { drizzle, type PgliteDatabase } from \"drizzle-orm/pglite\";\n\nimport { ConfigurationError } from \"../../errors\";\nimport {\n generatePostgresDDL,\n generatePostgresMigrationSQL,\n} from \"../drizzle/ddl\";\nimport {\n createPostgresBackend,\n type PostgresTables,\n tables as defaultTables,\n} from \"../drizzle/postgres\";\nimport { type GraphBackend, wrapWithManagedClose } from \"../types\";\n\n// ============================================================\n// Types\n// ============================================================\n\n/**\n * Options for creating a local PGlite backend.\n */\nexport type LocalPgliteBackendOptions = Readonly<{\n /**\n * PGlite data directory. Omit for an in-memory database (the default).\n * Accepts any PGlite data-dir spec: a filesystem path (`\"./pgdata\"`),\n * `\"memory://\"`, or a browser/runtime-specific scheme such as\n * `\"idb://my-db\"`.\n */\n dataDir?: string;\n\n /**\n * Custom table definitions. Defaults to standard TypeGraph table names.\n */\n tables?: PostgresTables;\n\n /**\n * Controls the pgvector stack:\n *\n * - **omitted (default)** — load pgvector from `@electric-sql/pglite-pgvector`\n * and run `CREATE EXTENSION vector`, so embedding fields work out of the\n * box. Throws a {@link ConfigurationError} if the package isn't installed.\n * - **`false`** — skip the extension entirely; the backend advertises no\n * vector capability (mirroring a SQLite connection without sqlite-vec).\n * Use when a graph carries no embeddings, or to avoid the extension dep.\n * - **a PGlite `Extension`** — bring your own pgvector build or custom\n * extension packaging. Decouples this helper from a specific pgvector\n * package version.\n */\n vector?: false | Extension;\n}>;\n\n/**\n * Result of creating a local PGlite backend.\n */\nexport type LocalPgliteBackendResult = Readonly<{\n /**\n * The GraphBackend instance for use with createStore. Its `close()`\n * disposes the underlying PGlite engine.\n */\n backend: GraphBackend;\n\n /**\n * The underlying Drizzle database instance. Useful for direct SQL access.\n */\n db: PgliteDatabase;\n\n /**\n * The raw PGlite instance, for engine-specific operations such as\n * `dumpDataDir()` / `clone()` not surfaced through Drizzle.\n */\n client: PGlite;\n}>;\n\n// ============================================================\n// Vector extension loading\n// ============================================================\n\n/**\n * Dynamically loads the default pgvector extension from\n * `@electric-sql/pglite-pgvector`. Kept as a runtime import so the package\n * stays an optional peer dependency — callers using `vector: false` or\n * supplying their own extension never need it installed.\n */\nasync function loadDefaultPgvectorExtension(): Promise<Extension> {\n try {\n const module_ = await import(\"@electric-sql/pglite-pgvector\");\n return module_.vector;\n } catch (error) {\n throw new ConfigurationError(\n \"createLocalPgliteBackend needs the pgvector extension but \" +\n \"`@electric-sql/pglite-pgvector` could not be loaded. Install it \" +\n \"(`pnpm add @electric-sql/pglite-pgvector`), pass your own `vector` \" +\n \"extension, or set `vector: false` to disable vector support.\",\n { backend: \"pglite\", dependency: \"@electric-sql/pglite-pgvector\" },\n { cause: error },\n );\n }\n}\n\n// ============================================================\n// Factory Function\n// ============================================================\n\n/**\n * Creates a TypeGraph backend backed by an in-process PGlite database.\n *\n * Constructs the PGlite engine (loading pgvector unless disabled), executes\n * the schema DDL, and wires the standard Postgres backend. The returned\n * backend owns the engine: call `backend.close()` to dispose it.\n *\n * For production Postgres, or a PGlite instance you construct yourself,\n * use `createPostgresBackend` directly with your own Drizzle database — the\n * execution fast path detects PGlite and routes it correctly.\n *\n * @param options - Configuration options\n * @returns Backend, Drizzle database, and raw PGlite client\n */\nexport async function createLocalPgliteBackend(\n options: LocalPgliteBackendOptions = {},\n): Promise<LocalPgliteBackendResult> {\n const tables = options.tables ?? defaultTables;\n\n // pgvector lives in the WASM instance, so the extension must be passed at\n // construction — `CREATE EXTENSION vector` alone can't pull it in. An\n // explicitly supplied extension wins; `false` disables; otherwise load the\n // default package.\n const vectorExtension =\n options.vector === false ?\n undefined\n : (options.vector ?? (await loadDefaultPgvectorExtension()));\n const vectorEnabled = vectorExtension !== undefined;\n\n // Construct via the single options-object form (passing `dataDir` as a\n // field), not the positional `create(dataDir, options)` overload: with a\n // leading `undefined` dataDir, that overload silently drops `extensions`\n // (\"extension vector is not available\"). The options form loads them for\n // both the in-memory and on-disk cases.\n const client = await PGlite.create({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(vectorExtension === undefined ?\n {}\n : { extensions: { vector: vectorExtension } }),\n });\n\n // `exec` runs a multi-statement batch (DDL + the pgvector `CREATE\n // EXTENSION` when enabled) in one round trip.\n const migrationSql =\n vectorEnabled ?\n generatePostgresMigrationSQL(tables)\n : generatePostgresDDL(tables).join(\"\\n\\n\");\n await client.exec(migrationSql);\n\n const db = drizzle(client);\n const backend = createPostgresBackend(db, {\n tables,\n ...(vectorEnabled ? {} : { vector: false }),\n });\n const managedBackend = wrapWithManagedClose(backend, async () => {\n await client.close();\n });\n\n return { backend: managedBackend, db, client };\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Extension, PGlite } from '@electric-sql/pglite';
|
|
2
2
|
import { PgliteDatabase } from 'drizzle-orm/pglite';
|
|
3
|
-
import { G as GraphBackend } from '../../
|
|
4
|
-
import { P as PostgresTables } from '../../postgres-
|
|
5
|
-
import 'zod';
|
|
6
|
-
import '../../extension-types-YGFJPrzK.cjs';
|
|
3
|
+
import { G as GraphBackend } from '../../fulltext-strategy-CDkSSYhq.cjs';
|
|
4
|
+
import { P as PostgresTables } from '../../postgres-CfEqsRMp.cjs';
|
|
7
5
|
import 'drizzle-orm';
|
|
6
|
+
import '../../extension-types-ixRpJVUp.cjs';
|
|
7
|
+
import 'zod';
|
|
8
8
|
import 'drizzle-orm/pg-core';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Extension, PGlite } from '@electric-sql/pglite';
|
|
2
2
|
import { PgliteDatabase } from 'drizzle-orm/pglite';
|
|
3
|
-
import { G as GraphBackend } from '../../
|
|
4
|
-
import { P as PostgresTables } from '../../postgres-
|
|
5
|
-
import 'zod';
|
|
6
|
-
import '../../extension-types-YGFJPrzK.js';
|
|
3
|
+
import { G as GraphBackend } from '../../fulltext-strategy-B57yvC5Q.js';
|
|
4
|
+
import { P as PostgresTables } from '../../postgres-DQ5R6rzV.js';
|
|
7
5
|
import 'drizzle-orm';
|
|
6
|
+
import '../../extension-types-ixRpJVUp.js';
|
|
7
|
+
import 'zod';
|
|
8
8
|
import 'drizzle-orm/pg-core';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { createPostgresBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import {
|
|
13
|
-
import '../../chunk-
|
|
1
|
+
import { createPostgresBackend } from '../../chunk-RGP33ZJ5.js';
|
|
2
|
+
import { tables, generatePostgresMigrationSQL, generatePostgresDDL } from '../../chunk-WDBCBWC4.js';
|
|
3
|
+
import '../../chunk-Q5TEXCTB.js';
|
|
4
|
+
import '../../chunk-DFVLCOP6.js';
|
|
5
|
+
import '../../chunk-VHMPG6UL.js';
|
|
6
|
+
import '../../chunk-6FR2MMS6.js';
|
|
7
|
+
import '../../chunk-55MZDDZV.js';
|
|
8
|
+
import '../../chunk-UR7W5YQK.js';
|
|
9
|
+
import '../../chunk-W63OVYY4.js';
|
|
10
|
+
import '../../chunk-FPIZFYHE.js';
|
|
11
|
+
import '../../chunk-UT3S4SEN.js';
|
|
12
|
+
import { wrapWithManagedClose } from '../../chunk-JBTOYDMN.js';
|
|
13
|
+
import '../../chunk-I7ZUZKFD.js';
|
|
14
|
+
import '../../chunk-OHMP6N2J.js';
|
|
15
|
+
import '../../chunk-SNXVDZAJ.js';
|
|
16
|
+
import { ConfigurationError } from '../../chunk-MP2JQKSG.js';
|
|
17
|
+
import '../../chunk-G6Q5UM7U.js';
|
|
14
18
|
import { PGlite } from '@electric-sql/pglite';
|
|
15
19
|
import { drizzle } from 'drizzle-orm/pglite';
|
|
16
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/backend/postgres/pglite.ts"],"names":["tables"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/backend/postgres/pglite.ts"],"names":["tables"],"mappings":";;;;;;;;;;;;;;;;;;;;AA2HA,eAAe,4BAAA,GAAmD;AAChE,EAAA,IAAI;AACF,IAAA,MAAM,OAAA,GAAU,MAAM,OAAO,+BAA+B,CAAA;AAC5D,IAAA,OAAO,OAAA,CAAQ,MAAA;AAAA,EACjB,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,IAAI,kBAAA;AAAA,MACR,2PAAA;AAAA,MAIA,EAAE,OAAA,EAAS,QAAA,EAAU,UAAA,EAAY,+BAAA,EAAgC;AAAA,MACjE,EAAE,OAAO,KAAA;AAAM,KACjB;AAAA,EACF;AACF;AAoBA,eAAsB,wBAAA,CACpB,OAAA,GAAqC,EAAC,EACH;AACnC,EAAA,MAAMA,OAAAA,GAAS,QAAQ,MAAA,IAAU,MAAA;AAMjC,EAAA,MAAM,eAAA,GACJ,QAAQ,MAAA,KAAW,KAAA,GACjB,SACC,OAAA,CAAQ,MAAA,IAAW,MAAM,4BAAA,EAA6B;AAC3D,EAAA,MAAM,gBAAgB,eAAA,KAAoB,MAAA;AAO1C,EAAA,MAAM,MAAA,GAAS,MAAM,MAAA,CAAO,MAAA,CAAO;AAAA,IACjC,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,eAAA,KAAoB,MAAA,GACtB,EAAC,GACD,EAAE,UAAA,EAAY,EAAE,MAAA,EAAQ,eAAA,EAAgB;AAAE,GAC7C,CAAA;AAID,EAAA,MAAM,YAAA,GACJ,gBACE,4BAAA,CAA6BA,OAAM,IACnC,mBAAA,CAAoBA,OAAM,CAAA,CAAE,IAAA,CAAK,MAAM,CAAA;AAC3C,EAAA,MAAM,MAAA,CAAO,KAAK,YAAY,CAAA;AAE9B,EAAA,MAAM,EAAA,GAAK,QAAQ,MAAM,CAAA;AACzB,EAAA,MAAM,OAAA,GAAU,sBAAsB,EAAA,EAAI;AAAA,IACxC,MAAA,EAAAA,OAAAA;AAAA,IACA,GAAI,aAAA,GAAgB,EAAC,GAAI,EAAE,QAAQ,KAAA;AAAM,GAC1C,CAAA;AACD,EAAA,MAAM,cAAA,GAAiB,oBAAA,CAAqB,OAAA,EAAS,YAAY;AAC/D,IAAA,MAAM,OAAO,KAAA,EAAM;AAAA,EACrB,CAAC,CAAA;AAED,EAAA,OAAO,EAAE,OAAA,EAAS,cAAA,EAAgB,EAAA,EAAI,MAAA,EAAO;AAC/C","file":"pglite.js","sourcesContent":["/**\n * Local PGlite backend — Postgres-in-WASM, running in-process.\n *\n * [PGlite](https://pglite.dev/) is a full Postgres compiled to WebAssembly\n * that runs inside the Node/Bun/Deno/browser process with no server and no\n * native addon. This is the batteries-included Postgres analog of\n * `createLocalSqliteBackend`: it constructs a PGlite instance, loads the\n * pgvector extension, runs the schema DDL, and returns a ready\n * `{ backend, db }` pair whose `close()` disposes the engine.\n *\n * `@electric-sql/pglite` is an optional peer dependency. Vector support\n * additionally needs `@electric-sql/pglite-pgvector` (PGlite ≥ 0.5 ships\n * pgvector as a separate package). Install what you need:\n *\n * ```bash\n * pnpm add @electric-sql/pglite @electric-sql/pglite-pgvector\n * ```\n *\n * @example In-memory database (default, vector enabled)\n * ```typescript\n * import { createLocalPgliteBackend } from \"@nicia-ai/typegraph/postgres/pglite\";\n *\n * const { backend } = await createLocalPgliteBackend();\n * const store = createStore(graph, backend);\n * ```\n *\n * @example Persistent on-disk database\n * ```typescript\n * const { backend, db } = await createLocalPgliteBackend({ dataDir: \"./pgdata\" });\n * ```\n *\n * @example No vector support (skip the pgvector extension)\n * ```typescript\n * const { backend } = await createLocalPgliteBackend({ vector: false });\n * ```\n *\n * PGlite is single-connection and serial: there is no pooling, so concurrent\n * `store.transaction()` calls queue rather than run in parallel.\n */\nimport { type Extension, PGlite } from \"@electric-sql/pglite\";\nimport { drizzle, type PgliteDatabase } from \"drizzle-orm/pglite\";\n\nimport { ConfigurationError } from \"../../errors\";\nimport {\n generatePostgresDDL,\n generatePostgresMigrationSQL,\n} from \"../drizzle/ddl\";\nimport {\n createPostgresBackend,\n type PostgresTables,\n tables as defaultTables,\n} from \"../drizzle/postgres\";\nimport { type GraphBackend, wrapWithManagedClose } from \"../types\";\n\n// ============================================================\n// Types\n// ============================================================\n\n/**\n * Options for creating a local PGlite backend.\n */\nexport type LocalPgliteBackendOptions = Readonly<{\n /**\n * PGlite data directory. Omit for an in-memory database (the default).\n * Accepts any PGlite data-dir spec: a filesystem path (`\"./pgdata\"`),\n * `\"memory://\"`, or a browser/runtime-specific scheme such as\n * `\"idb://my-db\"`.\n */\n dataDir?: string;\n\n /**\n * Custom table definitions. Defaults to standard TypeGraph table names.\n */\n tables?: PostgresTables;\n\n /**\n * Controls the pgvector stack:\n *\n * - **omitted (default)** — load pgvector from `@electric-sql/pglite-pgvector`\n * and run `CREATE EXTENSION vector`, so embedding fields work out of the\n * box. Throws a {@link ConfigurationError} if the package isn't installed.\n * - **`false`** — skip the extension entirely; the backend advertises no\n * vector capability (mirroring a SQLite connection without sqlite-vec).\n * Use when a graph carries no embeddings, or to avoid the extension dep.\n * - **a PGlite `Extension`** — bring your own pgvector build or custom\n * extension packaging. Decouples this helper from a specific pgvector\n * package version.\n */\n vector?: false | Extension;\n}>;\n\n/**\n * Result of creating a local PGlite backend.\n */\nexport type LocalPgliteBackendResult = Readonly<{\n /**\n * The GraphBackend instance for use with createStore. Its `close()`\n * disposes the underlying PGlite engine.\n */\n backend: GraphBackend;\n\n /**\n * The underlying Drizzle database instance. Useful for direct SQL access.\n */\n db: PgliteDatabase;\n\n /**\n * The raw PGlite instance, for engine-specific operations such as\n * `dumpDataDir()` / `clone()` not surfaced through Drizzle.\n */\n client: PGlite;\n}>;\n\n// ============================================================\n// Vector extension loading\n// ============================================================\n\n/**\n * Dynamically loads the default pgvector extension from\n * `@electric-sql/pglite-pgvector`. Kept as a runtime import so the package\n * stays an optional peer dependency — callers using `vector: false` or\n * supplying their own extension never need it installed.\n */\nasync function loadDefaultPgvectorExtension(): Promise<Extension> {\n try {\n const module_ = await import(\"@electric-sql/pglite-pgvector\");\n return module_.vector;\n } catch (error) {\n throw new ConfigurationError(\n \"createLocalPgliteBackend needs the pgvector extension but \" +\n \"`@electric-sql/pglite-pgvector` could not be loaded. Install it \" +\n \"(`pnpm add @electric-sql/pglite-pgvector`), pass your own `vector` \" +\n \"extension, or set `vector: false` to disable vector support.\",\n { backend: \"pglite\", dependency: \"@electric-sql/pglite-pgvector\" },\n { cause: error },\n );\n }\n}\n\n// ============================================================\n// Factory Function\n// ============================================================\n\n/**\n * Creates a TypeGraph backend backed by an in-process PGlite database.\n *\n * Constructs the PGlite engine (loading pgvector unless disabled), executes\n * the schema DDL, and wires the standard Postgres backend. The returned\n * backend owns the engine: call `backend.close()` to dispose it.\n *\n * For production Postgres, or a PGlite instance you construct yourself,\n * use `createPostgresBackend` directly with your own Drizzle database — the\n * execution fast path detects PGlite and routes it correctly.\n *\n * @param options - Configuration options\n * @returns Backend, Drizzle database, and raw PGlite client\n */\nexport async function createLocalPgliteBackend(\n options: LocalPgliteBackendOptions = {},\n): Promise<LocalPgliteBackendResult> {\n const tables = options.tables ?? defaultTables;\n\n // pgvector lives in the WASM instance, so the extension must be passed at\n // construction — `CREATE EXTENSION vector` alone can't pull it in. An\n // explicitly supplied extension wins; `false` disables; otherwise load the\n // default package.\n const vectorExtension =\n options.vector === false ?\n undefined\n : (options.vector ?? (await loadDefaultPgvectorExtension()));\n const vectorEnabled = vectorExtension !== undefined;\n\n // Construct via the single options-object form (passing `dataDir` as a\n // field), not the positional `create(dataDir, options)` overload: with a\n // leading `undefined` dataDir, that overload silently drops `extensions`\n // (\"extension vector is not available\"). The options form loads them for\n // both the in-memory and on-disk cases.\n const client = await PGlite.create({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(vectorExtension === undefined ?\n {}\n : { extensions: { vector: vectorExtension } }),\n });\n\n // `exec` runs a multi-statement batch (DDL + the pgvector `CREATE\n // EXTENSION` when enabled) in one round trip.\n const migrationSql =\n vectorEnabled ?\n generatePostgresMigrationSQL(tables)\n : generatePostgresDDL(tables).join(\"\\n\\n\");\n await client.exec(migrationSql);\n\n const db = drizzle(client);\n const backend = createPostgresBackend(db, {\n tables,\n ...(vectorEnabled ? {} : { vector: false }),\n });\n const managedBackend = wrapWithManagedClose(backend, async () => {\n await client.close();\n });\n\n return { backend: managedBackend, db, client };\n}\n"]}
|
|
@@ -1,66 +1,69 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
11
|
-
require('../../chunk-
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
3
|
+
var chunkO7UN7OXA_cjs = require('../../chunk-O7UN7OXA.cjs');
|
|
4
|
+
var chunkEM3CWPND_cjs = require('../../chunk-EM3CWPND.cjs');
|
|
5
|
+
var chunkFN35DLCN_cjs = require('../../chunk-FN35DLCN.cjs');
|
|
6
|
+
require('../../chunk-S55OV6PW.cjs');
|
|
7
|
+
require('../../chunk-CTTSDJLY.cjs');
|
|
8
|
+
require('../../chunk-ACSVZPK7.cjs');
|
|
9
|
+
require('../../chunk-TEDRJXOG.cjs');
|
|
10
|
+
require('../../chunk-D7ZEOS56.cjs');
|
|
11
|
+
require('../../chunk-4TOD4LBZ.cjs');
|
|
12
|
+
require('../../chunk-BLZDPRXT.cjs');
|
|
13
|
+
require('../../chunk-7YSP4V4R.cjs');
|
|
14
|
+
require('../../chunk-SJDMVITW.cjs');
|
|
15
|
+
require('../../chunk-LGEALRC6.cjs');
|
|
16
|
+
require('../../chunk-TDXIBCGY.cjs');
|
|
14
17
|
|
|
15
18
|
|
|
16
19
|
|
|
17
20
|
Object.defineProperty(exports, "createSqliteBackend", {
|
|
18
21
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkO7UN7OXA_cjs.createSqliteBackend; }
|
|
20
23
|
});
|
|
21
24
|
Object.defineProperty(exports, "generateSqliteDDL", {
|
|
22
25
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkEM3CWPND_cjs.generateSqliteDDL; }
|
|
24
27
|
});
|
|
25
28
|
Object.defineProperty(exports, "generateSqliteMigrationSQL", {
|
|
26
29
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkEM3CWPND_cjs.generateSqliteMigrationSQL; }
|
|
28
31
|
});
|
|
29
32
|
Object.defineProperty(exports, "createSqliteTables", {
|
|
30
33
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkFN35DLCN_cjs.createSqliteTables; }
|
|
32
35
|
});
|
|
33
36
|
Object.defineProperty(exports, "edges", {
|
|
34
37
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkFN35DLCN_cjs.edges; }
|
|
36
39
|
});
|
|
37
40
|
Object.defineProperty(exports, "nodes", {
|
|
38
41
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkFN35DLCN_cjs.nodes; }
|
|
40
43
|
});
|
|
41
44
|
Object.defineProperty(exports, "recordedClock", {
|
|
42
45
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkFN35DLCN_cjs.recordedClock; }
|
|
44
47
|
});
|
|
45
48
|
Object.defineProperty(exports, "recordedEdges", {
|
|
46
49
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkFN35DLCN_cjs.recordedEdges; }
|
|
48
51
|
});
|
|
49
52
|
Object.defineProperty(exports, "recordedNodes", {
|
|
50
53
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkFN35DLCN_cjs.recordedNodes; }
|
|
52
55
|
});
|
|
53
56
|
Object.defineProperty(exports, "schemaVersions", {
|
|
54
57
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkFN35DLCN_cjs.schemaVersions; }
|
|
56
59
|
});
|
|
57
60
|
Object.defineProperty(exports, "tables", {
|
|
58
61
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkFN35DLCN_cjs.tables; }
|
|
60
63
|
});
|
|
61
64
|
Object.defineProperty(exports, "uniques", {
|
|
62
65
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkFN35DLCN_cjs.uniques; }
|
|
64
67
|
});
|
|
65
68
|
//# sourceMappingURL=index.cjs.map
|
|
66
69
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { S as SqliteExecutionProfileHints, F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities,
|
|
2
|
-
export {
|
|
3
|
-
import { S as SqliteTables } from '../../sqlite-
|
|
4
|
-
export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-
|
|
5
|
-
export {
|
|
6
|
-
import 'zod';
|
|
7
|
-
import '../../extension-types-YGFJPrzK.cjs';
|
|
1
|
+
import { S as SqliteExecutionProfileHints, F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, a as AnySqliteDatabase, G as GraphBackend } from '../../fulltext-strategy-CDkSSYhq.cjs';
|
|
2
|
+
export { b as SqliteTransactionMode } from '../../fulltext-strategy-CDkSSYhq.cjs';
|
|
3
|
+
import { S as SqliteTables } from '../../sqlite-D7zBinNR.cjs';
|
|
4
|
+
export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-D7zBinNR.cjs';
|
|
5
|
+
export { b as generateSqliteDDL, c as generateSqliteMigrationSQL } from '../../ddl-CZz7a0E8.cjs';
|
|
8
6
|
import 'drizzle-orm';
|
|
7
|
+
import '../../extension-types-ixRpJVUp.cjs';
|
|
8
|
+
import 'zod';
|
|
9
9
|
import 'drizzle-orm/pg-core';
|
|
10
10
|
import 'drizzle-orm/sqlite-core';
|
|
11
|
-
import '../../postgres-
|
|
11
|
+
import '../../postgres-CfEqsRMp.cjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Options for creating a SQLite backend.
|