/** * Returns a query builder instance. * * @access protected * @return \mako\database\query\Query */ protected function table() { return $this->connection->builder()->table($this->table); }
/** * Deletes data from the chosen table. * * @access public * @return int */ public function delete() { $query = $this->getCompiler()->delete(); return $this->connection->queryAndCount($query['sql'], $query['params']); }