dbgate-tools 7.0.0 → 7.0.2
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/lib/SqlGenerator.d.ts +1 -0
- package/lib/SqlGenerator.js +4 -1
- package/package.json +3 -3
package/lib/SqlGenerator.d.ts
CHANGED
package/lib/SqlGenerator.js
CHANGED
|
@@ -198,9 +198,12 @@ class SqlGenerator {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
processReadable(table, readable) {
|
|
201
|
-
const
|
|
201
|
+
const columnsFilteredPre = this.options.skipAutoincrementColumn
|
|
202
202
|
? table.columns.filter(x => !x.autoIncrement)
|
|
203
203
|
: table.columns;
|
|
204
|
+
const columnsFiltered = this.options.skipComputedColumns
|
|
205
|
+
? columnsFilteredPre.filter(x => !x.computedExpression)
|
|
206
|
+
: columnsFilteredPre;
|
|
204
207
|
const columnNames = columnsFiltered.map(x => x.columnName);
|
|
205
208
|
let isClosed = false;
|
|
206
209
|
let isHeaderRead = false;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "7.0.
|
|
2
|
+
"version": "7.0.2",
|
|
3
3
|
"name": "dbgate-tools",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "lib/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^13.7.0",
|
|
29
|
-
"dbgate-types": "^7.0.
|
|
29
|
+
"dbgate-types": "^7.0.2",
|
|
30
30
|
"jest": "^28.1.3",
|
|
31
31
|
"ts-jest": "^28.0.7",
|
|
32
32
|
"typescript": "^4.4.3"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"blueimp-md5": "^2.19.0",
|
|
36
36
|
"dbgate-query-splitter": "^4.11.9",
|
|
37
|
-
"dbgate-sqltree": "^7.0.
|
|
37
|
+
"dbgate-sqltree": "^7.0.2",
|
|
38
38
|
"debug": "^4.3.4",
|
|
39
39
|
"json-stable-stringify": "^1.0.1",
|
|
40
40
|
"lodash": "^4.17.21",
|