interfaceParameterBindingCompiler
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
$sql | string | |
$params | array<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 3
- FakeParameterBindingCompiler packages/ztd-query-core/tests/Fake/FakeParameterBindingCompiler.php:16
- PgSqlPdoParameterBindingCompiler packages/ztd-query-postgres/src/Connection/Parameter/PgSqlPdoParameterBindingCompiler.php:14
- SqlitePdoParameterBindingCompiler packages/ztd-query-sqlite/src/Connection/Parameter/SqlitePdoParameterBindingCompiler.php:16