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 TableDefinition

Methods§

public function isPassthrough(): bool

Check if this is a passthrough result (original statement should be executed).

Returns

bool
public function isSuccess(): bool

Check if the execution was successful.

Returns

bool
public function kind(): QueryKind

Get the query kind that was executed.

Returns

public function fetch(): Row|false

Fetch the next row.

Returns

Row|false
public function fetchAll(): array<int, Row>

Fetch all remaining rows.

Returns

array<int, Row>
public function rowCount(): int

Get the number of affected/returned rows.

Returns

int
public function hasResultSet(): bool

Whether this result contains a result set that can be fetched.

Returns

bool

Relations§

Implemented by 1
Type declarations 2