interfaceStatementInterface
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 TableDefinitionRowValue = import from TableDefinitionMethods§
public function execute(array<int|string, RowValue>|null $params = null): boolExecute the prepared statement.
Parameters
$params | array<int|string, RowValue>|null | Optional 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
$typeResolver | ResultColumnTypeResolver |
Returns
list<ResultColumn>Called from 1
public function rowCount(): intReturn the number of affected rows.
Returns
intTest 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
- method-call ZtdQuery\ResultSelectRunner::runStatement() packages/ztd-query-core/src/ResultSelectRunner.php:61
- method-call ZtdQuery\ResultSelectRunner::readResultSet() packages/ztd-query-core/src/ResultSelectRunner.php:77
- method-call ZtdQuery\ResultSelectRunner::readResultSet() packages/ztd-query-core/src/ResultSelectRunner.php:78
Type declarations 8
- type ZtdQuery\Connection\ConnectionInterface packages/ztd-query-core/src/Connection/ConnectionInterface.php:21
- type ZtdQuery\GenericExecuteResult packages/ztd-query-core/src/GenericExecuteResult.php:28
- type ZtdQuery\GenericExecuteResult packages/ztd-query-core/src/GenericExecuteResult.php:60
- type ZtdQuery\GenericExecuteResult packages/ztd-query-core/src/GenericExecuteResult.php:101
- type ZtdQuery\GenericExecuteResult packages/ztd-query-core/src/GenericExecuteResult.php:139
- type ZtdQuery\ResultSelectRunner packages/ztd-query-core/src/ResultSelectRunner.php:57
- type ZtdQuery\ResultSelectRunner packages/ztd-query-core/src/ResultSelectRunner.php:74
- type ZtdQuery\Session packages/ztd-query-core/src/Session.php:345