@nicia-ai/typegraph 0.46.2 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/dist/backend/drizzle/indexes.cjs +9 -9
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +5 -5
- package/dist/backend/index.cjs +58 -49
- package/dist/backend/index.d.cts +37 -55
- package/dist/backend/index.d.ts +37 -55
- package/dist/backend/index.js +11 -10
- package/dist/backend/postgres/index.cjs +27 -26
- package/dist/backend/postgres/index.d.cts +21 -7
- package/dist/backend/postgres/index.d.ts +21 -7
- package/dist/backend/postgres/index.js +14 -13
- package/dist/backend/postgres/pglite-store.cjs +34 -33
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +8 -8
- package/dist/backend/postgres/pglite-store.d.ts +8 -8
- package/dist/backend/postgres/pglite-store.js +30 -29
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +16 -15
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +15 -14
- package/dist/backend/sqlite/index.cjs +24 -23
- package/dist/backend/sqlite/index.d.cts +20 -7
- package/dist/backend/sqlite/index.d.ts +20 -7
- package/dist/backend/sqlite/index.js +12 -11
- package/dist/backend/sqlite/libsql.cjs +19 -18
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +14 -13
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +35 -34
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- package/dist/backend/sqlite/local-store.d.cts +8 -8
- package/dist/backend/sqlite/local-store.d.ts +8 -8
- package/dist/backend/sqlite/local-store.js +31 -30
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +17 -16
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +15 -14
- package/dist/{chunk-TCT66A7N.cjs → chunk-26YKDNUD.cjs} +10 -10
- package/dist/{chunk-TCT66A7N.cjs.map → chunk-26YKDNUD.cjs.map} +1 -1
- package/dist/{chunk-E4OSGBCM.cjs → chunk-2HIYYMWY.cjs} +139 -136
- package/dist/chunk-2HIYYMWY.cjs.map +1 -0
- package/dist/chunk-2QGYQBS2.cjs +161 -0
- package/dist/chunk-2QGYQBS2.cjs.map +1 -0
- package/dist/{chunk-GWXXHOLU.js → chunk-2SYZXD54.js} +21 -18
- package/dist/chunk-2SYZXD54.js.map +1 -0
- package/dist/{chunk-KA4L2NZ3.js → chunk-2TYSSBU5.js} +14 -14
- package/dist/{chunk-KA4L2NZ3.js.map → chunk-2TYSSBU5.js.map} +1 -1
- package/dist/{chunk-QOJ2L2AD.js → chunk-3DMMGT6S.js} +3 -3
- package/dist/{chunk-QOJ2L2AD.js.map → chunk-3DMMGT6S.js.map} +1 -1
- package/dist/{chunk-F36KZDFX.cjs → chunk-3FPR224C.cjs} +91 -91
- package/dist/{chunk-F36KZDFX.cjs.map → chunk-3FPR224C.cjs.map} +1 -1
- package/dist/{chunk-32UETY6S.cjs → chunk-3KOY4FH3.cjs} +207 -28
- package/dist/chunk-3KOY4FH3.cjs.map +1 -0
- package/dist/{chunk-QU7QLJA4.cjs → chunk-3U5ABFDW.cjs} +26 -26
- package/dist/{chunk-QU7QLJA4.cjs.map → chunk-3U5ABFDW.cjs.map} +1 -1
- package/dist/{chunk-RFDEYLIK.js → chunk-4WMMBDS5.js} +7 -7
- package/dist/chunk-4WMMBDS5.js.map +1 -0
- package/dist/{chunk-R7EWHKID.js → chunk-5K2BKEBD.js} +19 -145
- package/dist/chunk-5K2BKEBD.js.map +1 -0
- package/dist/chunk-5PRKMB24.cjs +124 -0
- package/dist/chunk-5PRKMB24.cjs.map +1 -0
- package/dist/chunk-6LN7FIVU.js +107 -0
- package/dist/chunk-6LN7FIVU.js.map +1 -0
- package/dist/{chunk-D6GCNNMK.cjs → chunk-6NGW27EO.cjs} +10 -10
- package/dist/{chunk-D6GCNNMK.cjs.map → chunk-6NGW27EO.cjs.map} +1 -1
- package/dist/{chunk-WHS2Y43J.js → chunk-6SWPJEYN.js} +5 -5
- package/dist/{chunk-WHS2Y43J.js.map → chunk-6SWPJEYN.js.map} +1 -1
- package/dist/{chunk-7TKNK32B.js → chunk-7SQSZN2J.js} +5 -5
- package/dist/{chunk-7TKNK32B.js.map → chunk-7SQSZN2J.js.map} +1 -1
- package/dist/{chunk-UTVQPZPN.cjs → chunk-7XUYFFR4.cjs} +20 -20
- package/dist/chunk-7XUYFFR4.cjs.map +1 -0
- package/dist/{chunk-KXSMF6PL.js → chunk-ACGSAMD3.js} +39 -34
- package/dist/chunk-ACGSAMD3.js.map +1 -0
- package/dist/{chunk-PYKF7UIL.cjs → chunk-AOSSQDVO.cjs} +13 -13
- package/dist/{chunk-PYKF7UIL.cjs.map → chunk-AOSSQDVO.cjs.map} +1 -1
- package/dist/{chunk-AT3MLMJV.js → chunk-AX6JGVTZ.js} +91 -20
- package/dist/chunk-AX6JGVTZ.js.map +1 -0
- package/dist/{chunk-WA64ZSCA.cjs → chunk-BFUOME67.cjs} +11 -11
- package/dist/{chunk-WA64ZSCA.cjs.map → chunk-BFUOME67.cjs.map} +1 -1
- package/dist/{chunk-YQ4JONWE.js → chunk-BRRP76WO.js} +401 -131
- package/dist/chunk-BRRP76WO.js.map +1 -0
- package/dist/{chunk-FCIZNUW5.js → chunk-CHAOFCHV.js} +3 -3
- package/dist/{chunk-FCIZNUW5.js.map → chunk-CHAOFCHV.js.map} +1 -1
- package/dist/chunk-CICO5GXD.cjs +12 -0
- package/dist/{chunk-73MWKDFK.cjs.map → chunk-CICO5GXD.cjs.map} +1 -1
- package/dist/{chunk-S3G5VLSW.js → chunk-CT3ZKTOF.js} +7 -6
- package/dist/chunk-CT3ZKTOF.js.map +1 -0
- package/dist/{chunk-SXWLLQ3D.js → chunk-D5R42W5D.js} +4 -4
- package/dist/{chunk-SXWLLQ3D.js.map → chunk-D5R42W5D.js.map} +1 -1
- package/dist/{chunk-BZZI7B43.cjs → chunk-DO7SAMEK.cjs} +47 -47
- package/dist/{chunk-BZZI7B43.cjs.map → chunk-DO7SAMEK.cjs.map} +1 -1
- package/dist/chunk-DZAICA5J.js +147 -0
- package/dist/chunk-DZAICA5J.js.map +1 -0
- package/dist/{chunk-2ZWM2RFH.cjs → chunk-EDN4Y4ZG.cjs} +9 -9
- package/dist/{chunk-2ZWM2RFH.cjs.map → chunk-EDN4Y4ZG.cjs.map} +1 -1
- package/dist/{chunk-A4R3H7RU.cjs → chunk-EZEEWCFJ.cjs} +264 -361
- package/dist/chunk-EZEEWCFJ.cjs.map +1 -0
- package/dist/{chunk-BEB4OFZF.cjs → chunk-FA2AFWLP.cjs} +51 -59
- package/dist/chunk-FA2AFWLP.cjs.map +1 -0
- package/dist/{chunk-ZBVZ7HXD.cjs → chunk-FQPEMEWX.cjs} +12 -12
- package/dist/{chunk-ZBVZ7HXD.cjs.map → chunk-FQPEMEWX.cjs.map} +1 -1
- package/dist/{chunk-LNIWCQR4.js → chunk-GLHXM7C4.js} +3 -3
- package/dist/{chunk-LNIWCQR4.js.map → chunk-GLHXM7C4.js.map} +1 -1
- package/dist/{chunk-6BD6ZBKT.cjs → chunk-GYEG3ZLZ.cjs} +10 -10
- package/dist/{chunk-6BD6ZBKT.cjs.map → chunk-GYEG3ZLZ.cjs.map} +1 -1
- package/dist/{chunk-A7NMUYEL.cjs → chunk-HDL2ARHX.cjs} +27 -27
- package/dist/{chunk-A7NMUYEL.cjs.map → chunk-HDL2ARHX.cjs.map} +1 -1
- package/dist/{chunk-5ZJOB5YS.js → chunk-HEV35TGT.js} +4 -4
- package/dist/{chunk-5ZJOB5YS.js.map → chunk-HEV35TGT.js.map} +1 -1
- package/dist/{chunk-LHYSY6SE.js → chunk-I4GAZH5Z.js} +186 -9
- package/dist/chunk-I4GAZH5Z.js.map +1 -0
- package/dist/{chunk-BQM5P2NO.cjs → chunk-JB6T4GLL.cjs} +260 -223
- package/dist/chunk-JB6T4GLL.cjs.map +1 -0
- package/dist/{chunk-QPOQX2DI.cjs → chunk-JFRT7S3B.cjs} +1026 -369
- package/dist/chunk-JFRT7S3B.cjs.map +1 -0
- package/dist/{chunk-JCNTKRAK.js → chunk-JONXFAPO.js} +5 -5
- package/dist/{chunk-JCNTKRAK.js.map → chunk-JONXFAPO.js.map} +1 -1
- package/dist/{chunk-WEJHA7AD.js → chunk-KF6K7TGH.js} +109 -75
- package/dist/chunk-KF6K7TGH.js.map +1 -0
- package/dist/{chunk-EDJDDY6H.js → chunk-KKBDXCLQ.js} +4 -4
- package/dist/{chunk-EDJDDY6H.js.map → chunk-KKBDXCLQ.js.map} +1 -1
- package/dist/{chunk-ZHOAZD7Q.cjs → chunk-L3LQNR34.cjs} +161 -161
- package/dist/{chunk-ZHOAZD7Q.cjs.map → chunk-L3LQNR34.cjs.map} +1 -1
- package/dist/{chunk-AF3TWL5C.cjs → chunk-LRQKXRXO.cjs} +4 -4
- package/dist/{chunk-AF3TWL5C.cjs.map → chunk-LRQKXRXO.cjs.map} +1 -1
- package/dist/chunk-MKJ4KXL5.cjs +12 -0
- package/dist/{chunk-6LAXM4J2.cjs.map → chunk-MKJ4KXL5.cjs.map} +1 -1
- package/dist/{chunk-KCH7WQA5.cjs → chunk-MRDBBHIZ.cjs} +48 -2
- package/dist/chunk-MRDBBHIZ.cjs.map +1 -0
- package/dist/{chunk-FXNHZFZV.js → chunk-MYKHJI2J.js} +3 -3
- package/dist/{chunk-FXNHZFZV.js.map → chunk-MYKHJI2J.js.map} +1 -1
- package/dist/{chunk-Z43KWLZF.js → chunk-NACVVDWB.js} +213 -12
- package/dist/chunk-NACVVDWB.js.map +1 -0
- package/dist/{chunk-72WUT4GG.js → chunk-NVY5CJFP.js} +4 -4
- package/dist/{chunk-72WUT4GG.js.map → chunk-NVY5CJFP.js.map} +1 -1
- package/dist/{chunk-WYFB7BN3.js → chunk-OD4SSY2U.js} +166 -48
- package/dist/chunk-OD4SSY2U.js.map +1 -0
- package/dist/{chunk-ZIH42CRX.cjs → chunk-OI2GQ25X.cjs} +7 -7
- package/dist/{chunk-ZIH42CRX.cjs.map → chunk-OI2GQ25X.cjs.map} +1 -1
- package/dist/{chunk-AU3IJNNP.js → chunk-OMZ37BM2.js} +5 -5
- package/dist/{chunk-AU3IJNNP.js.map → chunk-OMZ37BM2.js.map} +1 -1
- package/dist/{chunk-C4DYN2SD.cjs → chunk-OORXGFL5.cjs} +48 -48
- package/dist/{chunk-C4DYN2SD.cjs.map → chunk-OORXGFL5.cjs.map} +1 -1
- package/dist/{chunk-HNYLMPQQ.cjs → chunk-OTUPEF2W.cjs} +149 -78
- package/dist/chunk-OTUPEF2W.cjs.map +1 -0
- package/dist/{chunk-BRN3RGD2.js → chunk-OVI7IXYX.js} +3 -3
- package/dist/{chunk-BRN3RGD2.js.map → chunk-OVI7IXYX.js.map} +1 -1
- package/dist/{chunk-WMKEGJG4.js → chunk-P6YLZTRE.js} +3 -3
- package/dist/{chunk-WMKEGJG4.js.map → chunk-P6YLZTRE.js.map} +1 -1
- package/dist/{chunk-C2ZP5YS6.cjs → chunk-PFBRJBUL.cjs} +278 -160
- package/dist/chunk-PFBRJBUL.cjs.map +1 -0
- package/dist/{chunk-EJSYWAEV.js → chunk-QTD6HX4O.js} +5 -5
- package/dist/{chunk-EJSYWAEV.js.map → chunk-QTD6HX4O.js.map} +1 -1
- package/dist/{chunk-JL5UEBWT.cjs → chunk-ROR5ZR6A.cjs} +45 -45
- package/dist/{chunk-JL5UEBWT.cjs.map → chunk-ROR5ZR6A.cjs.map} +1 -1
- package/dist/{chunk-EDHV4CBU.js → chunk-S5TERQVW.js} +37 -134
- package/dist/chunk-S5TERQVW.js.map +1 -0
- package/dist/{chunk-FSLTU57P.js → chunk-SDBBMD4N.js} +3 -3
- package/dist/{chunk-FSLTU57P.js.map → chunk-SDBBMD4N.js.map} +1 -1
- package/dist/{chunk-36LIJXWC.js → chunk-SHFBB23Q.js} +4 -4
- package/dist/{chunk-36LIJXWC.js.map → chunk-SHFBB23Q.js.map} +1 -1
- package/dist/chunk-SIT26LAZ.cjs +614 -0
- package/dist/chunk-SIT26LAZ.cjs.map +1 -0
- package/dist/{chunk-C6KE2HSQ.cjs → chunk-SR725PWF.cjs} +1662 -1392
- package/dist/chunk-SR725PWF.cjs.map +1 -0
- package/dist/{chunk-S7WIRFNS.cjs → chunk-TKZXMWQF.cjs} +13 -12
- package/dist/chunk-TKZXMWQF.cjs.map +1 -0
- package/dist/{chunk-5PDSCELM.cjs → chunk-TQHGE7UC.cjs} +29 -164
- package/dist/chunk-TQHGE7UC.cjs.map +1 -0
- package/dist/{chunk-XBHRKLZU.cjs → chunk-TUNPBZY3.cjs} +4 -4
- package/dist/{chunk-XBHRKLZU.cjs.map → chunk-TUNPBZY3.cjs.map} +1 -1
- package/dist/{chunk-KOAI3KIV.cjs → chunk-TZEGUG6D.cjs} +4 -4
- package/dist/{chunk-KOAI3KIV.cjs.map → chunk-TZEGUG6D.cjs.map} +1 -1
- package/dist/chunk-UGHG7PGX.js +592 -0
- package/dist/chunk-UGHG7PGX.js.map +1 -0
- package/dist/{chunk-N3QTGPC7.cjs → chunk-UMGZDVOA.cjs} +303 -101
- package/dist/chunk-UMGZDVOA.cjs.map +1 -0
- package/dist/{chunk-RHDOAQCT.cjs → chunk-WCCATHMB.cjs} +140 -135
- package/dist/chunk-WCCATHMB.cjs.map +1 -0
- package/dist/{chunk-DYPRZ53S.cjs → chunk-WODMN3Q2.cjs} +27 -27
- package/dist/{chunk-DYPRZ53S.cjs.map → chunk-WODMN3Q2.cjs.map} +1 -1
- package/dist/{chunk-OZJCH7ZS.js → chunk-XVWOYKIK.js} +3 -3
- package/dist/{chunk-OZJCH7ZS.js.map → chunk-XVWOYKIK.js.map} +1 -1
- package/dist/{chunk-IHRDX7K6.js → chunk-YIURNGXI.js} +46 -56
- package/dist/chunk-YIURNGXI.js.map +1 -0
- package/dist/{chunk-GWUWRZXW.js → chunk-YVF2EM7B.js} +3 -3
- package/dist/{chunk-GWUWRZXW.js.map → chunk-YVF2EM7B.js.map} +1 -1
- package/dist/{chunk-EAMVXR5B.js → chunk-ZDKTPBGV.js} +4 -4
- package/dist/{chunk-EAMVXR5B.js.map → chunk-ZDKTPBGV.js.map} +1 -1
- package/dist/{chunk-A2LJG5GM.js → chunk-ZFMCDJGB.js} +803 -148
- package/dist/chunk-ZFMCDJGB.js.map +1 -0
- package/dist/{chunk-62ZXBMSD.js → chunk-ZLONH2UD.js} +46 -3
- package/dist/chunk-ZLONH2UD.js.map +1 -0
- package/dist/core/index.cjs +28 -27
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +8 -7
- package/dist/ddl-BL1NZLMY.d.cts +78 -0
- package/dist/ddl-D_oW-EVO.d.ts +78 -0
- package/dist/graph-extension/index.cjs +20 -20
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +4 -4
- package/dist/graph-merge/index.cjs +3418 -706
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +550 -58
- package/dist/graph-merge/index.d.ts +550 -58
- package/dist/graph-merge/index.js +3191 -497
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-Deyu8IXL.d.ts → index-COs_z6nV.d.cts} +47 -3
- package/dist/{index-DrRS51Ld.d.cts → index-D7d1u2gr.d.ts} +47 -3
- package/dist/index.cjs +233 -216
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +35 -34
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +13 -13
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +6 -6
- package/dist/interchange/index.cjs +53 -52
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +17 -13
- package/dist/interchange/index.d.ts +17 -13
- package/dist/interchange/index.js +17 -16
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-ptr3JLRP.d.cts → manager-CYaff3n3.d.cts} +2 -2
- package/dist/{manager-DX983gJ0.d.ts → manager-D9eRT_ns.d.ts} +2 -2
- package/dist/{materialize-indexes-CpXoggWU.d.ts → materialize-indexes-DJ3ykH59.d.ts} +1 -1
- package/dist/{materialize-indexes-BXz77YqO.d.cts → materialize-indexes-DTtAnvfY.d.cts} +1 -1
- package/dist/{postgres-DwgEXSPI.d.cts → postgres-CcL4bAHS.d.ts} +1 -1
- package/dist/{postgres-QdOMHTBz.d.ts → postgres-DMj39MEu.d.cts} +1 -1
- package/dist/profiler/index.d.cts +9 -9
- package/dist/profiler/index.d.ts +9 -9
- package/dist/provenance/index.cjs +46 -46
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -7
- package/dist/provenance/index.d.ts +7 -7
- package/dist/provenance/index.js +13 -13
- package/dist/provenance/index.js.map +1 -1
- package/dist/repair-validity-windows-BFNZvd_H.d.cts +166 -0
- package/dist/repair-validity-windows-DlUSqwCg.d.ts +166 -0
- package/dist/schema/index.cjs +45 -44
- package/dist/schema/index.d.cts +6 -6
- package/dist/schema/index.d.ts +6 -6
- package/dist/schema/index.js +18 -17
- package/dist/{searchable-BOUuA83f.d.ts → searchable-DHJMh_nj.d.cts} +1 -1
- package/dist/{searchable-BrUh0pdc.d.cts → searchable-bpE1bBfc.d.ts} +1 -1
- package/dist/{sqlite-BfYcV61E.d.cts → sqlite-D7Oz0SQh.d.ts} +1 -1
- package/dist/{sqlite-DK40XVR1.d.ts → sqlite-YppHrNFb.d.cts} +1 -1
- package/dist/{store-FTqBpuJD.d.cts → store-JUVvtmR4.d.cts} +228 -92
- package/dist/{store-Bo1psfVZ.d.ts → store-UzrGvZOo.d.ts} +228 -92
- package/dist/{temporal-DPtn0HOu.d.ts → temporal-5GqpYCk2.d.cts} +1 -1
- package/dist/{temporal-CXewwLTB.d.cts → temporal-CbnLzTmM.d.ts} +1 -1
- package/dist/{types-Du78EvpN.d.ts → types-BqFZTQmV.d.cts} +60 -9
- package/dist/{types-Du78EvpN.d.cts → types-BqFZTQmV.d.ts} +60 -9
- package/dist/{types-CeT7xM4M.d.ts → types-Bx74kaTt.d.ts} +1 -1
- package/dist/{types-XR1nHERK.d.cts → types-CXAhpW-c.d.cts} +1 -1
- package/dist/{where-CJsp-YUf.d.cts → where-DI_Fqz-X.d.cts} +1 -1
- package/dist/{where-CMbFiWwp.d.ts → where-O-k2wgYm.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-32UETY6S.cjs.map +0 -1
- package/dist/chunk-5PDSCELM.cjs.map +0 -1
- package/dist/chunk-62ZXBMSD.js.map +0 -1
- package/dist/chunk-6LAXM4J2.cjs +0 -12
- package/dist/chunk-73MWKDFK.cjs +0 -12
- package/dist/chunk-A2LJG5GM.js.map +0 -1
- package/dist/chunk-A4R3H7RU.cjs.map +0 -1
- package/dist/chunk-ANKOXPCC.cjs +0 -267
- package/dist/chunk-ANKOXPCC.cjs.map +0 -1
- package/dist/chunk-AT3MLMJV.js.map +0 -1
- package/dist/chunk-BEB4OFZF.cjs.map +0 -1
- package/dist/chunk-BQM5P2NO.cjs.map +0 -1
- package/dist/chunk-C2ZP5YS6.cjs.map +0 -1
- package/dist/chunk-C6KE2HSQ.cjs.map +0 -1
- package/dist/chunk-DSAWGCMP.js +0 -254
- package/dist/chunk-DSAWGCMP.js.map +0 -1
- package/dist/chunk-E4OSGBCM.cjs.map +0 -1
- package/dist/chunk-EDHV4CBU.js.map +0 -1
- package/dist/chunk-FA6Z7B5L.js +0 -244
- package/dist/chunk-FA6Z7B5L.js.map +0 -1
- package/dist/chunk-GVAMRRZR.cjs +0 -268
- package/dist/chunk-GVAMRRZR.cjs.map +0 -1
- package/dist/chunk-GWXXHOLU.js.map +0 -1
- package/dist/chunk-HNYLMPQQ.cjs.map +0 -1
- package/dist/chunk-IHRDX7K6.js.map +0 -1
- package/dist/chunk-KCH7WQA5.cjs.map +0 -1
- package/dist/chunk-KXSMF6PL.js.map +0 -1
- package/dist/chunk-LHYSY6SE.js.map +0 -1
- package/dist/chunk-N3QTGPC7.cjs.map +0 -1
- package/dist/chunk-QPOQX2DI.cjs.map +0 -1
- package/dist/chunk-R7EWHKID.js.map +0 -1
- package/dist/chunk-RFDEYLIK.js.map +0 -1
- package/dist/chunk-RHDOAQCT.cjs.map +0 -1
- package/dist/chunk-S3G5VLSW.js.map +0 -1
- package/dist/chunk-S7WIRFNS.cjs.map +0 -1
- package/dist/chunk-UTVQPZPN.cjs.map +0 -1
- package/dist/chunk-WEJHA7AD.js.map +0 -1
- package/dist/chunk-WYFB7BN3.js.map +0 -1
- package/dist/chunk-YQ4JONWE.js.map +0 -1
- package/dist/chunk-Z43KWLZF.js.map +0 -1
- package/dist/ddl-mE07h_EM.d.cts +0 -38
- package/dist/ddl-opIn8DfX.d.ts +0 -38
package/dist/backend/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
export { D1_MAX_BIND_PARAMETERS, DURABLE_OBJECT_MAX_BIND_PARAMETERS, MODERN_SQLITE_MAX_BIND_PARAMETERS, POSTGRES_CAPABILITIES, POSTGRES_MAX_BIND_PARAMETERS, SQLITE_CAPABILITIES, SQLITE_MAX_BIND_PARAMETERS, isLiveNodeRow, isTombstonedNodeRow, normalizeGraphAnalyticsCapabilities, rowPropsToJsonText, rowPropsToObject } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
|
|
1
|
+
export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor, repairInvertedValidityWindows } from '../chunk-NACVVDWB.js';
|
|
2
|
+
import '../chunk-6SWPJEYN.js';
|
|
3
|
+
import '../chunk-OMZ37BM2.js';
|
|
4
|
+
import '../chunk-NVY5CJFP.js';
|
|
5
|
+
export { D1_MAX_BIND_PARAMETERS, DURABLE_OBJECT_MAX_BIND_PARAMETERS, MODERN_SQLITE_MAX_BIND_PARAMETERS, POSTGRES_CAPABILITIES, POSTGRES_MAX_BIND_PARAMETERS, SQLITE_CAPABILITIES, SQLITE_MAX_BIND_PARAMETERS, isLiveNodeRow, isTombstonedNodeRow, normalizeGraphAnalyticsCapabilities, rowPropsToJsonText, rowPropsToObject } from '../chunk-6LN7FIVU.js';
|
|
6
|
+
import '../chunk-DZAICA5J.js';
|
|
7
|
+
export { resolveStampedValidityLowerBound } from '../chunk-5K2BKEBD.js';
|
|
8
|
+
import '../chunk-SDBBMD4N.js';
|
|
8
9
|
import '../chunk-2EBMPJBO.js';
|
|
9
|
-
export { ALL_FULLTEXT_MODES, BASE_CONTRIBUTION_OWNER, FULLTEXT_CONTRIBUTION_NAME, VECTOR_CONTRIBUTION_PREFIX, assertFiniteEmbedding, assertVectorMinScore, assertVectorSearchLimit, buildFulltextCapabilities, buildVectorCapabilities, fts5Strategy, quoteIdentifier, shortHash, tsvectorStrategy, vectorMinScoreCondition, vectorPhysicalName, vectorScoreExpression } from '../chunk-
|
|
10
|
-
export { Placeholder, isSqlFragment, isSqlPlaceholder, renderPostgres, renderSql, renderSqlInline, renderSqlite, sql } from '../chunk-
|
|
10
|
+
export { ALL_FULLTEXT_MODES, BASE_CONTRIBUTION_OWNER, FULLTEXT_CONTRIBUTION_NAME, VECTOR_CONTRIBUTION_PREFIX, assertFiniteEmbedding, assertVectorMinScore, assertVectorSearchLimit, buildFulltextCapabilities, buildVectorCapabilities, fts5Strategy, quoteIdentifier, shortHash, tsvectorStrategy, vectorMinScoreCondition, vectorPhysicalName, vectorScoreExpression } from '../chunk-ZDKTPBGV.js';
|
|
11
|
+
export { Placeholder, isSqlFragment, isSqlPlaceholder, renderPostgres, renderSql, renderSqlInline, renderSqlite, sql } from '../chunk-3DMMGT6S.js';
|
|
11
12
|
export { ALL_META_EDGE_NAMES } from '../chunk-JXXDZTMN.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-ZLONH2UD.js';
|
|
13
14
|
import '../chunk-FWJKWH6U.js';
|
|
14
15
|
import '../chunk-DYATYRY4.js';
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
var
|
|
9
|
-
require('../../chunk-
|
|
3
|
+
var chunkPFBRJBUL_cjs = require('../../chunk-PFBRJBUL.cjs');
|
|
4
|
+
require('../../chunk-WCCATHMB.cjs');
|
|
5
|
+
require('../../chunk-ROR5ZR6A.cjs');
|
|
6
|
+
require('../../chunk-CICO5GXD.cjs');
|
|
7
|
+
require('../../chunk-FA2AFWLP.cjs');
|
|
8
|
+
var chunkHDL2ARHX_cjs = require('../../chunk-HDL2ARHX.cjs');
|
|
9
|
+
require('../../chunk-WODMN3Q2.cjs');
|
|
10
10
|
require('../../chunk-PWLJ77UV.cjs');
|
|
11
|
-
require('../../chunk-
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
11
|
+
require('../../chunk-SIT26LAZ.cjs');
|
|
12
|
+
require('../../chunk-5PRKMB24.cjs');
|
|
13
|
+
require('../../chunk-TQHGE7UC.cjs');
|
|
14
|
+
require('../../chunk-OI2GQ25X.cjs');
|
|
14
15
|
require('../../chunk-ZY4GXIVN.cjs');
|
|
15
16
|
require('../../chunk-NAUA4PW5.cjs');
|
|
16
|
-
require('../../chunk-
|
|
17
|
-
require('../../chunk-
|
|
18
|
-
require('../../chunk-
|
|
17
|
+
require('../../chunk-L3LQNR34.cjs');
|
|
18
|
+
require('../../chunk-EDN4Y4ZG.cjs');
|
|
19
|
+
require('../../chunk-MRDBBHIZ.cjs');
|
|
19
20
|
require('../../chunk-A7J2YDDI.cjs');
|
|
20
21
|
require('../../chunk-N66HCGCY.cjs');
|
|
21
22
|
|
|
@@ -23,55 +24,55 @@ require('../../chunk-N66HCGCY.cjs');
|
|
|
23
24
|
|
|
24
25
|
Object.defineProperty(exports, "createPostgresBackend", {
|
|
25
26
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkPFBRJBUL_cjs.createPostgresBackend; }
|
|
27
28
|
});
|
|
28
29
|
Object.defineProperty(exports, "createPostgresTables", {
|
|
29
30
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkHDL2ARHX_cjs.createPostgresTables; }
|
|
31
32
|
});
|
|
32
33
|
Object.defineProperty(exports, "edges", {
|
|
33
34
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkHDL2ARHX_cjs.edges; }
|
|
35
36
|
});
|
|
36
37
|
Object.defineProperty(exports, "fulltext", {
|
|
37
38
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkHDL2ARHX_cjs.fulltext; }
|
|
39
40
|
});
|
|
40
41
|
Object.defineProperty(exports, "generatePostgresDDL", {
|
|
41
42
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkHDL2ARHX_cjs.generatePostgresDDL; }
|
|
43
44
|
});
|
|
44
45
|
Object.defineProperty(exports, "generatePostgresMigrationSQL", {
|
|
45
46
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkHDL2ARHX_cjs.generatePostgresMigrationSQL; }
|
|
47
48
|
});
|
|
48
49
|
Object.defineProperty(exports, "nodes", {
|
|
49
50
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkHDL2ARHX_cjs.nodes; }
|
|
51
52
|
});
|
|
52
53
|
Object.defineProperty(exports, "recordedClock", {
|
|
53
54
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkHDL2ARHX_cjs.recordedClock; }
|
|
55
56
|
});
|
|
56
57
|
Object.defineProperty(exports, "recordedEdges", {
|
|
57
58
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkHDL2ARHX_cjs.recordedEdges; }
|
|
59
60
|
});
|
|
60
61
|
Object.defineProperty(exports, "recordedNodes", {
|
|
61
62
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkHDL2ARHX_cjs.recordedNodes; }
|
|
63
64
|
});
|
|
64
65
|
Object.defineProperty(exports, "schemaVersions", {
|
|
65
66
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkHDL2ARHX_cjs.schemaVersions; }
|
|
67
68
|
});
|
|
68
69
|
Object.defineProperty(exports, "tables", {
|
|
69
70
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkHDL2ARHX_cjs.tables; }
|
|
71
72
|
});
|
|
72
73
|
Object.defineProperty(exports, "uniques", {
|
|
73
74
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkHDL2ARHX_cjs.uniques; }
|
|
75
76
|
});
|
|
76
77
|
//# sourceMappingURL=index.cjs.map
|
|
77
78
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { aK as FulltextStrategy, cL as VectorStrategy, d as BackendCapabilities, b as AdapterBackend } from '../../types-BqFZTQmV.cjs';
|
|
2
|
+
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.cjs';
|
|
3
3
|
import { A as AnyPgDatabase, a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.cjs';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
6
|
-
|
|
4
|
+
import { S as SerializedResourceDeclaration } from '../../ddl-BL1NZLMY.cjs';
|
|
5
|
+
export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-BL1NZLMY.cjs';
|
|
6
|
+
import { P as PostgresTables } from '../../postgres-DMj39MEu.cjs';
|
|
7
|
+
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-DMj39MEu.cjs';
|
|
7
8
|
import 'zod';
|
|
8
9
|
import 'drizzle-orm/pg-core';
|
|
9
10
|
import 'drizzle-orm/relations';
|
|
10
|
-
import '../../sqlite-
|
|
11
|
+
import '../../sqlite-YppHrNFb.cjs';
|
|
11
12
|
import 'drizzle-orm/sqlite-core';
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -115,6 +116,19 @@ type PostgresBackendOptions = Readonly<{
|
|
|
115
116
|
* `prepareStatements` is `false`.
|
|
116
117
|
*/
|
|
117
118
|
preparedStatementCacheMax?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Declare the connection this backend serializes every statement onto, when
|
|
121
|
+
* TypeGraph's driver predicates cannot see it (Bun `SQL` at `{ max: 1 }`,
|
|
122
|
+
* `pg-proxy`, a postgres-js client capped through a non-numeric string the
|
|
123
|
+
* driver does not coerce) — or declare that it serializes on nothing, when
|
|
124
|
+
* detection is wrong for your topology.
|
|
125
|
+
*
|
|
126
|
+
* Defaults to `{ mode: "detect" }`. See
|
|
127
|
+
* {@link SerializedResourceDeclaration} for what each mode means and for the
|
|
128
|
+
* one refusal it cannot lift (`same-sqlite-backend`, which is SQLite-only and
|
|
129
|
+
* therefore never reached from here).
|
|
130
|
+
*/
|
|
131
|
+
serializedResource?: SerializedResourceDeclaration;
|
|
118
132
|
}>;
|
|
119
133
|
/**
|
|
120
134
|
* Creates a TypeGraph backend for PostgreSQL databases.
|
|
@@ -127,4 +141,4 @@ type PostgresBackendOptions = Readonly<{
|
|
|
127
141
|
*/
|
|
128
142
|
declare function createPostgresBackend(db: AnyPgDatabase, options?: PostgresBackendOptions): AdapterBackend<AnyPgTransaction>;
|
|
129
143
|
|
|
130
|
-
export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, createPostgresBackend };
|
|
144
|
+
export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, SerializedResourceDeclaration, createPostgresBackend };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { aK as FulltextStrategy, cL as VectorStrategy, d as BackendCapabilities, b as AdapterBackend } from '../../types-BqFZTQmV.js';
|
|
2
|
+
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.js';
|
|
3
3
|
import { A as AnyPgDatabase, a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.js';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
6
|
-
|
|
4
|
+
import { S as SerializedResourceDeclaration } from '../../ddl-D_oW-EVO.js';
|
|
5
|
+
export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-D_oW-EVO.js';
|
|
6
|
+
import { P as PostgresTables } from '../../postgres-CcL4bAHS.js';
|
|
7
|
+
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-CcL4bAHS.js';
|
|
7
8
|
import 'zod';
|
|
8
9
|
import 'drizzle-orm/pg-core';
|
|
9
10
|
import 'drizzle-orm/relations';
|
|
10
|
-
import '../../sqlite-
|
|
11
|
+
import '../../sqlite-D7Oz0SQh.js';
|
|
11
12
|
import 'drizzle-orm/sqlite-core';
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -115,6 +116,19 @@ type PostgresBackendOptions = Readonly<{
|
|
|
115
116
|
* `prepareStatements` is `false`.
|
|
116
117
|
*/
|
|
117
118
|
preparedStatementCacheMax?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Declare the connection this backend serializes every statement onto, when
|
|
121
|
+
* TypeGraph's driver predicates cannot see it (Bun `SQL` at `{ max: 1 }`,
|
|
122
|
+
* `pg-proxy`, a postgres-js client capped through a non-numeric string the
|
|
123
|
+
* driver does not coerce) — or declare that it serializes on nothing, when
|
|
124
|
+
* detection is wrong for your topology.
|
|
125
|
+
*
|
|
126
|
+
* Defaults to `{ mode: "detect" }`. See
|
|
127
|
+
* {@link SerializedResourceDeclaration} for what each mode means and for the
|
|
128
|
+
* one refusal it cannot lift (`same-sqlite-backend`, which is SQLite-only and
|
|
129
|
+
* therefore never reached from here).
|
|
130
|
+
*/
|
|
131
|
+
serializedResource?: SerializedResourceDeclaration;
|
|
118
132
|
}>;
|
|
119
133
|
/**
|
|
120
134
|
* Creates a TypeGraph backend for PostgreSQL databases.
|
|
@@ -127,4 +141,4 @@ type PostgresBackendOptions = Readonly<{
|
|
|
127
141
|
*/
|
|
128
142
|
declare function createPostgresBackend(db: AnyPgDatabase, options?: PostgresBackendOptions): AdapterBackend<AnyPgTransaction>;
|
|
129
143
|
|
|
130
|
-
export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, createPostgresBackend };
|
|
144
|
+
export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, SerializedResourceDeclaration, createPostgresBackend };
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
export { createPostgresBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
export { createPostgresTables, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
1
|
+
export { createPostgresBackend } from '../../chunk-OD4SSY2U.js';
|
|
2
|
+
import '../../chunk-ACGSAMD3.js';
|
|
3
|
+
import '../../chunk-JONXFAPO.js';
|
|
4
|
+
import '../../chunk-OVI7IXYX.js';
|
|
5
|
+
import '../../chunk-YIURNGXI.js';
|
|
6
|
+
export { createPostgresTables, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-6SWPJEYN.js';
|
|
7
|
+
import '../../chunk-OMZ37BM2.js';
|
|
8
8
|
import '../../chunk-JBQQ7THH.js';
|
|
9
|
-
import '../../chunk-
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-UGHG7PGX.js';
|
|
10
|
+
import '../../chunk-6LN7FIVU.js';
|
|
11
|
+
import '../../chunk-5K2BKEBD.js';
|
|
12
|
+
import '../../chunk-SDBBMD4N.js';
|
|
12
13
|
import '../../chunk-K34OPSJK.js';
|
|
13
14
|
import '../../chunk-2EBMPJBO.js';
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
16
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-ZDKTPBGV.js';
|
|
16
|
+
import '../../chunk-3DMMGT6S.js';
|
|
17
|
+
import '../../chunk-ZLONH2UD.js';
|
|
17
18
|
import '../../chunk-FWJKWH6U.js';
|
|
18
19
|
import '../../chunk-DYATYRY4.js';
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
var
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
var
|
|
11
|
-
require('../../chunk-
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-
|
|
15
|
-
require('../../chunk-
|
|
16
|
-
require('../../chunk-
|
|
17
|
-
require('../../chunk-
|
|
3
|
+
var chunkTKZXMWQF_cjs = require('../../chunk-TKZXMWQF.cjs');
|
|
4
|
+
require('../../chunk-PFBRJBUL.cjs');
|
|
5
|
+
require('../../chunk-WCCATHMB.cjs');
|
|
6
|
+
var chunkSR725PWF_cjs = require('../../chunk-SR725PWF.cjs');
|
|
7
|
+
require('../../chunk-ROR5ZR6A.cjs');
|
|
8
|
+
require('../../chunk-CICO5GXD.cjs');
|
|
9
|
+
require('../../chunk-FA2AFWLP.cjs');
|
|
10
|
+
var chunkHDL2ARHX_cjs = require('../../chunk-HDL2ARHX.cjs');
|
|
11
|
+
require('../../chunk-WODMN3Q2.cjs');
|
|
12
|
+
require('../../chunk-JB6T4GLL.cjs');
|
|
13
|
+
require('../../chunk-3KOY4FH3.cjs');
|
|
14
|
+
require('../../chunk-3FPR224C.cjs');
|
|
15
|
+
require('../../chunk-26YKDNUD.cjs');
|
|
16
|
+
require('../../chunk-JFRT7S3B.cjs');
|
|
17
|
+
require('../../chunk-EZEEWCFJ.cjs');
|
|
18
18
|
require('../../chunk-PWLJ77UV.cjs');
|
|
19
|
-
require('../../chunk-
|
|
20
|
-
require('../../chunk-
|
|
21
|
-
var
|
|
22
|
-
require('../../chunk-
|
|
23
|
-
require('../../chunk-
|
|
24
|
-
require('../../chunk-
|
|
25
|
-
require('../../chunk-
|
|
26
|
-
require('../../chunk-
|
|
27
|
-
require('../../chunk-
|
|
19
|
+
require('../../chunk-SIT26LAZ.cjs');
|
|
20
|
+
require('../../chunk-3U5ABFDW.cjs');
|
|
21
|
+
var chunk5PRKMB24_cjs = require('../../chunk-5PRKMB24.cjs');
|
|
22
|
+
require('../../chunk-BFUOME67.cjs');
|
|
23
|
+
require('../../chunk-FQPEMEWX.cjs');
|
|
24
|
+
require('../../chunk-2QGYQBS2.cjs');
|
|
25
|
+
require('../../chunk-TQHGE7UC.cjs');
|
|
26
|
+
require('../../chunk-AOSSQDVO.cjs');
|
|
27
|
+
require('../../chunk-OI2GQ25X.cjs');
|
|
28
|
+
require('../../chunk-LRQKXRXO.cjs');
|
|
28
29
|
require('../../chunk-ZY4GXIVN.cjs');
|
|
29
30
|
require('../../chunk-NAUA4PW5.cjs');
|
|
30
|
-
require('../../chunk-
|
|
31
|
-
require('../../chunk-
|
|
31
|
+
require('../../chunk-L3LQNR34.cjs');
|
|
32
|
+
require('../../chunk-EDN4Y4ZG.cjs');
|
|
32
33
|
require('../../chunk-7EO3TCQB.cjs');
|
|
33
34
|
require('../../chunk-RT5ZY4XA.cjs');
|
|
34
35
|
require('../../chunk-HAHNRASW.cjs');
|
|
35
|
-
require('../../chunk-
|
|
36
|
+
require('../../chunk-GYEG3ZLZ.cjs');
|
|
36
37
|
require('../../chunk-XUO3KQFO.cjs');
|
|
37
|
-
require('../../chunk-
|
|
38
|
-
require('../../chunk-
|
|
38
|
+
require('../../chunk-6NGW27EO.cjs');
|
|
39
|
+
require('../../chunk-MRDBBHIZ.cjs');
|
|
39
40
|
require('../../chunk-A7J2YDDI.cjs');
|
|
40
41
|
require('../../chunk-N66HCGCY.cjs');
|
|
41
42
|
|
|
@@ -46,14 +47,14 @@ function withoutSchemaOverride(schemaManagement) {
|
|
|
46
47
|
return rest;
|
|
47
48
|
}
|
|
48
49
|
async function createLocalPgliteStore(graph, options = {}) {
|
|
49
|
-
const tables = options.store?.schema === void 0 ? void 0 :
|
|
50
|
-
const { backend } = await
|
|
50
|
+
const tables = options.store?.schema === void 0 ? void 0 : chunkHDL2ARHX_cjs.createPostgresTables(options.store.schema.tables);
|
|
51
|
+
const { backend } = await chunkTKZXMWQF_cjs.createLocalPgliteBackend({
|
|
51
52
|
...options.dataDir === void 0 ? {} : { dataDir: options.dataDir },
|
|
52
53
|
...options.vector === false ? { vector: false } : {},
|
|
53
54
|
...tables === void 0 ? {} : { tables }
|
|
54
55
|
});
|
|
55
56
|
try {
|
|
56
|
-
const [store] = await
|
|
57
|
+
const [store] = await chunkSR725PWF_cjs.createStoreWithSchema(graph, backend, {
|
|
57
58
|
...options.store,
|
|
58
59
|
// The type already excludes `schema` here; the runtime strip guards
|
|
59
60
|
// untyped callers, so the provisioned schema (or the default tables)
|
|
@@ -62,7 +63,7 @@ async function createLocalPgliteStore(graph, options = {}) {
|
|
|
62
63
|
});
|
|
63
64
|
return store;
|
|
64
65
|
} catch (error) {
|
|
65
|
-
return
|
|
66
|
+
return chunk5PRKMB24_cjs.closeAfterFailure(backend, error);
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":["createPostgresTables","createLocalPgliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":["createPostgresTables","createLocalPgliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAyBA,eAAsB,sBAAA,CACpB,KAAA,EACA,OAAA,GAAmC,EAAC,EACwB;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,sCAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAMC,0CAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store.cjs","sourcesContent":["/**\n * Batteries-included local PostgreSQL Store backed by PGlite.\n *\n * This entrypoint owns the connection and intentionally exposes the portable\n * TypeGraph Store surface rather than the adapter-native Drizzle handle.\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport {\n type HistoryStoreOptions,\n type LiveStoreOptions,\n type RecordedReadStoreOptions,\n type StoreOptions,\n type UnboundLiveStoreOptions,\n} from \"../../store/types\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n\nexport type { GraphIdentityConfig } from \"../../core/define-graph\";\nexport type {\n IdentityAssertion,\n IdentityAssertionId,\n IdentityAssertionResult,\n IdentityFacade,\n IdentityNode,\n IdentityNodeRefInput,\n IdentityPair,\n IdentityReadFacade,\n IdentityRelation,\n IdentityWriteSummary,\n} from \"../../identity\";\nexport type {\n ContributionDiagnostic,\n ContributionDiagnosticState,\n ContributionRepairEntry,\n ContributionRepairResult,\n} from \"../types\";\n\nexport type LocalPgliteStoreOptions<\n TStoreOptions extends StoreOptions = StoreOptions,\n> = Readonly<{\n /** PGlite data directory. Defaults to an in-memory database. */\n dataDir?: string;\n /** Whether to load pgvector. Defaults to true. */\n vector?: boolean;\n /** Store behavior, including hooks, history, and custom table names. */\n store?: TStoreOptions;\n /**\n * Schema initialization and migration policy. `schema` is excluded here:\n * the effective SqlSchema has exactly one source — `store.schema` — which\n * this constructor also uses to provision the physical tables, so a\n * second schema could name tables that were never created.\n */\n schemaManagement?: Omit<SchemaManagerOptions, \"schema\">;\n}>;\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** Creates, provisions, and returns a full typed local PGlite Store. */\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options?: LocalPgliteStoreOptions<UnboundLiveStoreOptions>,\n): Promise<Store<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<HistoryStoreOptions> &\n Readonly<{ store: HistoryStoreOptions }>,\n): Promise<HistoryStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<RecordedReadStoreOptions> &\n Readonly<{ store: RecordedReadStoreOptions }>,\n): Promise<RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<LiveStoreOptions>,\n): Promise<Store<G> | RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>>;\nexport async function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions = {},\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { S as SchemaManagerOptions } from '../../manager-
|
|
4
|
-
import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-
|
|
5
|
-
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-
|
|
1
|
+
import { d8 as GraphDef } from '../../types-BqFZTQmV.cjs';
|
|
2
|
+
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.cjs';
|
|
3
|
+
import { S as SchemaManagerOptions } from '../../manager-CYaff3n3.cjs';
|
|
4
|
+
import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-JUVvtmR4.cjs';
|
|
5
|
+
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-JUVvtmR4.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../../materialize-indexes-
|
|
8
|
-
import '../../temporal-
|
|
9
|
-
import '../../searchable-
|
|
7
|
+
import '../../materialize-indexes-DTtAnvfY.cjs';
|
|
8
|
+
import '../../temporal-5GqpYCk2.cjs';
|
|
9
|
+
import '../../searchable-DHJMh_nj.cjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Batteries-included local PostgreSQL Store backed by PGlite.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { S as SchemaManagerOptions } from '../../manager-
|
|
4
|
-
import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-
|
|
5
|
-
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-
|
|
1
|
+
import { d8 as GraphDef } from '../../types-BqFZTQmV.js';
|
|
2
|
+
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.js';
|
|
3
|
+
import { S as SchemaManagerOptions } from '../../manager-D9eRT_ns.js';
|
|
4
|
+
import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-UzrGvZOo.js';
|
|
5
|
+
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-UzrGvZOo.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../../materialize-indexes-
|
|
8
|
-
import '../../temporal-
|
|
9
|
-
import '../../searchable-
|
|
7
|
+
import '../../materialize-indexes-DJ3ykH59.js';
|
|
8
|
+
import '../../temporal-CbnLzTmM.js';
|
|
9
|
+
import '../../searchable-bpE1bBfc.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Batteries-included local PostgreSQL Store backed by PGlite.
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { createLocalPgliteBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import { createStoreWithSchema } from '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import { createPostgresTables } from '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
1
|
+
import { createLocalPgliteBackend } from '../../chunk-CT3ZKTOF.js';
|
|
2
|
+
import '../../chunk-OD4SSY2U.js';
|
|
3
|
+
import '../../chunk-ACGSAMD3.js';
|
|
4
|
+
import { createStoreWithSchema } from '../../chunk-BRRP76WO.js';
|
|
5
|
+
import '../../chunk-JONXFAPO.js';
|
|
6
|
+
import '../../chunk-OVI7IXYX.js';
|
|
7
|
+
import '../../chunk-YIURNGXI.js';
|
|
8
|
+
import { createPostgresTables } from '../../chunk-6SWPJEYN.js';
|
|
9
|
+
import '../../chunk-OMZ37BM2.js';
|
|
10
|
+
import '../../chunk-KF6K7TGH.js';
|
|
11
|
+
import '../../chunk-I4GAZH5Z.js';
|
|
12
|
+
import '../../chunk-2TYSSBU5.js';
|
|
13
|
+
import '../../chunk-SHFBB23Q.js';
|
|
14
|
+
import '../../chunk-ZFMCDJGB.js';
|
|
15
|
+
import '../../chunk-S5TERQVW.js';
|
|
16
16
|
import '../../chunk-JBQQ7THH.js';
|
|
17
|
-
import '../../chunk-
|
|
18
|
-
import '../../chunk-
|
|
19
|
-
import { closeAfterFailure } from '../../chunk-
|
|
20
|
-
import '../../chunk-
|
|
21
|
-
import '../../chunk-
|
|
22
|
-
import '../../chunk-
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
25
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-UGHG7PGX.js';
|
|
18
|
+
import '../../chunk-NVY5CJFP.js';
|
|
19
|
+
import { closeAfterFailure } from '../../chunk-6LN7FIVU.js';
|
|
20
|
+
import '../../chunk-HEV35TGT.js';
|
|
21
|
+
import '../../chunk-GLHXM7C4.js';
|
|
22
|
+
import '../../chunk-DZAICA5J.js';
|
|
23
|
+
import '../../chunk-5K2BKEBD.js';
|
|
24
|
+
import '../../chunk-KKBDXCLQ.js';
|
|
25
|
+
import '../../chunk-SDBBMD4N.js';
|
|
26
|
+
import '../../chunk-P6YLZTRE.js';
|
|
26
27
|
import '../../chunk-K34OPSJK.js';
|
|
27
28
|
import '../../chunk-2EBMPJBO.js';
|
|
28
|
-
import '../../chunk-
|
|
29
|
-
import '../../chunk-
|
|
29
|
+
import '../../chunk-ZDKTPBGV.js';
|
|
30
|
+
import '../../chunk-3DMMGT6S.js';
|
|
30
31
|
import '../../chunk-AMKPPFUO.js';
|
|
31
32
|
import '../../chunk-W6OG3HDG.js';
|
|
32
33
|
import '../../chunk-PC2UBAUB.js';
|
|
33
|
-
import '../../chunk-
|
|
34
|
+
import '../../chunk-D5R42W5D.js';
|
|
34
35
|
import '../../chunk-JXXDZTMN.js';
|
|
35
|
-
import '../../chunk-
|
|
36
|
-
import '../../chunk-
|
|
36
|
+
import '../../chunk-XVWOYKIK.js';
|
|
37
|
+
import '../../chunk-ZLONH2UD.js';
|
|
37
38
|
import '../../chunk-FWJKWH6U.js';
|
|
38
39
|
import '../../chunk-DYATYRY4.js';
|
|
39
40
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAyBA,eAAsB,sBAAA,CACpB,KAAA,EACA,OAAA,GAAmC,EAAC,EACwB;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACA,oBAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAM,wBAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAM,qBAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAO,iBAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store.js","sourcesContent":["/**\n * Batteries-included local PostgreSQL Store backed by PGlite.\n *\n * This entrypoint owns the connection and intentionally exposes the portable\n * TypeGraph Store surface rather than the adapter-native Drizzle handle.\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport {\n type HistoryStoreOptions,\n type LiveStoreOptions,\n type RecordedReadStoreOptions,\n type StoreOptions,\n type UnboundLiveStoreOptions,\n} from \"../../store/types\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n\nexport type { GraphIdentityConfig } from \"../../core/define-graph\";\nexport type {\n IdentityAssertion,\n IdentityAssertionId,\n IdentityAssertionResult,\n IdentityFacade,\n IdentityNode,\n IdentityNodeRefInput,\n IdentityPair,\n IdentityReadFacade,\n IdentityRelation,\n IdentityWriteSummary,\n} from \"../../identity\";\nexport type {\n ContributionDiagnostic,\n ContributionDiagnosticState,\n ContributionRepairEntry,\n ContributionRepairResult,\n} from \"../types\";\n\nexport type LocalPgliteStoreOptions<\n TStoreOptions extends StoreOptions = StoreOptions,\n> = Readonly<{\n /** PGlite data directory. Defaults to an in-memory database. */\n dataDir?: string;\n /** Whether to load pgvector. Defaults to true. */\n vector?: boolean;\n /** Store behavior, including hooks, history, and custom table names. */\n store?: TStoreOptions;\n /**\n * Schema initialization and migration policy. `schema` is excluded here:\n * the effective SqlSchema has exactly one source — `store.schema` — which\n * this constructor also uses to provision the physical tables, so a\n * second schema could name tables that were never created.\n */\n schemaManagement?: Omit<SchemaManagerOptions, \"schema\">;\n}>;\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** Creates, provisions, and returns a full typed local PGlite Store. */\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options?: LocalPgliteStoreOptions<UnboundLiveStoreOptions>,\n): Promise<Store<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<HistoryStoreOptions> &\n Readonly<{ store: HistoryStoreOptions }>,\n): Promise<HistoryStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<RecordedReadStoreOptions> &\n Readonly<{ store: RecordedReadStoreOptions }>,\n): Promise<RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<LiveStoreOptions>,\n): Promise<Store<G> | RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>>;\nexport async function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions = {},\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
3
|
+
var chunkTKZXMWQF_cjs = require('../../chunk-TKZXMWQF.cjs');
|
|
4
|
+
require('../../chunk-PFBRJBUL.cjs');
|
|
5
|
+
require('../../chunk-WCCATHMB.cjs');
|
|
6
|
+
require('../../chunk-ROR5ZR6A.cjs');
|
|
7
|
+
require('../../chunk-CICO5GXD.cjs');
|
|
8
|
+
require('../../chunk-FA2AFWLP.cjs');
|
|
9
|
+
require('../../chunk-HDL2ARHX.cjs');
|
|
10
|
+
require('../../chunk-WODMN3Q2.cjs');
|
|
11
11
|
require('../../chunk-PWLJ77UV.cjs');
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-
|
|
12
|
+
require('../../chunk-SIT26LAZ.cjs');
|
|
13
|
+
require('../../chunk-5PRKMB24.cjs');
|
|
14
|
+
require('../../chunk-TQHGE7UC.cjs');
|
|
15
|
+
require('../../chunk-OI2GQ25X.cjs');
|
|
15
16
|
require('../../chunk-ZY4GXIVN.cjs');
|
|
16
17
|
require('../../chunk-NAUA4PW5.cjs');
|
|
17
|
-
require('../../chunk-
|
|
18
|
-
require('../../chunk-
|
|
19
|
-
require('../../chunk-
|
|
18
|
+
require('../../chunk-L3LQNR34.cjs');
|
|
19
|
+
require('../../chunk-EDN4Y4ZG.cjs');
|
|
20
|
+
require('../../chunk-MRDBBHIZ.cjs');
|
|
20
21
|
require('../../chunk-A7J2YDDI.cjs');
|
|
21
22
|
require('../../chunk-N66HCGCY.cjs');
|
|
22
23
|
|
|
@@ -24,7 +25,7 @@ require('../../chunk-N66HCGCY.cjs');
|
|
|
24
25
|
|
|
25
26
|
Object.defineProperty(exports, "createLocalPgliteBackend", {
|
|
26
27
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkTKZXMWQF_cjs.createLocalPgliteBackend; }
|
|
28
29
|
});
|
|
29
30
|
//# sourceMappingURL=pglite.cjs.map
|
|
30
31
|
//# sourceMappingURL=pglite.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Extension, PGlite } from '@electric-sql/pglite';
|
|
2
2
|
import { PgliteDatabase } from 'drizzle-orm/pglite';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { b as AdapterBackend } from '../../types-BqFZTQmV.cjs';
|
|
4
|
+
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.cjs';
|
|
5
5
|
import { a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.cjs';
|
|
6
6
|
export { A as AnyPgDatabase } from '../../postgres-execution-fKW0qRiN.cjs';
|
|
7
|
-
import { P as PostgresTables } from '../../postgres-
|
|
7
|
+
import { P as PostgresTables } from '../../postgres-DMj39MEu.cjs';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import 'drizzle-orm/pg-core';
|
|
10
10
|
import 'drizzle-orm/relations';
|