OdbcExecutionResult
final class OdbcExecutionResult (View source)
Captures the statement resource and affected row count produced by an ODBC execution.
Methods
Captures materialized ODBC result metadata so later result projections do not depend on a live statement cursor.
Indicates whether the executed statement produced a result set.
Returns materialized associative result rows in driver read order.
Returns column metadata corresponding to the materialized rows.
Returns the affected-row count captured immediately after execution.
Returns the generated identifier when the ODBC driver could provide one.
Details
__construct
__construct(bool $hasResultSet, array $rows, array $fields, int $affectedRows, int|string|null $insertId)
Captures materialized ODBC result metadata so later result projections do not depend on a live statement cursor.
hasResultSet
bool
hasResultSet()
Indicates whether the executed statement produced a result set.
rows
array
rows()
Returns materialized associative result rows in driver read order.
fields
array
fields()
Returns column metadata corresponding to the materialized rows.
affectedRows
int
affectedRows()
Returns the affected-row count captured immediately after execution.
insertId
int|string|null
insertId()
Returns the generated identifier when the ODBC driver could provide one.