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

Method deleteWithFilter

lib/Db/StorageMapper.php:242–250  ·  view source on GitHub ↗

* delete data * @param int $datasetId * @param $options * @return int * @throws Exception */

(int $datasetId, $options)

Source from the content-addressed store, hash-verified

240 * @throws Exception
241 */
242 public function deleteWithFilter(int $datasetId, $options)
243 {
244 $sql = $this->db->getQueryBuilder();
245 $sql->delete(self::TABLE_NAME)
246 ->where($sql->expr()->eq('dataset', $sql->createNamedParameter($datasetId)));
247
248 $this->applyFilterOptions($sql, $options);
249 return $sql->executeStatement(); // number of deleted rows
250 }
251
252 /**
253 * delete data

Callers

nothing calls this directly

Calls 2

applyFilterOptionsMethod · 0.95
deleteMethod · 0.45

Tested by

no test coverage detected