feat: autorefresh processes, refresh processes w/o displaying loader

This commit is contained in:
Pavel
2025-08-14 16:40:20 +02:00
parent 61f1c99791
commit b1696ed1cd
3 changed files with 44 additions and 6 deletions

View File

@@ -274,6 +274,20 @@ module.exports = {
return this.loadDataCore('serverSummary', { conid });
},
listDatabaseProcesses_meta: true,
async listDatabaseProcesses(ctx, req) {
const { conid } = ctx;
testConnectionPermission(conid, req);
const opened = await this.ensureOpened(conid);
if (!opened) {
return null;
}
if (opened.connection.isReadOnly) return false;
return this.sendRequest(opened, { msgtype: 'listDatabaseProcesses' });
},
killDatabaseProcess_meta: true,
async killDatabaseProcess(ctx, req) {
const { conid, pid } = ctx;