AsyncMysqlRowIterator
Note
This is a point-in-time snapshot of the API documentation from January 2026. Going forward, we will not be maintaining a public copy of these references, and recommend users to refer to the built-in signature helpers available in the Hack LSP instead for complete and up-to-date information.
A class to represent an iterator over the fields (columns) in a row
You can iterate over all the fields (columns) of an AsyncMysqlBlock one by
one until the iterator is not valid any longer.
Guides
Interface Synopsis
final class AsyncMysqlRowIterator implements HH\KeyedIterator {...}
Public Methods
->current(): string
Get the current field (column) name->key(): int
Get the current field (column) number->next(): void
Advance the iterator to the next field (column)->rewind(): void
Reset the iterator to the first field (column)->valid(): bool
Check if the iterator is at a valid field (column)