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

Method readRaw

lib/Db/StorageMapper.php:171–181  ·  view source on GitHub ↗

Return complete source rows so report calculations can run before grouping. */

(int $dataset, array $options = [])

Source from the content-addressed store, hash-verified

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

Callers 1

readMethod · 0.45

Calls 2

applyFilterOptionsMethod · 0.95
eqMethod · 0.80

Tested by

no test coverage detected