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

Method getAllDataloadMetadata

lib/Db/DataloadMapper.php:84–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 }
83
84 public function getAllDataloadMetadata() {
85 $sql = $this->db->getQueryBuilder();
86 $sql->from(self::TABLE_NAME)->select('dataset')->selectAlias($sql->func()->count('id'), 'dataloads')
87 ->selectAlias($sql->func()->max('schedule'), 'schedules')->where($sql->expr()
88 ->eq('user_id', $sql->createNamedParameter($this->userId)))
89 ->addgroupBy('dataset');
90 $statement = $sql->executeQuery();
91 $result = $statement->fetchAll();
92 $statement->closeCursor();
93 return $result;
94 }
95
96 public function getScheduleMetadata() {
97 $sql = $this->db->getQueryBuilder();

Callers

nothing calls this directly

Calls 2

countMethod · 0.80
eqMethod · 0.80

Tested by

no test coverage detected