feat: implement database management API with MySQL driver and schema operations
This commit is contained in:
@@ -83,4 +83,14 @@ interface DatabaseDriverInterface
|
||||
* Create a new database.
|
||||
*/
|
||||
public function createDatabase(string $name, string $charset = 'utf8mb4', string $collation = 'utf8mb4_unicode_ci'): bool;
|
||||
|
||||
/**
|
||||
* Drop a database.
|
||||
*/
|
||||
public function dropDatabase(string $name): bool;
|
||||
|
||||
/**
|
||||
* Rename a database.
|
||||
*/
|
||||
public function renameDatabase(string $oldName, string $newName): bool;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user