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

Method getRecordCount

lib/Service/StorageService.php:290–295  ·  view source on GitHub ↗

* Get the number of records for a dataset * @param int $datasetId * @param string|null $user_id * @return array */

(int $datasetId, ?string $user_id = null)

Source from the content-addressed store, hash-verified

288 * @return array
289 */
290 public function getRecordCount(int $datasetId, ?string $user_id = null) {
291 if ($this->DatasetStorageResolver->resolve($datasetId)['mode'] === DatasetStorageResolver::FLEXIBLE_SHARED) {
292 return $this->FlexibleStorageService->getRecordCount($datasetId);
293 }
294 return $this->StorageMapper->getRecordCount($datasetId, $user_id);
295 }
296
297 private function requireLegacy(int $datasetId): void {
298 $mode = $this->DatasetStorageResolver->resolve($datasetId)['mode'];

Callers 2

statusMethod · 0.45
executeMethod · 0.45

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected