grid - grouping

This commit is contained in:
Jan Prochazka
2020-06-21 10:36:43 +02:00
parent 425e58627f
commit 0e1e3b9ed7
9 changed files with 148 additions and 16 deletions

View File

@@ -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);
}