Exemple #1
0
 /**
  * Returns a query builder instance.
  *
  * @access  protected
  * @return  \mako\database\query\Query
  */
 protected function table()
 {
     return $this->connection->builder()->table($this->table);
 }
Exemple #2
0
 /**
  * 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']);
 }