mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 13:46:00 +00:00
show table row count for MySQL
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user