2020-01-06 21:33:20 +00:00
|
|
|
class DatabaseAnalyser {
|
|
|
|
/**
|
|
|
|
*
|
2020-02-03 18:52:02 +00:00
|
|
|
* @param {import('@dbgate/types').EngineDriver} driver
|
2020-01-06 21:33:20 +00:00
|
|
|
*/
|
|
|
|
constructor(pool, driver) {
|
|
|
|
this.pool = pool;
|
|
|
|
this.driver = driver;
|
2020-01-19 20:01:48 +00:00
|
|
|
this.result = DatabaseAnalyser.createEmptyStructure();
|
2020-01-06 21:33:20 +00:00
|
|
|
}
|
2020-01-19 20:01:48 +00:00
|
|
|
async runAnalysis() {}
|
2020-01-06 21:33:20 +00:00
|
|
|
}
|
|
|
|
|
2020-02-03 18:52:02 +00:00
|
|
|
/** @returns {import('@dbgate/types').DatabaseInfo} */
|
2020-01-19 20:01:48 +00:00
|
|
|
DatabaseAnalyser.createEmptyStructure = () => ({
|
|
|
|
tables: [],
|
|
|
|
});
|
|
|
|
|
2020-01-06 21:33:20 +00:00
|
|
|
module.exports = DatabaseAnalyser;
|