@squiz/db-lib 1.72.0 → 1.74.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/lib/dynamodb/AbstractDynamoDbRepository.d.ts +13 -6
- package/lib/dynamodb/AbstractDynamoDbRepository.d.ts.map +1 -1
- package/lib/dynamodb/AbstractDynamoDbRepository.js +84 -25
- package/lib/dynamodb/AbstractDynamoDbRepository.js.map +1 -1
- package/lib/dynamodb/AbstractDynamoDbRepository.spec.d.ts.map +1 -1
- package/lib/dynamodb/AbstractDynamoDbRepository.spec.js +382 -2
- package/lib/dynamodb/AbstractDynamoDbRepository.spec.js.map +1 -1
- package/package.json +1 -1
- package/src/dynamodb/AbstractDynamoDbRepository.spec.ts +415 -2
- package/src/dynamodb/AbstractDynamoDbRepository.ts +100 -26
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -14,11 +14,13 @@ export type QueryOptions = {
|
|
14
14
|
interface Reader<T> {
|
15
15
|
queryItems(partialItem: Partial<T>, options?: QueryOptions): Promise<T[]>;
|
16
16
|
getItem(id: string | Partial<T>): Promise<T | undefined>;
|
17
|
+
getItems(partialItem: Partial<T>[]): Promise<T[]>;
|
17
18
|
}
|
18
19
|
interface Writer<T> {
|
19
20
|
createItem(item: Partial<T>): Promise<T>;
|
20
21
|
updateItem(partialItem: Partial<T>): Promise<T | undefined>;
|
21
22
|
deleteItem(partialItem: Partial<T>): Promise<number>;
|
23
|
+
deleteItems(partialItem: Partial<T>[]): Promise<void>;
|
22
24
|
}
|
23
25
|
type Repository<T> = Reader<T> & Writer<T>;
|
24
26
|
type Repositories = Record<string, Repository<any>>;
|
@@ -83,6 +85,17 @@ export declare abstract class AbstractDynamoDbRepository<SHAPE extends object, D
|
|
83
85
|
* @returns
|
84
86
|
*/
|
85
87
|
private getBatchItems;
|
88
|
+
/**
|
89
|
+
* Delete items in a batch
|
90
|
+
* Uses batchWrite() with 25 items
|
91
|
+
*
|
92
|
+
* @param item
|
93
|
+
*
|
94
|
+
* @throws MissingKeyValuesError
|
95
|
+
*/
|
96
|
+
deleteItems(items: Partial<SHAPE>[]): Promise<void>;
|
97
|
+
private deleteBatchItems;
|
98
|
+
private getBatchKeys;
|
86
99
|
/**
|
87
100
|
* Finds all the items matching the partition key or
|
88
101
|
* the gsi key (when gsi index name is specified)
|
@@ -185,12 +198,6 @@ export declare abstract class AbstractDynamoDbRepository<SHAPE extends object, D
|
|
185
198
|
* @throw MissingKeyValuesError
|
186
199
|
*/
|
187
200
|
protected getKey(item: Partial<SHAPE>, attributeName: keyof KeysFormat): string;
|
188
|
-
/**
|
189
|
-
* Whether the given property name is part of the entity's pk/sk string
|
190
|
-
* @param propertyName
|
191
|
-
* @returns boolean
|
192
|
-
*/
|
193
|
-
private isPropertyPartOfKeys;
|
194
201
|
/**
|
195
202
|
* Validate the data matches with "DATA_MODEL"
|
196
203
|
* @param value
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AbstractDynamoDbRepository.d.ts","sourceRoot":"","sources":["../../src/dynamodb/AbstractDynamoDbRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,
|
1
|
+
{"version":3,"file":"AbstractDynamoDbRepository.d.ts","sourceRoot":"","sources":["../../src/dynamodb/AbstractDynamoDbRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EASjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,eAAe,EAA+C,MAAM,IAAI,CAAC;AAG/F,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAGzB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,YAAY,CAAC;IAE3B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAEvB,MAAM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AAK,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM;IAI7C;;;;;;OAMG;IACH,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM;IAI7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,MAAM,UAAU,GAAG,MAAM;IAuC/E;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAWhC"}
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AbstractDynamoDbRepository = void 0;
|
4
4
|
const __1 = require("..");
|
5
5
|
const InvalidDataFormatError_1 = require("../error/InvalidDataFormatError");
|
6
|
+
const MAX_REATTEMPTS = 3;
|
6
7
|
class AbstractDynamoDbRepository {
|
7
8
|
constructor(tableName, dbManager, entityName, entityDefinition, classRef) {
|
8
9
|
this.tableName = tableName;
|
@@ -73,6 +74,65 @@ class AbstractDynamoDbRepository {
|
|
73
74
|
* @returns
|
74
75
|
*/
|
75
76
|
async getBatchItems(items) {
|
77
|
+
let resultItems = [];
|
78
|
+
let requestKeys = {
|
79
|
+
[this.tableName]: {
|
80
|
+
Keys: this.getBatchKeys(items),
|
81
|
+
},
|
82
|
+
};
|
83
|
+
let reattemptsCount = 0;
|
84
|
+
while (requestKeys && Object.keys(requestKeys).length) {
|
85
|
+
if (reattemptsCount++ > MAX_REATTEMPTS) {
|
86
|
+
throw Error('Maximum allowed retries exceeded for unprocessed items');
|
87
|
+
}
|
88
|
+
const output = await this.client.batchGet({
|
89
|
+
RequestItems: requestKeys,
|
90
|
+
});
|
91
|
+
requestKeys = output.UnprocessedKeys;
|
92
|
+
if (output.Responses && output.Responses[this.tableName] && output.Responses[this.tableName].length) {
|
93
|
+
resultItems = resultItems.concat(output.Responses[this.tableName].map((i) => this.hydrateItem(i)));
|
94
|
+
}
|
95
|
+
}
|
96
|
+
return resultItems;
|
97
|
+
}
|
98
|
+
/**
|
99
|
+
* Delete items in a batch
|
100
|
+
* Uses batchWrite() with 25 items
|
101
|
+
*
|
102
|
+
* @param item
|
103
|
+
*
|
104
|
+
* @throws MissingKeyValuesError
|
105
|
+
*/
|
106
|
+
async deleteItems(items) {
|
107
|
+
// this is the maximum items allowed by BatchWriteItem()
|
108
|
+
const batchSize = 25;
|
109
|
+
for (let i = 0; i < items.length; i += batchSize) {
|
110
|
+
const keys = this.getBatchKeys(items.slice(i, i + batchSize));
|
111
|
+
await this.deleteBatchItems(keys);
|
112
|
+
}
|
113
|
+
}
|
114
|
+
async deleteBatchItems(keys) {
|
115
|
+
let requestItems = {
|
116
|
+
[this.tableName]: Object.values(keys).map((key) => {
|
117
|
+
return {
|
118
|
+
DeleteRequest: {
|
119
|
+
Key: key,
|
120
|
+
},
|
121
|
+
};
|
122
|
+
}),
|
123
|
+
};
|
124
|
+
let reattemptsCount = 0;
|
125
|
+
while (requestItems && Object.keys(requestItems).length) {
|
126
|
+
if (reattemptsCount++ > MAX_REATTEMPTS) {
|
127
|
+
throw Error('Maximum allowed retries exceeded for unprocessed items');
|
128
|
+
}
|
129
|
+
const response = await this.client.batchWrite({
|
130
|
+
RequestItems: requestItems,
|
131
|
+
});
|
132
|
+
requestItems = response.UnprocessedItems;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
getBatchKeys(items) {
|
76
136
|
const keys = [];
|
77
137
|
for (const item of items) {
|
78
138
|
keys.push({
|
@@ -80,17 +140,11 @@ class AbstractDynamoDbRepository {
|
|
80
140
|
[this.keys.sk.attributeName]: this.getSk(item),
|
81
141
|
});
|
82
142
|
}
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
},
|
89
|
-
});
|
90
|
-
if (output.Responses && output.Responses[this.tableName].length) {
|
91
|
-
return output.Responses[this.tableName].map((i) => this.hydrateItem(i));
|
92
|
-
}
|
93
|
-
return [];
|
143
|
+
// keys.push({
|
144
|
+
// [this.keys.pk.attributeName]: 'foo1',
|
145
|
+
// [this.keys.sk.attributeName]: 'foo2',
|
146
|
+
// });
|
147
|
+
return keys;
|
94
148
|
}
|
95
149
|
/**
|
96
150
|
* Finds all the items matching the partition key or
|
@@ -175,9 +229,11 @@ class AbstractDynamoDbRepository {
|
|
175
229
|
const value = { ...oldValue, ...newValue };
|
176
230
|
this.assertValueMatchesModel(value);
|
177
231
|
this.convertSelectedValuesToJsonString(newValue);
|
232
|
+
this.convertSelectedValuesToJsonString(oldValue);
|
178
233
|
const updateExpression = [];
|
179
234
|
const expressionAttributeNames = {};
|
180
235
|
const expressionAttributeValues = {};
|
236
|
+
const updatedAttributes = [];
|
181
237
|
for (const modelProperty of Object.keys(newValue)) {
|
182
238
|
const propValue = (_a = newValue[modelProperty]) !== null && _a !== void 0 ? _a : null;
|
183
239
|
if (propValue === oldValue[modelProperty]) {
|
@@ -189,18 +245,33 @@ class AbstractDynamoDbRepository {
|
|
189
245
|
updateExpression.push(`${propName} = ${propValuePlaceHolder}`);
|
190
246
|
expressionAttributeNames[propName] = modelProperty;
|
191
247
|
expressionAttributeValues[propValuePlaceHolder] = propValue;
|
248
|
+
updatedAttributes.push(modelProperty);
|
192
249
|
}
|
193
|
-
if (!
|
250
|
+
if (!updatedAttributes.length) {
|
194
251
|
// nothing to update
|
195
252
|
return value;
|
196
253
|
}
|
254
|
+
// also update the gsi attributes if needed
|
255
|
+
Object.keys(this.indexes).forEach((key) => {
|
256
|
+
const index = this.indexes[key];
|
257
|
+
[index.pk.attributeName, index.sk.attributeName].forEach((keyAttributeName) => {
|
258
|
+
const keyFormat = this.keysFormat[keyAttributeName];
|
259
|
+
if (updatedAttributes.find((attr) => keyFormat.search(`{${attr}}`) !== -1)) {
|
260
|
+
const propName = `#${keyAttributeName}`;
|
261
|
+
const propValuePlaceHolder = `:${keyAttributeName}`;
|
262
|
+
updateExpression.push(`${propName} = ${propValuePlaceHolder}`);
|
263
|
+
expressionAttributeNames[propName] = keyAttributeName;
|
264
|
+
expressionAttributeValues[propValuePlaceHolder] = this.getKey(value, keyAttributeName);
|
265
|
+
}
|
266
|
+
});
|
267
|
+
});
|
197
268
|
const updateCommandInput = {
|
198
269
|
TableName: this.tableName,
|
199
270
|
Key: {
|
200
271
|
[this.keys.pk.attributeName]: this.getPk(newValue),
|
201
272
|
[this.keys.sk.attributeName]: this.getSk(newValue),
|
202
273
|
},
|
203
|
-
UpdateExpression: 'SET ' + updateExpression.join(','),
|
274
|
+
UpdateExpression: 'SET ' + updateExpression.join(', '),
|
204
275
|
ExpressionAttributeValues: expressionAttributeValues,
|
205
276
|
ExpressionAttributeNames: expressionAttributeNames,
|
206
277
|
ConditionExpression: `attribute_exists(${this.keys.pk.attributeName})`,
|
@@ -423,18 +494,6 @@ class AbstractDynamoDbRepository {
|
|
423
494
|
}
|
424
495
|
return keyFormat;
|
425
496
|
}
|
426
|
-
/**
|
427
|
-
* Whether the given property name is part of the entity's pk/sk string
|
428
|
-
* @param propertyName
|
429
|
-
* @returns boolean
|
430
|
-
*/
|
431
|
-
isPropertyPartOfKeys(propertyName) {
|
432
|
-
if (this.keysFormat[this.keys.pk.attributeName].search(`{${propertyName}}`) !== -1)
|
433
|
-
return true;
|
434
|
-
if (this.keysFormat[this.keys.sk.attributeName].search(`{${propertyName}}`) !== -1)
|
435
|
-
return true;
|
436
|
-
return false;
|
437
|
-
}
|
438
497
|
/**
|
439
498
|
* Validate the data matches with "DATA_MODEL"
|
440
499
|
* @param value
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AbstractDynamoDbRepository.js","sourceRoot":"","sources":["../../src/dynamodb/AbstractDynamoDbRepository.ts"],"names":[],"mappings":";;;AAQA,0BAA+F;AAC/F,4EAAyE;AA0DzE,MAAsB,0BAA0B;IAY9C,YACY,SAAiB,EACjB,SAAwC,EACxC,UAAkB,EAClB,gBAAkC,EAClC,QAA8D;QAJ9D,cAAS,G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e,CAAC,CAAC;QACrD,IAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,EAAE;YACvB,MAAM,IAAI,yBAAqB,CAC7B,+DAA+D,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,cAC3F,IAAI,CAAC,UACP,MAAM,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CACjC,CAAC;SACH;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;OAIG;IACK,uBAAuB,CAAC,KAAc;QAC5C,sDAAsD;QACtD,iCAAiC;QACjC,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,KAA4B,CAAC,CAAC;QAC5D,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,KAAe,CAAC,CAAC;QACrD,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACzC,MAAM,gBAAgB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QAC3F,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE;YAC/B,MAAM,IAAI,wBAAoB,CAAC,+BAA+B,IAAI,CAAC,UAAU,KAAK,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SAClH;IACH,CAAC;CACF;AA9jBD,gEA8jBC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AbstractDynamoDbRepository.spec.d.ts","sourceRoot":"","sources":["../../src/dynamodb/AbstractDynamoDbRepository.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"AbstractDynamoDbRepository.spec.d.ts","sourceRoot":"","sources":["../../src/dynamodb/AbstractDynamoDbRepository.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,8BAA8B,CAAC;AAsBxF,OAAO,EAAE,eAAe,EAAe,MAAM,mBAAmB,CAAC;AAIjE,OAAO,0BAA0B,CAAC;AAQlC,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,cAAM,QAAS,YAAW,SAAS;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;gBAEV,IAAI,GAAE,OAAO,CAAC,SAAS,CAAM;CAoB1C;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;AAgC9D,cAAM,kBAAmB,SAAQ,0BAA0B,CAAC,SAAS,EAAE,QAAQ,CAAC;gBAClE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa;CAGxD"}
|