AsyncMysqlRow
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 a row
You can think of a row just like you do a database row that might be returned as a result from a query. The row has values associated with each column.
Guides
Interface Synopsis
final class AsyncMysqlRow implements MysqlRow {...}
Public Methods
->at(mixed $field): mixed
Get field (column) value indexed by thefield->count(): int
Get the number of fields (columns) in the current row->fieldType(mixed $field): int
Returns the type of the field (column)->getFieldAsDouble(mixed $field): float
Get a certain field (column) value as adouble->getFieldAsInt(mixed $field): int
Get a certain field (column) value as anint->getFieldAsString(mixed $field): string
Get a certain field (column) value as astring->getIterator(): KeyedIterator<string, mixed>
Get the iterator over the fields in the current row->isNull(mixed $field): bool
Returns whether a field (column) value isnull