MCPcopy Create free account
hub / github.com/Rello/analytics / getRecordCount

Method getRecordCount

lib/Db/FlexibleStorageMapper.php:213–219  ·  view source on GitHub ↗
(int $datasetId)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 2

countMethod · 0.80
eqMethod · 0.80

Tested by

no test coverage detected