MysqlResult
final class MysqlResult extends DatabaseResult (View source)
Adapts a MySQLi result handle to cached framework result projections.
Methods
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Retrieves the requested value without changing the current database state.
Retrieves the requested value without changing the current database state.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Fetches the next native row as an associative array for DatabaseResult traversal.
Wraps a result-producing MySQLi execution for framework result consumption.
Returns the number of rows buffered by the MySQLi result handle.
Returns the number of fields described by the MySQLi result handle.
Lists field names in the result-set order reported by MySQLi.
Converts MySQLi field metadata into framework field value objects.
Converts field metadata to the legacy object shape expected by compatible consumers.
Repositions the MySQLi result cursor for subsequent row reads.
Releases the native MySQLi result buffer.
Details
result
array
result(string $type = 'object')
No description
result_object
array
result_object()
No description
result_array
array
result_array()
No description
custom_result_object
array
custom_result_object(string $className)
No description
row
mixed
row(int|string $n = 0, string $type = 'object')
Provides this part of the database contract while preserving the object's current state and driver semantics.
row_array
array|null
row_array(int $n = 0)
No description
row_object
object|null
row_object(int $n = 0)
Provides this part of the database contract while preserving the object's current state and driver semantics.
first_row
mixed
first_row(string $type = 'object')
Retrieves the requested value without changing the current database state.
last_row
mixed
last_row(string $type = 'object')
Retrieves the requested value without changing the current database state.
next_row
mixed
next_row(string $type = 'object')
Provides this part of the database contract while preserving the object's current state and driver semantics.
previous_row
mixed
previous_row(string $type = 'object')
Provides this part of the database contract while preserving the object's current state and driver semantics.
fetchAssoc
protected array|null
fetchAssoc()
Fetches the next native row as an associative array for DatabaseResult traversal.
fromMysqliResult
static MysqlResult
fromMysqliResult(mysqli_result $result)
Wraps a result-producing MySQLi execution for framework result consumption.
num_rows
int
num_rows()
Returns the number of rows buffered by the MySQLi result handle.
num_fields
int
num_fields()
Returns the number of fields described by the MySQLi result handle.
list_fields
array
list_fields()
Lists field names in the result-set order reported by MySQLi.
field_data
array
field_data()
Converts MySQLi field metadata into framework field value objects.
field_data_object
array
field_data_object()
Converts field metadata to the legacy object shape expected by compatible consumers.
data_seek
bool
data_seek(int $n = 0)
Repositions the MySQLi result cursor for subsequent row reads.
free_result
void
free_result()
Releases the native MySQLi result buffer.