feat: implement MySQL driver for database management, schema discovery, and CRUD operations
This commit is contained in:
@@ -30,7 +30,10 @@ export const SchemaService = {
|
||||
getTableMetadata: (db: string, table: string) => api.get(`/schema/metadata/${db}/${table}`, { params: { database: db } }),
|
||||
getTableSchema: (table: string, database?: string) => api.get(`/schema/${table}`, { params: { database } }),
|
||||
getTableData: (table: string, params: any) => api.get(`/schema/${table}/data`, { params }),
|
||||
truncateTable: (table: string) => api.post(`/schema/truncate/${table}`),
|
||||
truncateTable: (table: string, database?: string) => api.post(`/schema/truncate/${table}`, { database }),
|
||||
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),
|
||||
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