Removed console log of table data.
This commit is contained in:
@@ -14,12 +14,10 @@ class SqliteDatabase {
|
|||||||
* Connect to the database.
|
* Connect to the database.
|
||||||
* @returns {Promise} succeeds if connection was established
|
* @returns {Promise} succeeds if connection was established
|
||||||
*/
|
*/
|
||||||
async connect() {
|
connect() {
|
||||||
return Promise.resolve()
|
let database = new sqlite3.Database(this.host);
|
||||||
.then(() => {
|
this.connection = database;
|
||||||
this.connection = new sqlite3.Database(this.host);
|
return database;
|
||||||
this.connection.run('PRAGMA foreign_keys=on')
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -67,7 +65,6 @@ class SqliteDatabase {
|
|||||||
if (err) {
|
if (err) {
|
||||||
reject(err);
|
reject(err);
|
||||||
}
|
}
|
||||||
console.log('rows', rows)
|
|
||||||
resolve(rows);
|
resolve(rows);
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user