Return complete source rows so report calculations can run before grouping. */
(int $dataset, array $options = [])
| 169 | |
| 170 | /** Return complete source rows so report calculations can run before grouping. */ |
| 171 | public function readRaw(int $dataset, array $options = []): array { |
| 172 | $sql = $this->db->getQueryBuilder(); |
| 173 | $sql->select('dimension1', 'dimension2', 'value') |
| 174 | ->from(self::TABLE_NAME) |
| 175 | ->where($sql->expr()->eq('dataset', $sql->createNamedParameter($dataset))); |
| 176 | $this->applyFilterOptions($sql, $options); |
| 177 | $result = $sql->executeQuery(); |
| 178 | $rows = $result->fetchAll(); |
| 179 | $result->closeCursor(); |
| 180 | return array_map('array_values', is_array($rows) ? $rows : []); |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * delete data |
no test coverage detected