final class MysqlExecutionResult (View source)

Captures raw MySQL execution output together with write metadata needed by the driver facade.

Methods

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

mysqli_result|bool
result()

Returns the raw mysqli execution result retained for result cursor construction.

mysqli_result|bool
bool

Indicates whether execution produced a mysqli result set rather than a write acknowledgement.

bool
mysqli_result|null

Returns the mysqli result handle only when execution produced rows.

mysqli_result|null
int

Returns the affected-row count captured immediately after execution.

int
int|string

Returns the generated identifier captured immediately after execution.

int|string

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.

Parameters

mysqli_result|bool $result
int $affectedRows
int|string $insertId

result

mysqli_result|bool result()

Returns the raw mysqli execution result retained for result cursor construction.

Return Value

mysqli_result|bool

hasResultSet

bool hasResultSet()

Indicates whether execution produced a mysqli result set rather than a write acknowledgement.

Return Value

bool

mysqliResult

mysqli_result|null mysqliResult()

Returns the mysqli result handle only when execution produced rows.

Return Value

mysqli_result|null

affectedRows

int affectedRows()

Returns the affected-row count captured immediately after execution.

Return Value

int

insertId

int|string insertId()

Returns the generated identifier captured immediately after execution.

Return Value

int|string