feat: implement MySQL driver and schema discovery service for dynamic database management
This commit is contained in:
@@ -36,7 +36,11 @@ export const SchemaService = {
|
||||
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' }),
|
||||
exportDatabase: (database?: string, table?: string, filters?: any) => api.post('/schema/export', {
|
||||
database,
|
||||
table,
|
||||
filters: filters ? JSON.stringify(filters) : undefined
|
||||
}, { responseType: 'blob' }),
|
||||
importDatabase: (formData: FormData) => api.post('/schema/import', formData, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user