interfaceExecuteResult
interface ExecuteResult
Result of a ZTD statement execution.
This interface encapsulates the result of executing a statement through Session, providing a unified API for fetching results whether from rewritten statements, buffered rows (for simulated writes), or passthrough scenarios.
Type Aliases§
Row = import from TableDefinitionMethods§
public function isPassthrough(): boolCheck if this is a passthrough result (original statement should be executed).
Returns
boolpublic function isSuccess(): boolCheck if the execution was successful.
Returns
boolpublic function rowCount(): intGet the number of affected/returned rows.
Returns
intpublic function hasResultSet(): boolWhether this result contains a result set that can be fetched.
Returns
boolRelations§
Type declarations 7
- type ZtdQuery\Session packages/ztd-query-core/src/Session.php:152
- type ZtdQuery\Session packages/ztd-query-core/src/Session.php:345
- type ZtdQuery\Adapter\Mysqli\Session\MysqliResultProcessor packages/ztd-query-mysqli-adapter/src/Session/MysqliResultProcessor.php:25
- type ZtdQuery\Adapter\Mysqli\Session\StatementExecution packages/ztd-query-mysqli-adapter/src/Session/StatementExecution.php:21
- type ZtdQuery\Adapter\Mysqli\Session\StatementExecution packages/ztd-query-mysqli-adapter/src/Session/StatementExecution.php:43
- type ZtdQuery\Adapter\Pdo\Session\StatementExecution packages/ztd-query-pdo-adapter/src/Session/StatementExecution.php:26
- type ZtdQuery\Adapter\Pdo\Session\StatementExecution packages/ztd-query-pdo-adapter/src/Session/StatementExecution.php:109