mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 05:43:58 +00:00
fixed sqlite analyser
This commit is contained in:
@@ -53,12 +53,9 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async _runAnalysis() {
|
async _runAnalysis() {
|
||||||
const objects = await this.driver.query(
|
const objects = await this.analyserQuery(
|
||||||
this.pool,
|
|
||||||
super.createQuery(
|
|
||||||
"select * from sqlite_master where (type='table' or type='view') and name =OBJECT_ID_CONDITION",
|
"select * from sqlite_master where (type='table' or type='view') and name =OBJECT_ID_CONDITION",
|
||||||
['tables', 'views']
|
['tables', 'views']
|
||||||
)
|
|
||||||
);
|
);
|
||||||
const tables = objects.rows.filter((x) => x.type == 'table');
|
const tables = objects.rows.filter((x) => x.type == 'table');
|
||||||
const views = objects.rows.filter((x) => x.type == 'view');
|
const views = objects.rows.filter((x) => x.type == 'view');
|
||||||
|
|||||||
Reference in New Issue
Block a user