RedBeanPHP\Adapter\DBAdapter::getCursor PHP Méthode

getCursor() public méthode

See also: Adapter::getCursor
public getCursor ( $sql, $bindings = [] )
    public function getCursor($sql, $bindings = array())
    {
        return $this->db->GetCursor($sql, $bindings);
    }

Usage Example

Exemple #1
0
 /**
  * @see QueryWriter::queryRecordWithCursor
  */
 public function queryRecordWithCursor($type, $addSql = NULL, $bindings = array())
 {
     $sql = $this->glueSQLCondition($addSql, NULL);
     $table = $this->esc($type);
     $sql = "SELECT {$table}.* FROM {$table} {$sql}";
     return $this->adapter->getCursor($sql, $bindings);
 }