final class OdbcExecutionResult (View source)

Captures the statement resource and affected row count produced by an ODBC execution.

Methods

__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.

bool

Indicates whether the executed statement produced a result set.

bool
array
rows()

Returns materialized associative result rows in driver read order.

array
array
fields()

Returns column metadata corresponding to the materialized rows.

array
int

Returns the affected-row count captured immediately after execution.

int
int|string|null

Returns the generated identifier when the ODBC driver could provide one.

int|string|null

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.

Parameters

bool $hasResultSet
array $rows
array $fields
int $affectedRows
int|string|null $insertId

hasResultSet

bool hasResultSet()

Indicates whether the executed statement produced a result set.

Return Value

bool

rows

array rows()

Returns materialized associative result rows in driver read order.

Return Value

array

fields

array fields()

Returns column metadata corresponding to the materialized rows.

Return Value

array

affectedRows

int affectedRows()

Returns the affected-row count captured immediately after execution.

Return Value

int

insertId

int|string|null insertId()

Returns the generated identifier when the ODBC driver could provide one.

Return Value

int|string|null