public function __construct(\PDOStatement $dataResult) { parent::__construct($dataResult); /** * @todo hanlde PDO bug that won't return the row count as it's supposed */ $this->rows = $this->dataResult->rowCount(); }
public function __construct(\SQLite3Result $dataResult) { parent::__construct($dataResult); /** * @todo There is no way of getting the number of rows unless you loop through all data */ //$this->rows = $this->dataResult->rowCount(); }
public function __construct(\mysqli_result $dataResult) { parent::__construct($dataResult); $this->rows = $this->dataResult->num_rows; }