dbgate-datalib 6.7.3 → 6.8.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.
@@ -10,6 +10,7 @@ export interface DataReplicatorItem {
10
10
  deleteMissing: boolean;
11
11
  deleteRestrictionColumns: string[];
12
12
  matchColumns: string[];
13
+ skipUpdateColumns?: string[];
13
14
  }
14
15
  export interface DataReplicatorOptions {
15
16
  rollbackAfterFinish?: boolean;
@@ -113,7 +113,12 @@ class ReplicatorItemHolder {
113
113
  return res;
114
114
  }
115
115
  createUpdateObject(chunk) {
116
- const res = (0, omit_1.default)((0, pick_1.default)(chunk, this.table.columns.map(x => x.columnName)), [this.autoColumn, ...this.backReferences.map(x => x.columnName), ...this.references.map(x => x.columnName)]);
116
+ const res = (0, omit_1.default)((0, pick_1.default)(chunk, this.table.columns.map(x => x.columnName)), [
117
+ this.autoColumn,
118
+ ...this.backReferences.map(x => x.columnName),
119
+ ...this.references.map(x => x.columnName),
120
+ ...(this.item.skipUpdateColumns || []),
121
+ ]);
117
122
  return res;
118
123
  }
119
124
  // returns list of columns that are weak references and are not resolved
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "6.7.3",
2
+ "version": "6.8.1",
3
3
  "name": "dbgate-datalib",
4
4
  "main": "lib/index.js",
5
5
  "typings": "lib/index.d.ts",
@@ -19,14 +19,14 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "date-fns": "^4.1.0",
22
- "dbgate-filterparser": "^6.7.3",
23
- "dbgate-sqltree": "^6.7.3",
24
- "dbgate-tools": "^6.7.3",
22
+ "dbgate-filterparser": "^6.8.1",
23
+ "dbgate-sqltree": "^6.8.1",
24
+ "dbgate-tools": "^6.8.1",
25
25
  "uuid": "^3.4.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^13.7.0",
29
- "dbgate-types": "^6.7.3",
29
+ "dbgate-types": "^6.8.1",
30
30
  "jest": "^28.1.3",
31
31
  "ts-jest": "^28.0.7",
32
32
  "typescript": "^4.4.3"