dbgate-datalib 4.7.4-alpha.1 → 4.7.4-alpha.14
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/GridDisplay.d.ts +1 -0
- package/lib/GridDisplay.js +8 -0
- package/package.json +4 -4
package/lib/GridDisplay.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ export declare abstract class GridDisplay {
|
|
|
100
100
|
getRowNumberOverSelect(select: Select, offset: number, count: number): Select;
|
|
101
101
|
getPageQuery(offset: number, count: number): Select;
|
|
102
102
|
getExportQuery(postprocessSelect?: any): string;
|
|
103
|
+
getExportQueryJson(postprocessSelect?: any): Select;
|
|
103
104
|
getExportColumnMap(): {
|
|
104
105
|
dst: string;
|
|
105
106
|
src: string;
|
package/lib/GridDisplay.js
CHANGED
|
@@ -424,6 +424,14 @@ class GridDisplay {
|
|
|
424
424
|
const sql = (0, dbgate_sqltree_1.treeToSql)(this.driver, select, dbgate_sqltree_1.dumpSqlSelect);
|
|
425
425
|
return sql;
|
|
426
426
|
}
|
|
427
|
+
getExportQueryJson(postprocessSelect = null) {
|
|
428
|
+
const select = this.createSelect({ isExport: true });
|
|
429
|
+
if (!select)
|
|
430
|
+
return null;
|
|
431
|
+
if (postprocessSelect)
|
|
432
|
+
postprocessSelect(select);
|
|
433
|
+
return select;
|
|
434
|
+
}
|
|
427
435
|
getExportColumnMap() {
|
|
428
436
|
var _a, _b;
|
|
429
437
|
const changesDefined = ((_a = this.config.hiddenColumns) === null || _a === void 0 ? void 0 : _a.length) > 0 || ((_b = this.config.addedColumns) === null || _b === void 0 ? void 0 : _b.length) > 0;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.7.4-alpha.
|
|
2
|
+
"version": "4.7.4-alpha.14",
|
|
3
3
|
"name": "dbgate-datalib",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "lib/index.d.ts",
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"lib"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"dbgate-sqltree": "^4.7.4-alpha.
|
|
15
|
-
"dbgate-filterparser": "^4.7.4-alpha.
|
|
14
|
+
"dbgate-sqltree": "^4.7.4-alpha.14",
|
|
15
|
+
"dbgate-filterparser": "^4.7.4-alpha.14"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"dbgate-types": "^4.7.4-alpha.
|
|
18
|
+
"dbgate-types": "^4.7.4-alpha.14",
|
|
19
19
|
"@types/node": "^13.7.0",
|
|
20
20
|
"typescript": "^4.4.3"
|
|
21
21
|
}
|