feat: implement database management API with MySQL driver and schema operations
This commit is contained in:
@@ -172,4 +172,20 @@ class DatabaseService
|
||||
{
|
||||
return $this->getDriver()->createDatabase($name, $charset, $collation);
|
||||
}
|
||||
|
||||
/**
|
||||
* Drop a database.
|
||||
*/
|
||||
public function dropDatabase(string $name): bool
|
||||
{
|
||||
return $this->getDriver()->dropDatabase($name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename a database.
|
||||
*/
|
||||
public function renameDatabase(string $oldName, string $newName): bool
|
||||
{
|
||||
return $this->getDriver()->renameDatabase($oldName, $newName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user