feat: implement database schema discovery and management services with frontend integration

This commit is contained in:
Ümit Tunç
2026-04-24 13:46:38 +03:00
parent 53b40e95e5
commit a447d5a08e
8 changed files with 372 additions and 11 deletions
+1
View File
@@ -34,6 +34,7 @@ export const SchemaService = {
dropTable: (table: string, database?: string) => api.post(`/schema/drop/${table}`, { database }),
optimizeTable: (table: string, database?: string) => api.post(`/schema/optimize/${table}`, { database }),
bulkAction: (data: { tables: string[], action: string, database: string }) => api.post('/schema/bulk-action', data),
batchUpdate: (table: string, changes: any[]) => api.post(`/schema/${table}/batch-update`, { changes }),
executeQuery: (query: string) => api.post('/schema/execute', { query }),
exportDatabase: (database?: string, table?: string) => api.post('/schema/export', { database, table }, { responseType: 'blob' }),
importDatabase: (formData: FormData) => api.post('/schema/import', formData, {