feat: implement MySQL driver for database management, schema discovery, and CRUD operations
This commit is contained in:
@@ -265,6 +265,18 @@ class MySqlDriver implements DatabaseDriverInterface, SchemaDiscoveryInterface
|
||||
return true;
|
||||
}
|
||||
|
||||
public function dropTable(string $table): bool
|
||||
{
|
||||
DB::connection($this->connectionName)->statement("DROP TABLE `{$table}`");
|
||||
return true;
|
||||
}
|
||||
|
||||
public function optimizeTable(string $table): bool
|
||||
{
|
||||
DB::connection($this->connectionName)->statement("OPTIMIZE TABLE `{$table}`");
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getTablesMetadata(string $database): array
|
||||
{
|
||||
$sql = "
|
||||
|
||||
Reference in New Issue
Block a user