@nicia-ai/typegraph 0.47.0 → 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/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/index.cjs +27 -19
- package/dist/backend/index.d.cts +37 -55
- package/dist/backend/index.d.ts +37 -55
- package/dist/backend/index.js +4 -4
- package/dist/backend/postgres/index.cjs +7 -7
- package/dist/backend/postgres/index.d.cts +21 -7
- package/dist/backend/postgres/index.d.ts +21 -7
- package/dist/backend/postgres/index.js +6 -6
- package/dist/backend/postgres/pglite-store.cjs +17 -17
- 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 +14 -14
- package/dist/backend/postgres/pglite.cjs +8 -8
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +7 -7
- package/dist/backend/sqlite/index.cjs +7 -7
- package/dist/backend/sqlite/index.d.cts +20 -7
- package/dist/backend/sqlite/index.d.ts +20 -7
- package/dist/backend/sqlite/index.js +6 -6
- package/dist/backend/sqlite/libsql.cjs +8 -8
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +6 -6
- package/dist/backend/sqlite/local-store.cjs +18 -18
- 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 +15 -15
- package/dist/backend/sqlite/local.cjs +9 -9
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +7 -7
- package/dist/{chunk-EMIB2RXD.cjs → chunk-2HIYYMWY.cjs} +99 -96
- package/dist/chunk-2HIYYMWY.cjs.map +1 -0
- package/dist/{chunk-6KFLYYOC.cjs → chunk-2QGYQBS2.cjs} +5 -5
- package/dist/{chunk-6KFLYYOC.cjs.map → chunk-2QGYQBS2.cjs.map} +1 -1
- package/dist/{chunk-5FT3TLPK.js → chunk-2SYZXD54.js} +16 -13
- package/dist/chunk-2SYZXD54.js.map +1 -0
- package/dist/{chunk-XYBQI6LE.js → chunk-2TYSSBU5.js} +6 -6
- package/dist/{chunk-XYBQI6LE.js.map → chunk-2TYSSBU5.js.map} +1 -1
- package/dist/{chunk-6JVZSOHQ.cjs → chunk-3FPR224C.cjs} +26 -26
- package/dist/{chunk-6JVZSOHQ.cjs.map → chunk-3FPR224C.cjs.map} +1 -1
- package/dist/{chunk-MFZR4QKM.cjs → chunk-3KOY4FH3.cjs} +181 -4
- package/dist/chunk-3KOY4FH3.cjs.map +1 -0
- package/dist/{chunk-6FWSNSRE.js → chunk-4WMMBDS5.js} +4 -4
- package/dist/chunk-4WMMBDS5.js.map +1 -0
- package/dist/{chunk-NG2RB5WL.js → chunk-5K2BKEBD.js} +18 -3
- 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-I4G3SQPF.cjs → chunk-7XUYFFR4.cjs} +7 -7
- package/dist/chunk-7XUYFFR4.cjs.map +1 -0
- package/dist/{chunk-KH7XW7VV.js → chunk-ACGSAMD3.js} +24 -27
- package/dist/chunk-ACGSAMD3.js.map +1 -0
- package/dist/{chunk-QS3NQZVC.js → chunk-AX6JGVTZ.js} +16 -11
- package/dist/chunk-AX6JGVTZ.js.map +1 -0
- package/dist/{chunk-DJZTXBWY.js → chunk-BRRP76WO.js} +71 -30
- package/dist/chunk-BRRP76WO.js.map +1 -0
- package/dist/{chunk-5UMTUOM5.js → chunk-CT3ZKTOF.js} +5 -4
- package/dist/chunk-CT3ZKTOF.js.map +1 -0
- package/dist/{chunk-XY5OMOJD.js → chunk-DZAICA5J.js} +3 -3
- package/dist/{chunk-XY5OMOJD.js.map → chunk-DZAICA5J.js.map} +1 -1
- package/dist/{chunk-OIFSOPSR.cjs → chunk-EZEEWCFJ.cjs} +38 -156
- package/dist/chunk-EZEEWCFJ.cjs.map +1 -0
- package/dist/{chunk-AMMWA76F.cjs → chunk-FA2AFWLP.cjs} +6 -6
- package/dist/{chunk-AMMWA76F.cjs.map → chunk-FA2AFWLP.cjs.map} +1 -1
- package/dist/{chunk-FNOMT74T.js → chunk-I4GAZH5Z.js} +180 -5
- package/dist/chunk-I4GAZH5Z.js.map +1 -0
- package/dist/{chunk-WGX7JH7E.cjs → chunk-JB6T4GLL.cjs} +106 -134
- package/dist/chunk-JB6T4GLL.cjs.map +1 -0
- package/dist/{chunk-MX4DHSQP.cjs → chunk-JFRT7S3B.cjs} +92 -98
- package/dist/chunk-JFRT7S3B.cjs.map +1 -0
- package/dist/{chunk-SE6EGQSD.js → chunk-KF6K7TGH.js} +38 -66
- package/dist/chunk-KF6K7TGH.js.map +1 -0
- package/dist/{chunk-ZHNXLS3C.js → chunk-NACVVDWB.js} +208 -8
- package/dist/chunk-NACVVDWB.js.map +1 -0
- package/dist/{chunk-M35DF33T.js → chunk-OD4SSY2U.js} +29 -16
- package/dist/chunk-OD4SSY2U.js.map +1 -0
- package/dist/{chunk-U5EDAVOJ.cjs → chunk-OTUPEF2W.cjs} +54 -49
- package/dist/chunk-OTUPEF2W.cjs.map +1 -0
- package/dist/{chunk-BCQ76AXA.cjs → chunk-PFBRJBUL.cjs} +107 -94
- package/dist/chunk-PFBRJBUL.cjs.map +1 -0
- package/dist/{chunk-AVGUJWVX.js → chunk-S5TERQVW.js} +15 -132
- package/dist/chunk-S5TERQVW.js.map +1 -0
- package/dist/chunk-SIT26LAZ.cjs +614 -0
- package/dist/chunk-SIT26LAZ.cjs.map +1 -0
- package/dist/{chunk-BR7SHKGM.cjs → chunk-SR725PWF.cjs} +548 -507
- package/dist/chunk-SR725PWF.cjs.map +1 -0
- package/dist/{chunk-5FBRVORR.cjs → chunk-TKZXMWQF.cjs} +8 -7
- package/dist/chunk-TKZXMWQF.cjs.map +1 -0
- package/dist/{chunk-425IZOQ5.cjs → chunk-TQHGE7UC.cjs} +20 -2
- package/dist/chunk-TQHGE7UC.cjs.map +1 -0
- package/dist/{chunk-GYUJZARH.cjs → chunk-TUNPBZY3.cjs} +4 -4
- package/dist/{chunk-GYUJZARH.cjs.map → chunk-TUNPBZY3.cjs.map} +1 -1
- package/dist/chunk-UGHG7PGX.js +592 -0
- package/dist/chunk-UGHG7PGX.js.map +1 -0
- package/dist/{chunk-KABFHAL7.cjs → chunk-UMGZDVOA.cjs} +213 -12
- package/dist/chunk-UMGZDVOA.cjs.map +1 -0
- package/dist/{chunk-UPAJHMW3.cjs → chunk-WCCATHMB.cjs} +54 -57
- package/dist/chunk-WCCATHMB.cjs.map +1 -0
- package/dist/{chunk-LEWHMOUY.js → chunk-YIURNGXI.js} +4 -4
- package/dist/{chunk-LEWHMOUY.js.map → chunk-YIURNGXI.js.map} +1 -1
- package/dist/{chunk-EP4RUYD6.js → chunk-YVF2EM7B.js} +3 -3
- package/dist/{chunk-EP4RUYD6.js.map → chunk-YVF2EM7B.js.map} +1 -1
- package/dist/{chunk-NNQ6A3RM.js → chunk-ZFMCDJGB.js} +7 -12
- package/dist/chunk-ZFMCDJGB.js.map +1 -0
- package/dist/core/index.cjs +6 -6
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +2 -2
- package/dist/ddl-BL1NZLMY.d.cts +78 -0
- package/dist/ddl-D_oW-EVO.d.ts +78 -0
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-merge/index.cjs +334 -191
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +65 -15
- package/dist/graph-merge/index.d.ts +65 -15
- package/dist/graph-merge/index.js +174 -32
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-CHTv4XMZ.d.cts → index-COs_z6nV.d.cts} +2 -2
- package/dist/{index-CzoJ3MUw.d.ts → index-D7d1u2gr.d.ts} +2 -2
- package/dist/index.cjs +90 -86
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +13 -13
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/interchange/index.cjs +38 -38
- package/dist/interchange/index.d.cts +7 -7
- package/dist/interchange/index.d.ts +7 -7
- package/dist/interchange/index.js +10 -10
- package/dist/{manager-DlY1vlla.d.cts → manager-CYaff3n3.d.cts} +2 -2
- package/dist/{manager-B6sOQzcQ.d.ts → manager-D9eRT_ns.d.ts} +2 -2
- package/dist/{materialize-indexes-DQL4xcpf.d.ts → materialize-indexes-DJ3ykH59.d.ts} +1 -1
- package/dist/{materialize-indexes-sskhp-c_.d.cts → materialize-indexes-DTtAnvfY.d.cts} +1 -1
- package/dist/{postgres-BXy_nyMs.d.cts → postgres-CcL4bAHS.d.ts} +1 -1
- package/dist/{postgres-B6YOUcaK.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 +25 -26
- 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 +9 -10
- 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 +35 -35
- package/dist/schema/index.d.cts +6 -6
- package/dist/schema/index.d.ts +6 -6
- package/dist/schema/index.js +8 -8
- package/dist/{searchable-D9gMiwcS.d.ts → searchable-DHJMh_nj.d.cts} +1 -1
- package/dist/{searchable-0Cn_lY8U.d.cts → searchable-bpE1bBfc.d.ts} +1 -1
- package/dist/{sqlite-DioSxaPe.d.cts → sqlite-D7Oz0SQh.d.ts} +1 -1
- package/dist/{sqlite-ClXuBYAj.d.ts → sqlite-YppHrNFb.d.cts} +1 -1
- package/dist/{store-5j-w5onJ.d.ts → store-JUVvtmR4.d.cts} +113 -26
- package/dist/{store-CFedKGU5.d.cts → store-UzrGvZOo.d.ts} +113 -26
- package/dist/{temporal-CjO9FH1l.d.ts → temporal-5GqpYCk2.d.cts} +1 -1
- package/dist/{temporal-Ce1pG0S1.d.cts → temporal-CbnLzTmM.d.ts} +1 -1
- package/dist/{types-DKkMJZjR.d.cts → types-BqFZTQmV.d.cts} +29 -4
- package/dist/{types-DKkMJZjR.d.ts → types-BqFZTQmV.d.ts} +29 -4
- package/dist/{types-BrdOFu48.d.ts → types-Bx74kaTt.d.ts} +1 -1
- package/dist/{types-oj_OGAaZ.d.cts → types-CXAhpW-c.d.cts} +1 -1
- package/dist/{where-D1wKCJ4Q.d.cts → where-DI_Fqz-X.d.cts} +1 -1
- package/dist/{where-C8w2627G.d.ts → where-O-k2wgYm.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-3HGRTCDU.cjs +0 -269
- package/dist/chunk-3HGRTCDU.cjs.map +0 -1
- package/dist/chunk-425IZOQ5.cjs.map +0 -1
- package/dist/chunk-5FBRVORR.cjs.map +0 -1
- package/dist/chunk-5FT3TLPK.js.map +0 -1
- package/dist/chunk-5UMTUOM5.js.map +0 -1
- package/dist/chunk-6FWSNSRE.js.map +0 -1
- package/dist/chunk-AVGUJWVX.js.map +0 -1
- package/dist/chunk-BCQ76AXA.cjs.map +0 -1
- package/dist/chunk-BR7SHKGM.cjs.map +0 -1
- package/dist/chunk-DJZTXBWY.js.map +0 -1
- package/dist/chunk-EMIB2RXD.cjs.map +0 -1
- package/dist/chunk-FNOMT74T.js.map +0 -1
- package/dist/chunk-I4G3SQPF.cjs.map +0 -1
- package/dist/chunk-JR6SX5RH.cjs +0 -268
- package/dist/chunk-JR6SX5RH.cjs.map +0 -1
- package/dist/chunk-KABFHAL7.cjs.map +0 -1
- package/dist/chunk-KH7XW7VV.js.map +0 -1
- package/dist/chunk-M35DF33T.js.map +0 -1
- package/dist/chunk-MFZR4QKM.cjs.map +0 -1
- package/dist/chunk-MX4DHSQP.cjs.map +0 -1
- package/dist/chunk-NAZ2RA4L.js +0 -254
- package/dist/chunk-NAZ2RA4L.js.map +0 -1
- package/dist/chunk-NG2RB5WL.js.map +0 -1
- package/dist/chunk-NNQ6A3RM.js.map +0 -1
- package/dist/chunk-OIFSOPSR.cjs.map +0 -1
- package/dist/chunk-QS3NQZVC.js.map +0 -1
- package/dist/chunk-SE6EGQSD.js.map +0 -1
- package/dist/chunk-SHSSRCFR.js +0 -246
- package/dist/chunk-SHSSRCFR.js.map +0 -1
- package/dist/chunk-U5EDAVOJ.cjs.map +0 -1
- package/dist/chunk-UPAJHMW3.cjs.map +0 -1
- package/dist/chunk-WGX7JH7E.cjs.map +0 -1
- package/dist/chunk-ZHNXLS3C.js.map +0 -1
- package/dist/ddl-CprnMXJ-.d.ts +0 -38
- package/dist/ddl-DJA7Lci5.d.cts +0 -38
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SQLWrapper } from 'drizzle-orm';
|
|
2
2
|
import { IndexBuilder } from 'drizzle-orm/pg-core';
|
|
3
3
|
import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
|
|
4
|
-
import { I as IndexDeclaration } from '../../types-
|
|
4
|
+
import { I as IndexDeclaration } from '../../types-BqFZTQmV.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
declare function buildPostgresNodeIndexBuilders(table: NodeIndexTable, indexes: readonly IndexDeclaration[]): readonly IndexBuilder[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SQLWrapper } from 'drizzle-orm';
|
|
2
2
|
import { IndexBuilder } from 'drizzle-orm/pg-core';
|
|
3
3
|
import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
|
|
4
|
-
import { I as IndexDeclaration } from '../../types-
|
|
4
|
+
import { I as IndexDeclaration } from '../../types-BqFZTQmV.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
declare function buildPostgresNodeIndexBuilders(table: NodeIndexTable, indexes: readonly IndexDeclaration[]): readonly IndexBuilder[];
|
package/dist/backend/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUMGZDVOA_cjs = require('../chunk-UMGZDVOA.cjs');
|
|
4
4
|
require('../chunk-HDL2ARHX.cjs');
|
|
5
5
|
require('../chunk-WODMN3Q2.cjs');
|
|
6
6
|
require('../chunk-3U5ABFDW.cjs');
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
7
|
+
var chunk5PRKMB24_cjs = require('../chunk-5PRKMB24.cjs');
|
|
8
|
+
require('../chunk-2QGYQBS2.cjs');
|
|
9
|
+
var chunkTQHGE7UC_cjs = require('../chunk-TQHGE7UC.cjs');
|
|
10
10
|
require('../chunk-OI2GQ25X.cjs');
|
|
11
11
|
require('../chunk-NAUA4PW5.cjs');
|
|
12
12
|
var chunkL3LQNR34_cjs = require('../chunk-L3LQNR34.cjs');
|
|
@@ -20,63 +20,71 @@ require('../chunk-N66HCGCY.cjs');
|
|
|
20
20
|
|
|
21
21
|
Object.defineProperty(exports, "deleteLegacyRecordedAnchorMap", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkUMGZDVOA_cjs.deleteLegacyRecordedAnchorMap; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "migrateLegacyRecordedTime", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkUMGZDVOA_cjs.migrateLegacyRecordedTime; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "migrateRecordedAnchor", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkUMGZDVOA_cjs.migrateRecordedAnchor; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "repairInvertedValidityWindows", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkUMGZDVOA_cjs.repairInvertedValidityWindows; }
|
|
32
36
|
});
|
|
33
37
|
Object.defineProperty(exports, "D1_MAX_BIND_PARAMETERS", {
|
|
34
38
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk5PRKMB24_cjs.D1_MAX_BIND_PARAMETERS; }
|
|
36
40
|
});
|
|
37
41
|
Object.defineProperty(exports, "DURABLE_OBJECT_MAX_BIND_PARAMETERS", {
|
|
38
42
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk5PRKMB24_cjs.DURABLE_OBJECT_MAX_BIND_PARAMETERS; }
|
|
40
44
|
});
|
|
41
45
|
Object.defineProperty(exports, "MODERN_SQLITE_MAX_BIND_PARAMETERS", {
|
|
42
46
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk5PRKMB24_cjs.MODERN_SQLITE_MAX_BIND_PARAMETERS; }
|
|
44
48
|
});
|
|
45
49
|
Object.defineProperty(exports, "POSTGRES_CAPABILITIES", {
|
|
46
50
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunk5PRKMB24_cjs.POSTGRES_CAPABILITIES; }
|
|
48
52
|
});
|
|
49
53
|
Object.defineProperty(exports, "POSTGRES_MAX_BIND_PARAMETERS", {
|
|
50
54
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunk5PRKMB24_cjs.POSTGRES_MAX_BIND_PARAMETERS; }
|
|
52
56
|
});
|
|
53
57
|
Object.defineProperty(exports, "SQLITE_CAPABILITIES", {
|
|
54
58
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunk5PRKMB24_cjs.SQLITE_CAPABILITIES; }
|
|
56
60
|
});
|
|
57
61
|
Object.defineProperty(exports, "SQLITE_MAX_BIND_PARAMETERS", {
|
|
58
62
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunk5PRKMB24_cjs.SQLITE_MAX_BIND_PARAMETERS; }
|
|
60
64
|
});
|
|
61
65
|
Object.defineProperty(exports, "isLiveNodeRow", {
|
|
62
66
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunk5PRKMB24_cjs.isLiveNodeRow; }
|
|
64
68
|
});
|
|
65
69
|
Object.defineProperty(exports, "isTombstonedNodeRow", {
|
|
66
70
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunk5PRKMB24_cjs.isTombstonedNodeRow; }
|
|
68
72
|
});
|
|
69
73
|
Object.defineProperty(exports, "normalizeGraphAnalyticsCapabilities", {
|
|
70
74
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunk5PRKMB24_cjs.normalizeGraphAnalyticsCapabilities; }
|
|
72
76
|
});
|
|
73
77
|
Object.defineProperty(exports, "rowPropsToJsonText", {
|
|
74
78
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunk5PRKMB24_cjs.rowPropsToJsonText; }
|
|
76
80
|
});
|
|
77
81
|
Object.defineProperty(exports, "rowPropsToObject", {
|
|
78
82
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunk5PRKMB24_cjs.rowPropsToObject; }
|
|
84
|
+
});
|
|
85
|
+
Object.defineProperty(exports, "resolveStampedValidityLowerBound", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: function () { return chunkTQHGE7UC_cjs.resolveStampedValidityLowerBound; }
|
|
80
88
|
});
|
|
81
89
|
Object.defineProperty(exports, "ALL_FULLTEXT_MODES", {
|
|
82
90
|
enumerable: true,
|
package/dist/backend/index.d.cts
CHANGED
|
@@ -1,61 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
export { A as ALL_FULLTEXT_MODES, a as ALL_META_EDGE_NAMES, b as AdapterBackend, c as AdapterBackendTransactions, B as BASE_CONTRIBUTION_OWNER, d as BackendCapabilities, e as BackendIdentity, f as BackendLifecycle, g as BackendMaintenance, h as BackendTransactions, C as Cardinality, i as CheckUniqueBatchParams, j as CheckUniqueParams, k as ClaimIndexMaterializationParams, l as Collation, m as CommitSchemaVersionExpected, n as CommitSchemaVersionIfKindsEmptyResult, o as CommitSchemaVersionParams, p as CompiledRowsSql, q as CompiledSelectSql, r as CompiledStatementSql, s as CompiledTemporaryStatementSql, t as ContributionCapabilities, u as ContributionDiagnostic, v as ContributionDiagnosticState, w as ContributionMaterializationBackend, x as ContributionMaterializationIdentity, y as ContributionMaterializationRow, z as ContributionProbeContribution, D as ContributionProbeEntry, E as ContributionProbeResult, F as ContributionProbeState, G as ContributionRebuildResult, H as ContributionRebuildScope, J as ContributionRepairEntry, K as ContributionRepairResult, L as ContributionRepopulationStats, M as CountEdgesByKindParams, N as CountEdgesFromParams, O as CountNodesByKindParams, P as CreateVectorIndexParams, Q as D1_MAX_BIND_PARAMETERS, R as DURABLE_OBJECT_MAX_BIND_PARAMETERS, S as DeleteBehavior, T as DeleteEdgeParams, U as DeleteEdgesBatchParams, V as DeleteEmbeddingParams, W as DeleteFulltextBatchParams, X as DeleteFulltextParams, Y as DeleteNodeParams, Z as DeleteUniqueParams, _ as DialectAdapter, $ as DialectCapabilities, a0 as DialectRecursiveQueryStrategy, a1 as DialectStandardQueryStrategy, a2 as DialectVectorPredicateStrategy, a3 as DropVectorIndexParams, a4 as EdgeEntityReadBackend, a5 as EdgeEntityWriteBackend, a6 as EdgeExistsBetweenParams, a7 as EdgeIndexDeclaration, a8 as EdgeIndexDirection, a9 as EdgeRow, aa as EndpointExistence, ab as ExtensionArrayItemType, ac as ExtensionArrayProperty, ad as ExtensionBooleanProperty, ae as ExtensionEdgeDef, af as ExtensionEdgeIndex, ag as ExtensionEmbeddingModifier, ah as ExtensionEnumProperty, ai as ExtensionIndex, aj as ExtensionIndexWhere, ak as ExtensionNodeDef, al as ExtensionNodeIndex, am as ExtensionNumberProperty, an as ExtensionObjectFieldProperty, ao as ExtensionObjectProperty, ap as ExtensionOntologyRelation, aq as ExtensionPropertyModifiers, ar as ExtensionPropertyType, as as ExtensionSearchableModifier, at as ExtensionStringProperty, au as ExtensionUniqueConstraint, av as ExtensionUniqueWhere, aw as FULLTEXT_CONTRIBUTION_NAME, ax as FilteredApproximateSearch, ay as FilteredApproximateSearchMode, az as FindEdgesByEndpointSetParams, aA as FindEdgesByHeterogeneousEndpointSetParams, aB as FindEdgesByKindParams, aC as FindEdgesConnectedToParams, aD as FindNodesByKindParams, aE as FulltextBatchRow, aF as FulltextCapabilities, aG as FulltextOperationBackend, aH as FulltextQueryMode, aI as FulltextSearchParams, aJ as FulltextSearchResult, aK as FulltextStrategy, aL as GraphAnalyticsCapabilities, aM as GraphBackend, aN as GraphEntityReadBackend, aO as GraphEntityWriteBackend, aP as GraphExtension, aQ as GraphExtensionVersion, aR as GraphIdentityConfig, aS as GraphLifecycleBackend, aT as GraphReadBackend, aU as HardDeleteEdgeParams, aV as HardDeleteNodeParams, aW as HardDeleteUniquesByNodeIdsParams, aX as HybridSearchParams, aY as HybridSearchRow, aZ as IdentityTableNames, a_ as InListParameterOptions, I as IndexDeclaration, a$ as IndexDeclarationBase, b0 as IndexEntity, b1 as IndexMaterializationBackend, b2 as IndexMaterializationRow, b3 as IndexOrigin, b4 as IndexScope, b5 as IndexWhereExpression, b6 as IndexWhereLiteral, b7 as IndexWhereOp, b8 as IndexWhereOperand, b9 as InferenceType, ba as InsertEdgeParams, bb as InsertNodeParams, bc as InsertSchemaParams, bd as InsertUniqueParams, be as IntentSql, bf as JsonPointer, bg as JsonSchema, bh as JsonValue, bi as KindAnnotations, bj as KindEntity, bk as KindRemovalRow, bl as LiveNodeRow, bm as LockSchemaVersionForWriteParams, bn as MODERN_SQLITE_MAX_BIND_PARAMETERS, bo as MetaEdgeName, bp as NodeEntityReadBackend, bq as NodeEntityWriteBackend, br as NodeIndexDeclaration, bs as NodeRow, bt as NullCheckOp, bu as POSTGRES_CAPABILITIES, bv as POSTGRES_MAX_BIND_PARAMETERS, bw as Placeholder, bx as PopulatedSchemaKind, by as QueryExecutionBackend, bz as RawQueryExecutionBackend, bA as RawStatementExecutionBackend, bB as RecordContributionMaterializationParams, bC as RecordIndexMaterializationParams, bD as RecordKindRemovalParams, bE as RelationalIndexDeclaration, bF as RelationalIndexMethod, bG as ReleaseIndexMaterializationClaimParams, bH as RemovalMaterializationBackend, bI as RenderedSql, bJ as ResolvedSqlTableNames, bK as RowProps, bL as SQLITE_CAPABILITIES, bM as SQLITE_MAX_BIND_PARAMETERS, bN as SchemaCommitBackend, bO as SchemaCommitPreflightBackend, bP as SchemaKindEmptinessProbe, bQ as SchemaReadBackend, bR as SchemaVersionRow, bS as SchemaWriteFenceBackend, bT as SerializedClosures, bU as SerializedEdgeDef, bV as SerializedMetaEdge, bW as SerializedNodeDef, bX as SerializedOntology, bY as SerializedOntologyRelation, bZ as SerializedSchema, b_ as SerializedUniqueConstraint, b$ as SetActiveVersionParams, c0 as SqlChunk, c1 as SqlCompilationBackend, c2 as SqlDialect, c3 as SqlFragment, c4 as SqlIdentifierChunk, c5 as SqlIntent, c6 as SqlParameterChunk, c7 as SqlPlaceholderChunk, c8 as SqlTableNames, c9 as SqlTag, ca as SqlTextChunk, cb as StrategyTableContribution, cc as SystemColumnName, cd as TableContribution, ce as TemporalMode, cf as TombstonedNodeRow, cg as TransactionBackend, ch as TransactionOptions, ci as TransactionReadBackend, cj as TrustedImportOptions, ck as TrustedImportSession, cl as UniqueConstraintBackend, cm as UniqueRow, cn as UniquenessScope, co as UpdateEdgeParams, cp as UpdateNodeParams, cq as UpdateNodeSetParams, cr as UpdateNodeSetResult, cs as UpsertEmbeddingBatchParams, ct as UpsertEmbeddingBatchRow, cu as UpsertEmbeddingParams, cv as UpsertFulltextBatchParams, cw as UpsertFulltextParams, cx as VECTOR_CONTRIBUTION_PREFIX, cy as ValueType, cz as VectorCapabilities, cA as VectorIndexDeclaration, cB as VectorIndexImplementation, cC as VectorIndexMetric, cD as VectorIndexParams, cE as VectorIndexType, cF as VectorMetric, cG as VectorOperationBackend, cH as VectorSearchFrontierTuning, cI as VectorSearchParams, cJ as VectorSearchResult, cK as VectorSlot, cL as VectorStrategy, cM as assertFiniteEmbedding, cN as assertVectorMinScore, cO as assertVectorSearchLimit, cP as buildFulltextCapabilities, cQ as buildVectorCapabilities, cR as fts5Strategy, cS as isLiveNodeRow, cT as isSqlFragment, cU as isSqlPlaceholder, cV as isTombstonedNodeRow, cW as normalizeGraphAnalyticsCapabilities, cX as quoteIdentifier, cY as renderPostgres, cZ as renderSql, c_ as renderSqlInline, c$ as renderSqlite, d0 as rowPropsToJsonText, d1 as rowPropsToObject, d2 as shortHash, d3 as sql, d4 as tsvectorStrategy, d5 as vectorMinScoreCondition, d6 as vectorPhysicalName, d7 as vectorScoreExpression } from '../types-BqFZTQmV.cjs';
|
|
2
|
+
export { D as DeleteLegacyRecordedAnchorMapOptions, M as MigrateLegacyRecordedTimeOptions, a as MigrateLegacyRecordedTimeResult, b as MigrateRecordedAnchorOptions, R as RepairInvertedWindowsOptions, c as RepairInvertedWindowsReport, d as RepairRelation, e as RepairRelationScope, f as deleteLegacyRecordedAnchorMap, m as migrateLegacyRecordedTime, g as migrateRecordedAnchor, r as repairInvertedValidityWindows } from '../repair-validity-windows-BFNZvd_H.cjs';
|
|
3
|
+
export { R as RecordedInstant } from '../temporal-5GqpYCk2.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
type MigrateLegacyRecordedTimeOptions = Readonly<{
|
|
13
|
-
backend: GraphBackend;
|
|
14
|
-
/** Override the backend's recorded table names. */
|
|
15
|
-
tableNames?: Partial<SqlTableNames> | undefined;
|
|
16
|
-
/** Override the durable legacy-anchor mapping table name. */
|
|
17
|
-
mappingTableName?: string | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
type MigrateLegacyRecordedTimeResult = Readonly<{
|
|
20
|
-
/** `true` when timestamp columns were rewritten during this call. */
|
|
21
|
-
migrated: boolean;
|
|
22
|
-
/** Number of graphs represented in the legacy commit order. */
|
|
23
|
-
graphs: number;
|
|
24
|
-
/** Number of distinct legacy anchors available for remapping. */
|
|
25
|
-
anchors: number;
|
|
26
|
-
/** Physical table retaining the old-anchor → revision mapping. */
|
|
27
|
-
mappingTableName: string;
|
|
28
|
-
}>;
|
|
29
|
-
type MigrateRecordedAnchorOptions = Readonly<{
|
|
30
|
-
backend: Pick<GraphBackend, "dialect" | "execute" | "tableNames">;
|
|
31
|
-
graphId: string;
|
|
32
|
-
anchor: string;
|
|
33
|
-
tableNames?: Partial<SqlTableNames> | undefined;
|
|
34
|
-
mappingTableName?: string | undefined;
|
|
35
|
-
}>;
|
|
36
|
-
type DeleteLegacyRecordedAnchorMapOptions = Readonly<{
|
|
37
|
-
backend: Pick<GraphBackend, "dialect" | "execute" | "executeStatement" | "tableNames" | "transaction">;
|
|
38
|
-
graphId: string;
|
|
39
|
-
tableNames?: Partial<SqlTableNames> | undefined;
|
|
40
|
-
mappingTableName?: string | undefined;
|
|
41
|
-
/** Drop the mapping table when this deletion leaves it empty. */
|
|
42
|
-
dropWhenEmpty?: boolean | undefined;
|
|
43
|
-
}>;
|
|
44
|
-
/**
|
|
45
|
-
* Rewrites timestamp-only recorded relations to numeric revisions.
|
|
7
|
+
* THE lower bound a write that STAMPS its own start stores, decided against the
|
|
8
|
+
* instant it is about to stamp. One owner for every such write, so no two of them
|
|
9
|
+
* can spell the decision differently. Three inputs, three outcomes:
|
|
46
10
|
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
*
|
|
57
|
-
*
|
|
11
|
+
* - a stated `null` → no lower bound (a CONFIRMED open-left window, which is
|
|
12
|
+
* how interchange round-trips a row that has none);
|
|
13
|
+
* - a stated string → that bound, the caller's own assertion, verbatim;
|
|
14
|
+
* - nothing stated → the write instant, UNLESS stamping it would leave the
|
|
15
|
+
* window readable at no instant. A row carrying only a
|
|
16
|
+
* `validTo` at or before the write instant is "born already
|
|
17
|
+
* ended": its start is UNKNOWN, not at-or-after its end, so
|
|
18
|
+
* it stores no lower bound and reads back at every `asOf`
|
|
19
|
+
* before that end (issue #407).
|
|
20
|
+
*
|
|
21
|
+
* The comparison against `validTo` is NON-STRICT: `validTo === writeInstant`
|
|
22
|
+
* stores no bound too. A stamped `[T, T)` is a successful write no coordinate can
|
|
23
|
+
* observe, and the millisecond of skew between a caller's own `Date.now()` and the
|
|
24
|
+
* backend's sample is enough to land there — so the rule is total, and there is no
|
|
25
|
+
* input for which a stamped bound yields an empty window.
|
|
26
|
+
*
|
|
27
|
+
* The write instant is a PARAMETER, not a clock read: the caller passes the very
|
|
28
|
+
* value it binds into `created_at`/`updated_at` (or, for a resurrection, the
|
|
29
|
+
* instant its guard judged), so the decision and the stamp cannot come from two
|
|
30
|
+
* different samples (issue #413's failure mode). This function has no way to
|
|
31
|
+
* sample a clock, which is what makes that structural rather than tested.
|
|
32
|
+
*
|
|
33
|
+
* PRECONDITION: as {@link isEmptyValidityWindow}. This is called BELOW the
|
|
34
|
+
* validation boundary, on a public `GraphBackend` surface, so canonicality is
|
|
35
|
+
* established by whoever reached the backend: store paths through
|
|
36
|
+
* {@link validateOptionalCanonicalIsoDate}, interchange import through its own
|
|
37
|
+
* window validator, trusted import through its per-chunk format check. A direct
|
|
38
|
+
* `GraphBackend` caller establishes it itself — a pre-existing property of that
|
|
39
|
+
* surface, written down here rather than left implicit.
|
|
58
40
|
*/
|
|
59
|
-
declare function
|
|
41
|
+
declare function resolveStampedValidityLowerBound(statedValidFrom: string | null | undefined, validTo: string | undefined, writeInstant: string): string | undefined;
|
|
60
42
|
|
|
61
|
-
export {
|
|
43
|
+
export { resolveStampedValidityLowerBound };
|
package/dist/backend/index.d.ts
CHANGED
|
@@ -1,61 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
export { A as ALL_FULLTEXT_MODES, a as ALL_META_EDGE_NAMES, b as AdapterBackend, c as AdapterBackendTransactions, B as BASE_CONTRIBUTION_OWNER, d as BackendCapabilities, e as BackendIdentity, f as BackendLifecycle, g as BackendMaintenance, h as BackendTransactions, C as Cardinality, i as CheckUniqueBatchParams, j as CheckUniqueParams, k as ClaimIndexMaterializationParams, l as Collation, m as CommitSchemaVersionExpected, n as CommitSchemaVersionIfKindsEmptyResult, o as CommitSchemaVersionParams, p as CompiledRowsSql, q as CompiledSelectSql, r as CompiledStatementSql, s as CompiledTemporaryStatementSql, t as ContributionCapabilities, u as ContributionDiagnostic, v as ContributionDiagnosticState, w as ContributionMaterializationBackend, x as ContributionMaterializationIdentity, y as ContributionMaterializationRow, z as ContributionProbeContribution, D as ContributionProbeEntry, E as ContributionProbeResult, F as ContributionProbeState, G as ContributionRebuildResult, H as ContributionRebuildScope, J as ContributionRepairEntry, K as ContributionRepairResult, L as ContributionRepopulationStats, M as CountEdgesByKindParams, N as CountEdgesFromParams, O as CountNodesByKindParams, P as CreateVectorIndexParams, Q as D1_MAX_BIND_PARAMETERS, R as DURABLE_OBJECT_MAX_BIND_PARAMETERS, S as DeleteBehavior, T as DeleteEdgeParams, U as DeleteEdgesBatchParams, V as DeleteEmbeddingParams, W as DeleteFulltextBatchParams, X as DeleteFulltextParams, Y as DeleteNodeParams, Z as DeleteUniqueParams, _ as DialectAdapter, $ as DialectCapabilities, a0 as DialectRecursiveQueryStrategy, a1 as DialectStandardQueryStrategy, a2 as DialectVectorPredicateStrategy, a3 as DropVectorIndexParams, a4 as EdgeEntityReadBackend, a5 as EdgeEntityWriteBackend, a6 as EdgeExistsBetweenParams, a7 as EdgeIndexDeclaration, a8 as EdgeIndexDirection, a9 as EdgeRow, aa as EndpointExistence, ab as ExtensionArrayItemType, ac as ExtensionArrayProperty, ad as ExtensionBooleanProperty, ae as ExtensionEdgeDef, af as ExtensionEdgeIndex, ag as ExtensionEmbeddingModifier, ah as ExtensionEnumProperty, ai as ExtensionIndex, aj as ExtensionIndexWhere, ak as ExtensionNodeDef, al as ExtensionNodeIndex, am as ExtensionNumberProperty, an as ExtensionObjectFieldProperty, ao as ExtensionObjectProperty, ap as ExtensionOntologyRelation, aq as ExtensionPropertyModifiers, ar as ExtensionPropertyType, as as ExtensionSearchableModifier, at as ExtensionStringProperty, au as ExtensionUniqueConstraint, av as ExtensionUniqueWhere, aw as FULLTEXT_CONTRIBUTION_NAME, ax as FilteredApproximateSearch, ay as FilteredApproximateSearchMode, az as FindEdgesByEndpointSetParams, aA as FindEdgesByHeterogeneousEndpointSetParams, aB as FindEdgesByKindParams, aC as FindEdgesConnectedToParams, aD as FindNodesByKindParams, aE as FulltextBatchRow, aF as FulltextCapabilities, aG as FulltextOperationBackend, aH as FulltextQueryMode, aI as FulltextSearchParams, aJ as FulltextSearchResult, aK as FulltextStrategy, aL as GraphAnalyticsCapabilities, aM as GraphBackend, aN as GraphEntityReadBackend, aO as GraphEntityWriteBackend, aP as GraphExtension, aQ as GraphExtensionVersion, aR as GraphIdentityConfig, aS as GraphLifecycleBackend, aT as GraphReadBackend, aU as HardDeleteEdgeParams, aV as HardDeleteNodeParams, aW as HardDeleteUniquesByNodeIdsParams, aX as HybridSearchParams, aY as HybridSearchRow, aZ as IdentityTableNames, a_ as InListParameterOptions, I as IndexDeclaration, a$ as IndexDeclarationBase, b0 as IndexEntity, b1 as IndexMaterializationBackend, b2 as IndexMaterializationRow, b3 as IndexOrigin, b4 as IndexScope, b5 as IndexWhereExpression, b6 as IndexWhereLiteral, b7 as IndexWhereOp, b8 as IndexWhereOperand, b9 as InferenceType, ba as InsertEdgeParams, bb as InsertNodeParams, bc as InsertSchemaParams, bd as InsertUniqueParams, be as IntentSql, bf as JsonPointer, bg as JsonSchema, bh as JsonValue, bi as KindAnnotations, bj as KindEntity, bk as KindRemovalRow, bl as LiveNodeRow, bm as LockSchemaVersionForWriteParams, bn as MODERN_SQLITE_MAX_BIND_PARAMETERS, bo as MetaEdgeName, bp as NodeEntityReadBackend, bq as NodeEntityWriteBackend, br as NodeIndexDeclaration, bs as NodeRow, bt as NullCheckOp, bu as POSTGRES_CAPABILITIES, bv as POSTGRES_MAX_BIND_PARAMETERS, bw as Placeholder, bx as PopulatedSchemaKind, by as QueryExecutionBackend, bz as RawQueryExecutionBackend, bA as RawStatementExecutionBackend, bB as RecordContributionMaterializationParams, bC as RecordIndexMaterializationParams, bD as RecordKindRemovalParams, bE as RelationalIndexDeclaration, bF as RelationalIndexMethod, bG as ReleaseIndexMaterializationClaimParams, bH as RemovalMaterializationBackend, bI as RenderedSql, bJ as ResolvedSqlTableNames, bK as RowProps, bL as SQLITE_CAPABILITIES, bM as SQLITE_MAX_BIND_PARAMETERS, bN as SchemaCommitBackend, bO as SchemaCommitPreflightBackend, bP as SchemaKindEmptinessProbe, bQ as SchemaReadBackend, bR as SchemaVersionRow, bS as SchemaWriteFenceBackend, bT as SerializedClosures, bU as SerializedEdgeDef, bV as SerializedMetaEdge, bW as SerializedNodeDef, bX as SerializedOntology, bY as SerializedOntologyRelation, bZ as SerializedSchema, b_ as SerializedUniqueConstraint, b$ as SetActiveVersionParams, c0 as SqlChunk, c1 as SqlCompilationBackend, c2 as SqlDialect, c3 as SqlFragment, c4 as SqlIdentifierChunk, c5 as SqlIntent, c6 as SqlParameterChunk, c7 as SqlPlaceholderChunk, c8 as SqlTableNames, c9 as SqlTag, ca as SqlTextChunk, cb as StrategyTableContribution, cc as SystemColumnName, cd as TableContribution, ce as TemporalMode, cf as TombstonedNodeRow, cg as TransactionBackend, ch as TransactionOptions, ci as TransactionReadBackend, cj as TrustedImportOptions, ck as TrustedImportSession, cl as UniqueConstraintBackend, cm as UniqueRow, cn as UniquenessScope, co as UpdateEdgeParams, cp as UpdateNodeParams, cq as UpdateNodeSetParams, cr as UpdateNodeSetResult, cs as UpsertEmbeddingBatchParams, ct as UpsertEmbeddingBatchRow, cu as UpsertEmbeddingParams, cv as UpsertFulltextBatchParams, cw as UpsertFulltextParams, cx as VECTOR_CONTRIBUTION_PREFIX, cy as ValueType, cz as VectorCapabilities, cA as VectorIndexDeclaration, cB as VectorIndexImplementation, cC as VectorIndexMetric, cD as VectorIndexParams, cE as VectorIndexType, cF as VectorMetric, cG as VectorOperationBackend, cH as VectorSearchFrontierTuning, cI as VectorSearchParams, cJ as VectorSearchResult, cK as VectorSlot, cL as VectorStrategy, cM as assertFiniteEmbedding, cN as assertVectorMinScore, cO as assertVectorSearchLimit, cP as buildFulltextCapabilities, cQ as buildVectorCapabilities, cR as fts5Strategy, cS as isLiveNodeRow, cT as isSqlFragment, cU as isSqlPlaceholder, cV as isTombstonedNodeRow, cW as normalizeGraphAnalyticsCapabilities, cX as quoteIdentifier, cY as renderPostgres, cZ as renderSql, c_ as renderSqlInline, c$ as renderSqlite, d0 as rowPropsToJsonText, d1 as rowPropsToObject, d2 as shortHash, d3 as sql, d4 as tsvectorStrategy, d5 as vectorMinScoreCondition, d6 as vectorPhysicalName, d7 as vectorScoreExpression } from '../types-BqFZTQmV.js';
|
|
2
|
+
export { D as DeleteLegacyRecordedAnchorMapOptions, M as MigrateLegacyRecordedTimeOptions, a as MigrateLegacyRecordedTimeResult, b as MigrateRecordedAnchorOptions, R as RepairInvertedWindowsOptions, c as RepairInvertedWindowsReport, d as RepairRelation, e as RepairRelationScope, f as deleteLegacyRecordedAnchorMap, m as migrateLegacyRecordedTime, g as migrateRecordedAnchor, r as repairInvertedValidityWindows } from '../repair-validity-windows-DlUSqwCg.js';
|
|
3
|
+
export { R as RecordedInstant } from '../temporal-CbnLzTmM.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
type MigrateLegacyRecordedTimeOptions = Readonly<{
|
|
13
|
-
backend: GraphBackend;
|
|
14
|
-
/** Override the backend's recorded table names. */
|
|
15
|
-
tableNames?: Partial<SqlTableNames> | undefined;
|
|
16
|
-
/** Override the durable legacy-anchor mapping table name. */
|
|
17
|
-
mappingTableName?: string | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
type MigrateLegacyRecordedTimeResult = Readonly<{
|
|
20
|
-
/** `true` when timestamp columns were rewritten during this call. */
|
|
21
|
-
migrated: boolean;
|
|
22
|
-
/** Number of graphs represented in the legacy commit order. */
|
|
23
|
-
graphs: number;
|
|
24
|
-
/** Number of distinct legacy anchors available for remapping. */
|
|
25
|
-
anchors: number;
|
|
26
|
-
/** Physical table retaining the old-anchor → revision mapping. */
|
|
27
|
-
mappingTableName: string;
|
|
28
|
-
}>;
|
|
29
|
-
type MigrateRecordedAnchorOptions = Readonly<{
|
|
30
|
-
backend: Pick<GraphBackend, "dialect" | "execute" | "tableNames">;
|
|
31
|
-
graphId: string;
|
|
32
|
-
anchor: string;
|
|
33
|
-
tableNames?: Partial<SqlTableNames> | undefined;
|
|
34
|
-
mappingTableName?: string | undefined;
|
|
35
|
-
}>;
|
|
36
|
-
type DeleteLegacyRecordedAnchorMapOptions = Readonly<{
|
|
37
|
-
backend: Pick<GraphBackend, "dialect" | "execute" | "executeStatement" | "tableNames" | "transaction">;
|
|
38
|
-
graphId: string;
|
|
39
|
-
tableNames?: Partial<SqlTableNames> | undefined;
|
|
40
|
-
mappingTableName?: string | undefined;
|
|
41
|
-
/** Drop the mapping table when this deletion leaves it empty. */
|
|
42
|
-
dropWhenEmpty?: boolean | undefined;
|
|
43
|
-
}>;
|
|
44
|
-
/**
|
|
45
|
-
* Rewrites timestamp-only recorded relations to numeric revisions.
|
|
7
|
+
* THE lower bound a write that STAMPS its own start stores, decided against the
|
|
8
|
+
* instant it is about to stamp. One owner for every such write, so no two of them
|
|
9
|
+
* can spell the decision differently. Three inputs, three outcomes:
|
|
46
10
|
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
*
|
|
57
|
-
*
|
|
11
|
+
* - a stated `null` → no lower bound (a CONFIRMED open-left window, which is
|
|
12
|
+
* how interchange round-trips a row that has none);
|
|
13
|
+
* - a stated string → that bound, the caller's own assertion, verbatim;
|
|
14
|
+
* - nothing stated → the write instant, UNLESS stamping it would leave the
|
|
15
|
+
* window readable at no instant. A row carrying only a
|
|
16
|
+
* `validTo` at or before the write instant is "born already
|
|
17
|
+
* ended": its start is UNKNOWN, not at-or-after its end, so
|
|
18
|
+
* it stores no lower bound and reads back at every `asOf`
|
|
19
|
+
* before that end (issue #407).
|
|
20
|
+
*
|
|
21
|
+
* The comparison against `validTo` is NON-STRICT: `validTo === writeInstant`
|
|
22
|
+
* stores no bound too. A stamped `[T, T)` is a successful write no coordinate can
|
|
23
|
+
* observe, and the millisecond of skew between a caller's own `Date.now()` and the
|
|
24
|
+
* backend's sample is enough to land there — so the rule is total, and there is no
|
|
25
|
+
* input for which a stamped bound yields an empty window.
|
|
26
|
+
*
|
|
27
|
+
* The write instant is a PARAMETER, not a clock read: the caller passes the very
|
|
28
|
+
* value it binds into `created_at`/`updated_at` (or, for a resurrection, the
|
|
29
|
+
* instant its guard judged), so the decision and the stamp cannot come from two
|
|
30
|
+
* different samples (issue #413's failure mode). This function has no way to
|
|
31
|
+
* sample a clock, which is what makes that structural rather than tested.
|
|
32
|
+
*
|
|
33
|
+
* PRECONDITION: as {@link isEmptyValidityWindow}. This is called BELOW the
|
|
34
|
+
* validation boundary, on a public `GraphBackend` surface, so canonicality is
|
|
35
|
+
* established by whoever reached the backend: store paths through
|
|
36
|
+
* {@link validateOptionalCanonicalIsoDate}, interchange import through its own
|
|
37
|
+
* window validator, trusted import through its per-chunk format check. A direct
|
|
38
|
+
* `GraphBackend` caller establishes it itself — a pre-existing property of that
|
|
39
|
+
* surface, written down here rather than left implicit.
|
|
58
40
|
*/
|
|
59
|
-
declare function
|
|
41
|
+
declare function resolveStampedValidityLowerBound(statedValidFrom: string | null | undefined, validTo: string | undefined, writeInstant: string): string | undefined;
|
|
60
42
|
|
|
61
|
-
export {
|
|
43
|
+
export { resolveStampedValidityLowerBound };
|
package/dist/backend/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor } from '../chunk-
|
|
1
|
+
export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor, repairInvertedValidityWindows } from '../chunk-NACVVDWB.js';
|
|
2
2
|
import '../chunk-6SWPJEYN.js';
|
|
3
3
|
import '../chunk-OMZ37BM2.js';
|
|
4
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-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
|
|
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
8
|
import '../chunk-SDBBMD4N.js';
|
|
9
9
|
import '../chunk-2EBMPJBO.js';
|
|
10
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';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkPFBRJBUL_cjs = require('../../chunk-PFBRJBUL.cjs');
|
|
4
|
+
require('../../chunk-WCCATHMB.cjs');
|
|
5
5
|
require('../../chunk-ROR5ZR6A.cjs');
|
|
6
6
|
require('../../chunk-CICO5GXD.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-FA2AFWLP.cjs');
|
|
8
8
|
var chunkHDL2ARHX_cjs = require('../../chunk-HDL2ARHX.cjs');
|
|
9
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
14
|
require('../../chunk-OI2GQ25X.cjs');
|
|
15
15
|
require('../../chunk-ZY4GXIVN.cjs');
|
|
16
16
|
require('../../chunk-NAUA4PW5.cjs');
|
|
@@ -24,7 +24,7 @@ require('../../chunk-N66HCGCY.cjs');
|
|
|
24
24
|
|
|
25
25
|
Object.defineProperty(exports, "createPostgresBackend", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkPFBRJBUL_cjs.createPostgresBackend; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "createPostgresTables", {
|
|
30
30
|
enumerable: true,
|
|
@@ -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,14 +1,14 @@
|
|
|
1
|
-
export { createPostgresBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { createPostgresBackend } from '../../chunk-OD4SSY2U.js';
|
|
2
|
+
import '../../chunk-ACGSAMD3.js';
|
|
3
3
|
import '../../chunk-JONXFAPO.js';
|
|
4
4
|
import '../../chunk-OVI7IXYX.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-YIURNGXI.js';
|
|
6
6
|
export { createPostgresTables, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-6SWPJEYN.js';
|
|
7
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
12
|
import '../../chunk-SDBBMD4N.js';
|
|
13
13
|
import '../../chunk-K34OPSJK.js';
|
|
14
14
|
import '../../chunk-2EBMPJBO.js';
|