fixed sqlite analyser

This commit is contained in:
Jan Prochazka 2023-01-21 11:01:19 +01:00
parent cf07123f51
commit 44dadcd256

View File

@ -53,12 +53,9 @@ class Analyser extends DatabaseAnalyser {
}
async _runAnalysis() {
const objects = await this.driver.query(
this.pool,
super.createQuery(
const objects = await this.analyserQuery(
"select * from sqlite_master where (type='table' or type='view') and name =OBJECT_ID_CONDITION",
['tables', 'views']
)
);
const tables = objects.rows.filter((x) => x.type == 'table');
const views = objects.rows.filter((x) => x.type == 'view');