feat: implement MySQL database driver and API service for schema management and data operations

This commit is contained in:
Ümit Tunç
2026-04-24 22:43:28 +03:00
parent 22ff72d39c
commit e75657d22a
6 changed files with 137 additions and 19 deletions
+4 -4
View File
@@ -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);
}
/**