SYNC: Merge branch 'feature/backup-restore'

This commit is contained in:
Jan Prochazka
2025-03-14 10:45:30 +01:00
committed by Diflow
parent ba9e124527
commit 3a75ad61f3
31 changed files with 842 additions and 411 deletions

View File

@@ -43,3 +43,11 @@ export function getConnectionLabel(connection, { allowExplicitDatabase = true, s
return res;
}
export function getEngineLabel(connection) {
const match = (connection?.engine || '').match(/^([^@]*)@/);
if (match) {
return match[1];
}
return connection?.engine;
}