feat: implement database schema discovery and management services with frontend integration
This commit is contained in:
@@ -48,4 +48,34 @@ interface DatabaseDriverInterface
|
||||
* Get database metadata (charset, collation, size, etc.)
|
||||
*/
|
||||
public function getDatabaseMetadata(string $database): array;
|
||||
|
||||
/**
|
||||
* Get table metadata.
|
||||
*/
|
||||
public function getTableMetadata(string $database, string $table): array;
|
||||
|
||||
/**
|
||||
* Get metadata for all tables in a database.
|
||||
*/
|
||||
public function getTablesMetadata(string $database): array;
|
||||
|
||||
/**
|
||||
* Truncate a table.
|
||||
*/
|
||||
public function truncateTable(string $table): bool;
|
||||
|
||||
/**
|
||||
* Drop a table.
|
||||
*/
|
||||
public function dropTable(string $table): bool;
|
||||
|
||||
/**
|
||||
* Optimize a table.
|
||||
*/
|
||||
public function optimizeTable(string $table): bool;
|
||||
|
||||
/**
|
||||
* Perform batch update on a table.
|
||||
*/
|
||||
public function batchUpdate(string $table, array $changes): bool;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user