Rows
final class Rows implements Iterator, ArrayAccess (View source)
Rows represent a result of statement execution.
Methods
No description
Returns the number of rows.
Resets the rows iterator.
Returns current row.
Returns current index.
Advances the rows iterator by one.
Returns existence of more rows being available.
Returns existence of a given row.
Returns a row at given index.
Sets a row at given index.
Removes a row at given index.
Check for the last page when paging.
Get the next page of results asynchronously.
Returns the raw paging state token.
Get the first row.
Details
__construct()
No description
int
count()
Returns the number of rows.
void
rewind()
Resets the rows iterator.
mixed
current()
Returns current row.
mixed
key()
Returns current index.
void
next()
Advances the rows iterator by one.
bool
valid()
Returns existence of more rows being available.
bool
offsetExists(TKey $offset)
Returns existence of a given row.
mixed
offsetGet(TKey $offset)
Returns a row at given index.
void
offsetSet(TKey $offset, TValue $value)
Sets a row at given index.
void
offsetUnset(TKey $offset)
Removes a row at given index.
bool
isLastPage()
Check for the last page when paging.
Rows|null
nextPage(float|null $timeout)
Get the next page of results.
Future
nextPageAsync()
Get the next page of results asynchronously.
string
pagingStateToken()
Returns the raw paging state token.
array|null
first()
Get the first row.