feat: implement MySQL database driver and API service for schema management and data operations
This commit is contained in:
@@ -78,17 +78,17 @@ class DatabaseService
|
||||
/**
|
||||
* Get table data.
|
||||
*/
|
||||
public function getTableData(string $table, int $limit = 100, int $offset = 0): array
|
||||
public function getTableData(string $table, int $limit = 100, int $offset = 0, array $filters = []): array
|
||||
{
|
||||
return $this->getDriver()->getTableData($table, $limit, $offset);
|
||||
return $this->getDriver()->getTableData($table, $limit, $offset, $filters);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get table row count.
|
||||
*/
|
||||
public function getTableCount(string $table): int
|
||||
public function getTableCount(string $table, array $filters = []): int
|
||||
{
|
||||
return $this->getDriver()->getTableCount($table);
|
||||
return $this->getDriver()->getTableCount($table, $filters);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user