mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
grid - grouping
This commit is contained in:
@@ -13,12 +13,12 @@ async function queryReader({ connection, pureName, schemaName }) {
|
||||
const table = await driver.analyseSingleObject(pool, fullName, 'tables');
|
||||
const query = `select * from ${quoteFullName(driver.dialect, fullName)}`;
|
||||
if (table) {
|
||||
console.log(`Reading table ${table}`);
|
||||
console.log(`Reading table ${table.pureName}`);
|
||||
return await driver.readQuery(pool, query, table);
|
||||
}
|
||||
const view = await driver.analyseSingleObject(pool, fullName, 'views');
|
||||
if (view) {
|
||||
console.log(`Reading view ${table}`);
|
||||
console.log(`Reading view ${view.pureName}`);
|
||||
return await driver.readQuery(pool, query, view);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user