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