feat(process-list): batch cancel MySQL queries

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-10 11:23:18 +08:00
1 parent 1d9cfe45f9
commit b2d2507aec
12 files changed
+314 -26

No files matched your search

@@ -47,6 +47,8 @@ export interface ProcessColumn {
}
export interface ProcessListDriver {
/** Whether the panel offers multi-selection and batch query cancellation. */
supportsBatchCancel?: boolean;
/** SQL that lists current sessions, one row each. */
listSql: string;
/** Compatibility query used when the primary list SQL references newer columns. */
@@ -103,6 +105,7 @@ const POSTGRES_COLUMNS: ProcessColumn[] = [
];
const MYSQL_DRIVER: ProcessListDriver = {
supportsBatchCancel: true,
listSql: MYSQL_PROCESS_LIST_SQL,
ownSessionSql: "SELECT CONNECTION_ID()",
columns: MYSQL_COLUMNS,