MysqlExecutionResult
final class MysqlExecutionResult (View source)
Captures raw MySQL execution output together with write metadata needed by the driver facade.
Methods
Captures a result-set handle or successful write marker with its affected rows and generated identifier.
Returns the raw mysqli execution result retained for result cursor construction.
Indicates whether execution produced a mysqli result set rather than a write acknowledgement.
Returns the mysqli result handle only when execution produced rows.
Returns the affected-row count captured immediately after execution.
Returns the generated identifier captured immediately after execution.
Details
__construct
__construct(mysqli_result|bool $result, int $affectedRows, int|string $insertId)
Captures a result-set handle or successful write marker with its affected rows and generated identifier.
result
mysqli_result|bool
result()
Returns the raw mysqli execution result retained for result cursor construction.
hasResultSet
bool
hasResultSet()
Indicates whether execution produced a mysqli result set rather than a write acknowledgement.
mysqliResult
mysqli_result|null
mysqliResult()
Returns the mysqli result handle only when execution produced rows.
affectedRows
int
affectedRows()
Returns the affected-row count captured immediately after execution.
insertId
int|string
insertId()
Returns the generated identifier captured immediately after execution.