feat: implement database schema discovery and management services with frontend integration
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user