RedBeanPHP\Adapter\DBAdapter::getCursor PHP Method

getCursor() public method

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

Usage Example

コード例 #1
0
ファイル: AQueryWriter.php プロジェクト: wozzup/redbean
 /**
  * @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);
 }