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

Method deleteWithFilter

lib/Db/StorageMapper.php:255–263  ·  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

253 * @throws Exception
254 */
255 public function deleteWithFilter(int $datasetId, $options)
256 {
257 $sql = $this->db->getQueryBuilder();
258 $sql->delete(self::TABLE_NAME)
259 ->where($sql->expr()->eq('dataset', $sql->createNamedParameter($datasetId)));
260
261 $this->applyFilterOptions($sql, $options);
262 return $sql->executeStatement(); // number of deleted rows
263 }
264
265 /**
266 * delete data

Callers 1

deleteDataV4Method · 0.45

Calls 3

applyFilterOptionsMethod · 0.95
eqMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected