triangle-utils 1.0.35 → 1.0.36
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/package.json +1 -1
- package/test.js +6 -4
- package/utils/Utils_DynamoDB.js +1 -1
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import Utils from "./Utils.js";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const utils = new Utils({ region : "us-east-
|
|
4
|
+
const utils = new Utils({ region : "us-east-2"})
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const jurisdiction_documents = await utils.dynamodb.scan("jurisdiction_documents", {
|
|
7
|
+
defined_attribute_names : ["s3_filename"],
|
|
8
|
+
undefined_attribute_names : ["vector_keys"]
|
|
9
|
+
})
|
|
8
10
|
|
|
9
|
-
console.log(
|
|
11
|
+
console.log(jurisdiction_documents.length)
|
package/utils/Utils_DynamoDB.js
CHANGED
|
@@ -81,7 +81,7 @@ export default class Utils_DynamoDB {
|
|
|
81
81
|
...Object.keys(filters).map(attribute_name => "#" + attribute_name + " = :" + attribute_name),
|
|
82
82
|
...undefined_attribute_names.map(attribute_name => "attribute_not_exists(#" + attribute_name + ")"),
|
|
83
83
|
...defined_attribute_names.map(attribute_name => "attribute_exists(#" + attribute_name + ")")
|
|
84
|
-
].join("
|
|
84
|
+
].join(" AND "),
|
|
85
85
|
ProjectionExpression : attribute_names.map(attribute_name => "#" + attribute_name).join(", "),
|
|
86
86
|
Segment : i,
|
|
87
87
|
TotalSegments : concurrency
|