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

@@ -18,6 +18,12 @@ let lastStatus = null;
let analysedTime = 0;
let serverVersion;
let statusCounter = 0;
function getStatusCounter() {
statusCounter += 1;
return statusCounter;
}
async function checkedAsyncCall(promise) {
try {
const res = await promise;
@@ -79,7 +85,7 @@ function handleSyncModel() {
function setStatus(status) {
const statusString = stableStringify(status);
if (lastStatus != statusString) {
process.send({ msgtype: 'status', status });
process.send({ msgtype: 'status', status: { ...status, counter: getStatusCounter() } });
lastStatus = statusString;
}
}