disconnect command (hard disconnect in electron, soft disconnect in webapp)

This commit is contained in:
Jan Prochazka
2021-05-06 09:34:05 +02:00
parent e739aed80d
commit cd7edcb443
6 changed files with 95 additions and 43 deletions

View File

@@ -8,7 +8,7 @@ class Analyser extends DatabaseAnalyser {
async _runAnalysis() {
const tables = await this.driver.query(this.pool, "select * from sqlite_master where type='table'");
console.log('TABLES', tables);
// console.log('TABLES', tables);
const tableSqls = _.zipObject(
tables.rows.map((x) => x.name),

View File

@@ -15,6 +15,7 @@ const driver = {
},
// @ts-ignore
async query(pool, sql) {
console.log('SQLITE SQL', sql);
const stmt = pool.prepare(sql);
// stmt.raw();
const columns = stmt.columns();