feat: implement MySQL driver and API schema services for database management

This commit is contained in:
Ümit Tunç
2026-04-24 08:29:43 +03:00
parent c433630e33
commit 60cd2fe051
10 changed files with 668 additions and 154 deletions
+24
View File
@@ -98,4 +98,28 @@ class DatabaseService
{
return $this->getDriver()->query($sql, $bindings);
}
/**
* Export the database.
*/
public function export(array $config): string
{
return $this->getDriver()->export($config);
}
/**
* Import the database.
*/
public function import(array $config, string $filePath): bool
{
return $this->getDriver()->import($config, $filePath);
}
/**
* Get database metadata.
*/
public function getDatabaseMetadata(string $database): array
{
return $this->getDriver()->getDatabaseMetadata($database);
}
}