graphddb 1.0.0 → 1.0.1
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/cdc/index.js +3 -3
- package/dist/{chunk-PHXUFAY2.js → chunk-4JIFOE3T.js} +2 -2
- package/dist/{chunk-VECUS35D.js → chunk-4NK6I54V.js} +2 -2
- package/dist/{chunk-5NBQYFM5.js → chunk-CSLEDEPV.js} +7 -4
- package/dist/{chunk-7OCXY4R6.js → chunk-F6U7O6BC.js} +1 -1
- package/dist/{chunk-HLFNCKFV.js → chunk-FJV2GOIJ.js} +8 -2
- package/dist/{chunk-GWWRXIHF.js → chunk-VVJQPZ75.js} +10 -0
- package/dist/cli.js +5 -5
- package/dist/index.js +3 -3
- package/dist/internal/index.js +4 -4
- package/dist/spec/index.js +5 -5
- package/dist/testing/index.js +3 -3
- package/dist/transform/index.js +1 -1
- package/package.json +1 -1
package/dist/cdc/index.js
CHANGED
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
createMaintenanceDrainHandler,
|
|
9
9
|
hashString,
|
|
10
10
|
shardIdFor
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-4NK6I54V.js";
|
|
12
12
|
import {
|
|
13
13
|
buildSubscribeHandler,
|
|
14
14
|
parseChange
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-F6U7O6BC.js";
|
|
16
|
+
import "../chunk-VVJQPZ75.js";
|
|
17
17
|
import "../chunk-XTWXMOHD.js";
|
|
18
18
|
export {
|
|
19
19
|
CdcEmulator,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
evaluateKey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FJV2GOIJ.js";
|
|
4
4
|
import {
|
|
5
5
|
SPEC_VERSION_KEY_EXPR
|
|
6
6
|
} from "./chunk-WOFRHRXY.js";
|
|
7
7
|
import {
|
|
8
8
|
MetadataRegistry
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VVJQPZ75.js";
|
|
10
10
|
import {
|
|
11
11
|
TableMapping
|
|
12
12
|
} from "./chunk-XTWXMOHD.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildMaintenanceGraph
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F6U7O6BC.js";
|
|
4
4
|
import {
|
|
5
5
|
ChangeCaptureRegistry,
|
|
6
6
|
ClientManager,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
buildDeleteInput,
|
|
10
10
|
buildPutInput,
|
|
11
11
|
resolveModelClass
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VVJQPZ75.js";
|
|
13
13
|
|
|
14
14
|
// src/cdc/prng.ts
|
|
15
15
|
var SeededRandom = class {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
PREPARED_FORMAT_VERSION,
|
|
3
3
|
buildManifest,
|
|
4
4
|
entityFingerprint
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4JIFOE3T.js";
|
|
6
6
|
import {
|
|
7
7
|
analyzeWriteRoute,
|
|
8
8
|
assertBundleSerializable,
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
isContractKeyRef,
|
|
22
22
|
isContractParamRef,
|
|
23
23
|
isQueryModelContract
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-FJV2GOIJ.js";
|
|
25
25
|
import {
|
|
26
26
|
detectRelationFields,
|
|
27
27
|
isInlineSnapshotSpec,
|
|
28
28
|
normalizeSelectSpec
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-F6U7O6BC.js";
|
|
30
30
|
import {
|
|
31
31
|
EXPR_VERSION,
|
|
32
32
|
MARKER_ROW_ENTITY,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
isRawCondition,
|
|
47
47
|
param,
|
|
48
48
|
resolveModelClass
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-VVJQPZ75.js";
|
|
50
50
|
import {
|
|
51
51
|
TableMapping,
|
|
52
52
|
isColumn,
|
|
@@ -388,6 +388,9 @@ function usesConditionTree(obj) {
|
|
|
388
388
|
return false;
|
|
389
389
|
}
|
|
390
390
|
function convertConditionTree(obj, place, context) {
|
|
391
|
+
if (obj.notExists === true) return { notExists: true };
|
|
392
|
+
if (typeof obj.attributeExists === "string") return { attributeExists: obj.attributeExists };
|
|
393
|
+
if (typeof obj.attributeNotExists === "string") return { attributeNotExists: obj.attributeNotExists };
|
|
391
394
|
const out = {};
|
|
392
395
|
for (const [key, value] of Object.entries(obj)) {
|
|
393
396
|
if (value === void 0) continue;
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
normalizeTopLevelSelect,
|
|
18
18
|
parseChange,
|
|
19
19
|
validateInlineSnapshotSelect
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-F6U7O6BC.js";
|
|
21
21
|
import {
|
|
22
22
|
EXPR_VERSION,
|
|
23
23
|
MARKER_ROW_ENTITY,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
serializeFieldValue,
|
|
62
62
|
serializeRawCondition,
|
|
63
63
|
skTemplate
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-VVJQPZ75.js";
|
|
65
65
|
import {
|
|
66
66
|
TableMapping,
|
|
67
67
|
createColumnMap,
|
|
@@ -188,6 +188,9 @@ function conditionParamName(field, op, index) {
|
|
|
188
188
|
return field;
|
|
189
189
|
}
|
|
190
190
|
function buildTree(obj, context, renderTreeLeaf) {
|
|
191
|
+
if (obj.notExists === true) return { notExists: true };
|
|
192
|
+
if (typeof obj.attributeExists === "string") return { attributeExists: obj.attributeExists };
|
|
193
|
+
if (typeof obj.attributeNotExists === "string") return { attributeNotExists: obj.attributeNotExists };
|
|
191
194
|
const out = {};
|
|
192
195
|
for (const key of Object.keys(obj).sort()) {
|
|
193
196
|
const value = obj[key];
|
|
@@ -4938,6 +4941,9 @@ function descriptorConditionRecord(record, name) {
|
|
|
4938
4941
|
return descriptorConditionTree(top, name, `publishCommand: method '${name}' condition`);
|
|
4939
4942
|
}
|
|
4940
4943
|
function descriptorConditionTree(obj, name, context) {
|
|
4944
|
+
if (obj.notExists === true || typeof obj.attributeExists === "string" || typeof obj.attributeNotExists === "string") {
|
|
4945
|
+
return { ...obj };
|
|
4946
|
+
}
|
|
4941
4947
|
const out = {};
|
|
4942
4948
|
for (const [key, value] of Object.entries(obj)) {
|
|
4943
4949
|
if (value === void 0) continue;
|
|
@@ -1258,6 +1258,13 @@ function compileNode(ctx, node) {
|
|
|
1258
1258
|
if (isRawCondition(node)) {
|
|
1259
1259
|
return compileRaw(ctx, node);
|
|
1260
1260
|
}
|
|
1261
|
+
if (node.notExists === true) return "attribute_not_exists(PK)";
|
|
1262
|
+
if (typeof node.attributeExists === "string") {
|
|
1263
|
+
return `attribute_exists(${nameAlias(ctx, node.attributeExists)})`;
|
|
1264
|
+
}
|
|
1265
|
+
if (typeof node.attributeNotExists === "string") {
|
|
1266
|
+
return `attribute_not_exists(${nameAlias(ctx, node.attributeNotExists)})`;
|
|
1267
|
+
}
|
|
1261
1268
|
const clauses = [];
|
|
1262
1269
|
for (const [key, value] of Object.entries(node)) {
|
|
1263
1270
|
if (value === void 0) continue;
|
|
@@ -1294,6 +1301,9 @@ function resolveLeaf(value, resolveParam) {
|
|
|
1294
1301
|
}
|
|
1295
1302
|
function resolveNode(node, resolveParam) {
|
|
1296
1303
|
const obj = node;
|
|
1304
|
+
if (obj.notExists === true) return { notExists: true };
|
|
1305
|
+
if (typeof obj.attributeExists === "string") return { attributeExists: obj.attributeExists };
|
|
1306
|
+
if (typeof obj.attributeNotExists === "string") return { attributeNotExists: obj.attributeNotExists };
|
|
1297
1307
|
const out = {};
|
|
1298
1308
|
for (const [key, value] of Object.entries(obj)) {
|
|
1299
1309
|
if (key === "and" || key === "or") {
|
package/dist/cli.js
CHANGED
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
buildOperations,
|
|
5
5
|
portableIrDocument,
|
|
6
6
|
renderKeyExprToTemplate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CSLEDEPV.js";
|
|
8
8
|
import {
|
|
9
9
|
buildManifest
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-4JIFOE3T.js";
|
|
11
|
+
import "./chunk-FJV2GOIJ.js";
|
|
12
|
+
import "./chunk-F6U7O6BC.js";
|
|
13
13
|
import "./chunk-WOFRHRXY.js";
|
|
14
14
|
import {
|
|
15
15
|
MetadataRegistry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VVJQPZ75.js";
|
|
17
17
|
import {
|
|
18
18
|
createDefaultLinter
|
|
19
19
|
} from "./chunk-XTWXMOHD.js";
|
package/dist/index.js
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
mutate,
|
|
4
4
|
publishCommand,
|
|
5
5
|
publishQuery
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FJV2GOIJ.js";
|
|
7
7
|
import {
|
|
8
8
|
entityWrites,
|
|
9
9
|
getEntityWrites,
|
|
10
10
|
identity,
|
|
11
11
|
preview
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-F6U7O6BC.js";
|
|
13
13
|
import {
|
|
14
14
|
when
|
|
15
15
|
} from "./chunk-WOFRHRXY.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
deriveContractEffect,
|
|
23
23
|
gsi,
|
|
24
24
|
param
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VVJQPZ75.js";
|
|
26
26
|
import {
|
|
27
27
|
TableMapping,
|
|
28
28
|
k,
|
package/dist/internal/index.js
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
PREPARED_FORMAT_VERSION,
|
|
3
3
|
buildManifestEntity,
|
|
4
4
|
entityFingerprint
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-4JIFOE3T.js";
|
|
6
6
|
import {
|
|
7
7
|
LOGICAL_EFFECT_CATEGORIES,
|
|
8
8
|
PreparedReadStatement,
|
|
9
9
|
executeLogicalParallelWrites,
|
|
10
10
|
executeLogicalWriteOps,
|
|
11
11
|
serializeEffectParams
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-FJV2GOIJ.js";
|
|
13
|
+
import "../chunk-F6U7O6BC.js";
|
|
14
14
|
import {
|
|
15
15
|
MARKER_ROW_ENTITY,
|
|
16
16
|
SPEC_VERSION_KEY_EXPR,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
buildConditionExpression,
|
|
22
22
|
execItemKeySignature,
|
|
23
23
|
resolveConditionTree
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-VVJQPZ75.js";
|
|
25
25
|
import {
|
|
26
26
|
TableMapping
|
|
27
27
|
} from "../chunk-XTWXMOHD.js";
|
package/dist/spec/index.js
CHANGED
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
collectContractN1Violations,
|
|
15
15
|
compilePreparedPlan,
|
|
16
16
|
portableIrDocument
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-CSLEDEPV.js";
|
|
18
18
|
import {
|
|
19
19
|
PREPARED_FORMAT_VERSION,
|
|
20
20
|
buildManifest,
|
|
21
21
|
canonicalJson,
|
|
22
22
|
entityFingerprint,
|
|
23
23
|
planFingerprint
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-4JIFOE3T.js";
|
|
25
25
|
import {
|
|
26
26
|
MAX_TRANSACT_COMPOSE_ITEMS,
|
|
27
27
|
assertBundleSerializable,
|
|
@@ -36,8 +36,8 @@ import {
|
|
|
36
36
|
resetMaintenanceGraphCache,
|
|
37
37
|
resolveLifecycle,
|
|
38
38
|
resolveMaintainers
|
|
39
|
-
} from "../chunk-
|
|
40
|
-
import "../chunk-
|
|
39
|
+
} from "../chunk-FJV2GOIJ.js";
|
|
40
|
+
import "../chunk-F6U7O6BC.js";
|
|
41
41
|
import {
|
|
42
42
|
EXPR_VERSION,
|
|
43
43
|
SPEC_VERSION,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
canonicalizeExpressionSpec,
|
|
48
48
|
operationsSpecVersion
|
|
49
49
|
} from "../chunk-WOFRHRXY.js";
|
|
50
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-VVJQPZ75.js";
|
|
51
51
|
import "../chunk-XTWXMOHD.js";
|
|
52
52
|
export {
|
|
53
53
|
EXPR_VERSION,
|
package/dist/testing/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCdcEmulator
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-4NK6I54V.js";
|
|
4
|
+
import "../chunk-F6U7O6BC.js";
|
|
5
5
|
import {
|
|
6
6
|
ClientManager,
|
|
7
7
|
MetadataRegistry,
|
|
8
8
|
resolveModelClass
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-VVJQPZ75.js";
|
|
10
10
|
import {
|
|
11
11
|
TableMapping
|
|
12
12
|
} from "../chunk-XTWXMOHD.js";
|
package/dist/transform/index.js
CHANGED