feat: implement dynamic database management via MySQL driver and API controllers

This commit is contained in:
Ümit Tunç
2026-04-24 12:52:01 +03:00
parent 9fe07a1985
commit 23f8eeb560
8 changed files with 164 additions and 33 deletions
+16
View File
@@ -122,4 +122,20 @@ class DatabaseService
{
return $this->getDriver()->getDatabaseMetadata($database);
}
/**
* Get table metadata.
*/
public function getTableMetadata(string $database, string $table): array
{
return $this->getDriver()->getTableMetadata($database, $table);
}
/**
* Truncate a table.
*/
public function truncateTable(string $table): bool
{
return $this->getDriver()->truncateTable($table);
}
}