interface StatementInterface

Minimal statement interface for ZTD layer.

This interface defines the contract that all statement adapters must implement to work with the ZTD session. It provides a driver-agnostic API for executing prepared statements and fetching results.

Rows retain the keys and opaque values supplied by the driver. The platform owns value interpretation and SQL encoding.

Type Aliases§

Row = import from TableDefinition
RowValue = import from TableDefinition

Methods§

public function execute(array<int|string, RowValue>|null $params = null): bool

Execute the prepared statement.

Parameters

$paramsarray<int|string, RowValue>|nullOptional parameters to bind.

Returns

bool True on success, false on failure.
Called from 1
public function fetchAll(): array<int, Row>

Fetch all rows as associative arrays.

Returns

array<int, Row> Array of associative arrays.
Called from 1
public function resultColumns(ResultColumnTypeResolver $typeResolver): list<ResultColumn>

Return result-set columns in projection order.

Metadata must remain available when the result contains no rows.

Parameters

Returns

Called from 1
public function rowCount(): int

Return the number of affected rows.

Returns

int

Test cases 4§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Other tests reaching this symbol 4

Relations§

Implemented by 1
Method calls 3
Type declarations 8