@param list > $records */
(int $datasetId, int $schemaVersion, array $records)
| 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] |
nothing calls this directly
no test coverage detected