pg more analyser logs

This commit is contained in:
Jan Prochazka
2024-05-27 12:02:40 +02:00
parent e9442bd633
commit 20c1315380
2 changed files with 20 additions and 1 deletions

View File

@@ -306,6 +306,22 @@ class Analyser extends DatabaseAnalyser {
this.feedback({ analysingMessage: null });
this.logger.debug(
{
tables: res.tables.length,
columns: _.sum(res.tables.map(x => x.columns.length)),
primaryKeys: res.tables.filter(x => x.primaryKey).length,
foreignKeys: _.sum(res.tables.map(x => x.foreignKeys.length)),
indexes: _.sum(res.tables.map(x => x.indexes.length)),
uniques: _.sum(res.tables.map(x => x.uniques.length)),
views: res.views.length,
matviews: res.matviews.length,
procedures: res.procedures.length,
functions: res.functions.length,
},
'Database structured finalized'
);
return res;
}