@aws-blocks/bb-distributed-data 0.1.0 → 0.1.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/README.md +5 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -163,6 +163,9 @@ try {
|
|
|
163
163
|
if (isBlocksError(e, DistributedDatabaseErrors.ConnectionFailed)) {
|
|
164
164
|
// Cannot reach the DSQL cluster
|
|
165
165
|
}
|
|
166
|
+
if (isBlocksError(e, DistributedDatabaseErrors.TransactionFailed)) {
|
|
167
|
+
// Transaction could not commit (general failure distinct from serialization/row-limit)
|
|
168
|
+
}
|
|
166
169
|
}
|
|
167
170
|
```
|
|
168
171
|
|
|
@@ -207,6 +210,8 @@ interface DistributedDatabaseOptions {
|
|
|
207
210
|
migrationsPath?: string;
|
|
208
211
|
/** Removal policy. @default 'retain' */
|
|
209
212
|
removalPolicy?: 'destroy' | 'retain';
|
|
213
|
+
/** Optional logger for internal operations. When omitted, a default Logger at error level is created. */
|
|
214
|
+
logger?: ChildLogger;
|
|
210
215
|
}
|
|
211
216
|
```
|
|
212
217
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-blocks/bb-distributed-data",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"author": "Amazon Web Services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"test": "node --test 'dist/**/*.test.js'"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-blocks/core": "^0.1.
|
|
31
|
-
"@aws-blocks/data-common": "^0.1.
|
|
32
|
-
"@aws-blocks/bb-logger": "^0.1.
|
|
30
|
+
"@aws-blocks/core": "^0.1.1",
|
|
31
|
+
"@aws-blocks/data-common": "^0.1.1",
|
|
32
|
+
"@aws-blocks/bb-logger": "^0.1.1",
|
|
33
33
|
"@aws-sdk/dsql-signer": "^3.700.0",
|
|
34
34
|
"@electric-sql/pglite": "^0.2.0",
|
|
35
35
|
"pg": "^8.13.0"
|