interface ParameterBindingCompiler

Writes a statement and its values in the form a driver will take.

Drivers disagree about what a placeholder is and whether a value may be bound by name, so a statement ZTD rewrote has to be put into the shape the driver underneath expects before it is run.

Methods§

public function compile(
    string $sql,
    array<int|string, mixed>|null $params,
): array{sql: string, params: array<int|string, mixed>|null}

Parameters

$sqlstring
$paramsarray<int|string, mixed>|null

Returns

array{sql: string, params: array<int|string, mixed>|null}

Test cases 2§

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

Other tests reaching this symbol 2

Relations§

Implemented by 1
Type declarations 3