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

Method upsertRecords

lib/Controller/DatasetController.php:148–157  ·  view source on GitHub ↗

@param list > $records */

(int $datasetId, int $schemaVersion, array $records)

Source from the content-addressed store, hash-verified

146
147 /** @param list<array<string,mixed>> $records */
148 #[NoAdminRequired]
149 public function upsertRecords(int $datasetId, int $schemaVersion, array $records): DataResponse {
150 try {
151 $result = $this->FlexibleStorageService->upsertRecords($datasetId, $schemaVersion, $records);
152 $this->DatasetService->provider($datasetId);
153 return new DataResponse($result);
154 } catch (FlexibleStorageException $e) {
155 return $this->flexibleError($e);
156 }
157 }
158
159 /** @param array<string,mixed> $values */
160 #[NoAdminRequired]

Callers

nothing calls this directly

Calls 2

flexibleErrorMethod · 0.95
providerMethod · 0.45

Tested by

no test coverage detected