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