final class ResultSelectRunner

Executes result-select queries and returns rows.

Type Aliases§

Row = import from TableDefinition
RowValue = import from TableDefinition

Methods§

public function run(
    string $sql,
    callable(string): StatementInterface|false $executor,
    ResultColumnTypeResolver $typeResolver,
): array<int, Row>

Execute SQL using the provided executor and return result rows.

Parameters

$sqlstring
$executorcallable(string): StatementInterface|false
$typeResolverResultColumnTypeResolver

Returns

array<int, Row>
Test cases 3
Calls 1
public function runStatement(
    StatementInterface $statement,
    ResultColumnTypeResolver $typeResolver,
    array<int|string, RowValue>|null $params = null,
): array<int, Row>

Execute a prepared statement and return result rows.

Parameters

$statementStatementInterface
$typeResolverResultColumnTypeResolver
$paramsarray<int|string, RowValue>|null

Returns

array<int, Row>
Test cases 1
Calls 2

Test cases 89§

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

Dedicated tests 7
Other tests reaching this symbol 82

Relations§

Instantiated in 3
Method calls 3
Type declarations 2