1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

refactor: ts on ipc api

This commit is contained in:
2022-06-05 17:57:44 +02:00
parent 7fc01227e7
commit be70b5be7f
36 changed files with 510 additions and 476 deletions

View File

@ -1381,6 +1381,14 @@ export class MySQLClient extends AntaresCore {
xa: row.XA,
savepoints: row.Savepoints,
isDefault: row.Support.includes('DEFAULT')
} as {
name: string;
support: string;
comment: string;
transactions: string;
xa: string;
savepoints: string;
isDefault: boolean;
};
});
}
@ -1405,7 +1413,12 @@ export class MySQLClient extends AntaresCore {
break;
}
return acc;
}, {});
}, {}) as {
number: string;
name: string;
arch: string;
os: string;
};
}
async getProcesses () {
@ -1423,6 +1436,15 @@ export class MySQLClient extends AntaresCore {
time: row.TIME,
state: row.STATE,
info: row.INFO
} as {
id: number;
user: string;
host: string;
db: string;
command: string;
time: number;
state: string;
info: string;
};
});
}