engines moved to separate library

This commit is contained in:
Jan Prochazka
2020-02-02 22:27:49 +01:00
parent eee6c94ebc
commit 6d1f3e977c
30 changed files with 844 additions and 40 deletions

View File

@@ -0,0 +1,19 @@
class DatabaseAnalyser {
/**
*
* @param {import('dbgate').EngineDriver} driver
*/
constructor(pool, driver) {
this.pool = pool;
this.driver = driver;
this.result = DatabaseAnalyser.createEmptyStructure();
}
async runAnalysis() {}
}
/** @returns {import('dbgate').DatabaseInfo} */
DatabaseAnalyser.createEmptyStructure = () => ({
tables: [],
});
module.exports = DatabaseAnalyser;