feat: implement MySQL driver for database management and add TransferContent UI component

This commit is contained in:
Ümit Tunç
2026-04-24 12:53:21 +03:00
parent 23f8eeb560
commit b00a8448e1
2 changed files with 20 additions and 17 deletions
+3 -2
View File
@@ -41,8 +41,9 @@ const TransferContent: React.FC<TransferContentProps> = ({ mode = 'both' }) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
const contextName = activeTable ? `${activeDatabase}-${activeTable}` : (activeDatabase || 'all');
const filename = `backup-${contextName}-${new Date().toISOString().split('T')[0]}.sql`;
const filename = activeTable
? `${activeTable}-${new Date().toISOString().split('T')[0]}.sql`
: `backup-${activeDatabase || 'all'}-${new Date().toISOString().split('T')[0]}.sql`;
link.setAttribute('download', filename);
document.body.appendChild(link);
link.click();