(int $datasetId)
| 211 | } |
| 212 | |
| 213 | public function getRecordCount(int $datasetId): array { |
| 214 | $sql = $this->db->getQueryBuilder(); |
| 215 | $sql->selectAlias($sql->func()->count('*'), 'count') |
| 216 | ->from(self::RECORD_TABLE) |
| 217 | ->where($sql->expr()->eq('dataset_id', $sql->createNamedParameter($datasetId, IQueryBuilder::PARAM_INT))); |
| 218 | return ['count' => (int)$sql->executeQuery()->fetchOne()]; |
| 219 | } |
| 220 | |
| 221 | public function getLastUpdate(int $datasetId): int { |
| 222 | $sql = $this->db->getQueryBuilder(); |