IResult
in
This interface represents the result of a database query.
Usage:
$qb = $this->db->getQueryBuilder();
$qb->select(...);
$result = $query->executeQuery();
This interface must not be implemented in your application.
Tags
Table of Contents
Methods
- closeCursor() : true
- fetch() : mixed
- fetchAll() : array<string|int, mixed>
- fetchColumn() : mixed
- fetchOne() : false|mixed
- Returns the first value of the next row of the result or FALSE if there are no more rows.
- rowCount() : int
Methods
closeCursor()
public
closeCursor() : true
Tags
Return values
truefetch()
public
fetch([int $fetchMode = PDO::FETCH_ASSOC ]) : mixed
Parameters
- $fetchMode : int = PDO::FETCH_ASSOC
Tags
fetchAll()
public
fetchAll([int $fetchMode = PDO::FETCH_ASSOC ]) : array<string|int, mixed>
Parameters
- $fetchMode : int = PDO::FETCH_ASSOC
-
(one of PDO::FETCH_ASSOC, PDO::FETCH_NUM or PDO::FETCH_COLUMN (2, 3 or 7)
Tags
Return values
array<string|int, mixed>fetchColumn()
public
fetchColumn() : mixed
use \OCP\DB\IResult::fetchOne
Tags
fetchOne()
Returns the first value of the next row of the result or FALSE if there are no more rows.
public
fetchOne() : false|mixed
Tags
Return values
false|mixedrowCount()
public
rowCount() : int