mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 20:46:01 +00:00
correct export from read-only connection
This commit is contained in:
@@ -574,6 +574,13 @@ export abstract class GridDisplay {
|
||||
return sql;
|
||||
}
|
||||
|
||||
getExportQueryJson(postprocessSelect = null) {
|
||||
const select = this.createSelect({ isExport: true });
|
||||
if (!select) return null;
|
||||
if (postprocessSelect) postprocessSelect(select);
|
||||
return select;
|
||||
}
|
||||
|
||||
getExportColumnMap() {
|
||||
const changesDefined = this.config.hiddenColumns?.length > 0 || this.config.addedColumns?.length > 0;
|
||||
if (this.isDynamicStructure && !changesDefined) {
|
||||
|
||||
Reference in New Issue
Block a user