graphddb 0.5.1 → 0.5.3
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 +10 -0
- package/dist/cdc/index.d.ts +37 -0
- package/dist/cdc/index.js +29 -0
- package/dist/{chunk-B3GWIWT6.js → chunk-CCIVET5K.js} +74 -1026
- package/dist/{chunk-EMJHTUA4.js → chunk-M6URQOAW.js} +4 -1
- package/dist/chunk-MMVHOUM4.js +24 -0
- package/dist/chunk-PDUVTYC5.js +992 -0
- package/dist/{chunk-FI63YKK5.js → chunk-Y7XV5QL2.js} +3564 -3549
- package/dist/cli.js +1174 -21
- package/dist/from-change-DQK2Jm9R.d.ts +327 -0
- package/dist/index-CtDBo8Se.d.ts +690 -0
- package/dist/index.d.ts +18 -1113
- package/dist/index.js +33 -41
- package/dist/linter/index.d.ts +126 -0
- package/dist/linter/index.js +36 -0
- package/dist/{types-B9rJ1z3H.d.ts → maintenance-view-adapter-D5t9taTE.d.ts} +304 -182
- package/dist/registry-BD_5Rm5C.d.ts +76 -0
- package/dist/relation-depth-DLkhG0xX.d.ts +36 -0
- package/dist/spec/index.d.ts +4 -0
- package/dist/spec/index.js +54 -0
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +5 -3
- package/docs/doc-sample.md +263 -0
- package/docs/docs-generation.md +183 -0
- package/package.json +49 -3
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
buildMaintenanceGraph,
|
|
8
8
|
buildPutInput,
|
|
9
9
|
resolveModelClass
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CCIVET5K.js";
|
|
11
11
|
|
|
12
12
|
// src/cdc/prng.ts
|
|
13
13
|
var SeededRandom = class {
|
|
@@ -793,6 +793,9 @@ function createMaintenanceDrainHandler(opts = {}) {
|
|
|
793
793
|
}
|
|
794
794
|
|
|
795
795
|
export {
|
|
796
|
+
SeededRandom,
|
|
797
|
+
hashString,
|
|
798
|
+
shardIdFor,
|
|
796
799
|
CdcEmulator,
|
|
797
800
|
createCdcEmulator,
|
|
798
801
|
pathField,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/linter/rules/query-boundary.ts
|
|
2
|
+
var queryBoundaryRule = {
|
|
3
|
+
id: "query-boundary",
|
|
4
|
+
severity: "error",
|
|
5
|
+
check(metadata) {
|
|
6
|
+
const results = [];
|
|
7
|
+
for (const gsi of metadata.gsiDefinitions) {
|
|
8
|
+
if (!gsi.unique) {
|
|
9
|
+
results.push({
|
|
10
|
+
ruleId: "query-boundary",
|
|
11
|
+
severity: "error",
|
|
12
|
+
message: `GSI '${gsi.indexName}' on entity '${metadata.prefix}' is not marked as unique. Using query() on a non-unique GSI may return multiple items. Use list() instead, or mark the GSI as unique if it guarantees single results.`,
|
|
13
|
+
entity: metadata.prefix,
|
|
14
|
+
field: gsi.indexName
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return results;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
queryBoundaryRule
|
|
24
|
+
};
|