mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 04:16:00 +00:00
SYNC: Merge branch 'feature/backup-restore'
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user