show table row count for MySQL

This commit is contained in:
Jan Prochazka
2022-02-10 16:07:44 +01:00
parent 0debe66dd0
commit 4e221ecd3a
9 changed files with 69 additions and 5 deletions

View File

@@ -88,6 +88,7 @@ class Analyser extends DatabaseAnalyser {
columns: columns.rows.filter(col => col.pureName == table.pureName).map(getColumnInfo),
primaryKey: DatabaseAnalyser.extractPrimaryKeys(table, pkColumns.rows),
foreignKeys: DatabaseAnalyser.extractForeignKeys(table, fkColumns.rows),
tableRowCount: table.tableRowCount,
indexes: _.uniqBy(
indexes.rows.filter(
idx =>
@@ -163,6 +164,7 @@ class Analyser extends DatabaseAnalyser {
...x,
objectId: x.pureName,
contentHash: _.isDate(x.modifyDate) ? x.modifyDate.toISOString() : x.modifyDate,
tableRowCount: x.tableRowCount,
})),
views: tableModificationsQueryData.rows
.filter(x => x.objectType == 'VIEW')