feat: implement MySQL driver and API schema services for database management
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user