mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 18:26:00 +00:00
correct export from read-only connection
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import _compact from 'lodash/compact'
|
||||
import _compact from 'lodash/compact';
|
||||
import { SqlDumper } from './SqlDumper';
|
||||
import { splitQuery } from 'dbgate-query-splitter';
|
||||
import { dumpSqlSelect } from 'dbgate-sqltree';
|
||||
@@ -105,4 +105,9 @@ export const driverBase = {
|
||||
const resp = await this.query(pool, dmp.s);
|
||||
return resp.rows;
|
||||
},
|
||||
readJsonQuery(pool, select, structure) {
|
||||
const dmp = this.createDumper();
|
||||
dumpSqlSelect(dmp, select);
|
||||
return this.readQuery(pool, dmp.s, structure);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user