ResultSet
- Full name:
\Qubus\Expressive\ResultSet
Properties
statement
Methods
__construct
Constructor
Parameters:
Parameter | Type | Description |
---|---|---|
$statement | \PDOStatement | The PDOStatement associated with this result set. |
__destruct
Destructor
count
Count affected rows
all
Fetch all results.
Parameters:
Parameter | Type | Description |
---|---|---|
$callable | callable|null | (optional) Callback function |
$fetchStyle | int | (optional) PDO fetch style |
allGroup
Parameters:
Parameter | Type | Description |
---|---|---|
$uniq | bool | (optional) |
$callable | callable|null | (optional) |
first
Fetch first result
Parameters:
Parameter | Type | Description |
---|---|---|
$callable | callable|null | (optional) Callback function |
next
Fetch next result
flush
Close current cursor
column
Return a column
Parameters:
Parameter | Type | Description |
---|---|---|
$col | int | 0-indexed number of the column you wish to retrieve |
fetchAssoc
Fetch each result as an associative array
fetchObject
Fetch each result as an stdClass object
fetchNamed
fetchNum
fetchBoth
fetchKeyPair
fetchClass
Parameters:
Parameter | Type | Description |
---|---|---|
$class | string | |
$ctorargs | array | (optional) |
fetchCustom
Parameters:
Parameter | Type | Description |
---|---|---|
$func | \Closure |
Automatically generated on 2025-10-13