mini\Database\ResultSet
class
Documentation
Simple result set wrapper for raw SQL queries
Wraps an iterable of rows and provides the ResultSetInterface API. Supports hydration to entity classes or custom closures.
Rows can be arrays or stdClass objects. When hydration is not configured, rows are returned as-is (array or stdClass depending on source).
Inheritance
Implements:
mini\Database\ResultSetInterface
Traversable
Countable
JsonSerializable
IteratorAggregate
Properties (5)
iterable $rows
array $materialized
Closure $hydrator
string $entityClass
array|false $constructorArgs
Methods (15)
Documentation missing
Documentation missing
Documentation missing
Documentation missing
Documentation missing
Documentation missing
Documentation missing
Documentation missing
Get first value from a row (works with both array and stdClass)
Documentation missing
Documentation missing
Materialize rows for operations that need the full set
Apply hydration to a single row
Convert row to array if needed
Hydrate row into entity class