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

@@ -62,9 +62,10 @@ module.exports = {
delete this.requests[msgid];
},
handle_status(conid, database, { status }) {
// console.log('HANDLE SET STATUS', status);
const existing = this.opened.find(x => x.conid == conid && x.database == database);
if (!existing) return;
if (existing.status == status) return;
if (existing.status && status && existing.status.counter > status.counter) return;
existing.status = status;
socket.emitChanged(`database-status-changed-${conid}-${database}`);
},