feat: implement MySQL driver and schema discovery service for dynamic database management
This commit is contained in:
@@ -111,7 +111,9 @@ class SchemaController extends Controller
|
||||
try {
|
||||
$this->initializeDriver($request);
|
||||
$config = $request->only(['host', 'username', 'password', 'database', 'port', 'table']);
|
||||
$filePath = $this->databaseService->export($config);
|
||||
$filters = json_decode($request->get('filters', '[]'), true);
|
||||
|
||||
$filePath = $this->databaseService->export($config, $filters);
|
||||
|
||||
return Response::download($filePath)->deleteFileAfterSend(true);
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user