classPgSqlPdoParameterBindingCompiler
final class PgSqlPdoParameterBindingCompiler
implements ParameterBindingCompiler
Pdo parameter binding compiler for PostgreSQL queries.
Methods§
public function __construct(private PgSqlPdoPlaceholderEscaper $placeholderEscaper = new \ZtdQuery\Platform\Postgres\Connection\Parameter\PgSqlPdoPlaceholderEscaper…)Initializes the collaborators and state used by this pdo parameter binding compiler.
Parameters
$placeholderEscaper | PgSqlPdoPlaceholderEscaper |
Calls 1
public function compile(string $sql, ?array $params): arrayBinds PDO placeholders using the PostgreSQL lexical rules.
Parameters
$sql | string | |
$params | ?array |
Returns
arrayTest cases 2
Calls 11
- static-call SqlTokenStream::tokenize() line 31
- static-call PgSqlLexerProfile::create() line 31
- function-call
str_starts_withline 32 - function-call
filter_varline 35 - function-call
substrline 36 - function-call
is_intline 40 - function-call
strlenline 45 - function-call
krsortline 51 - function-call
substr_replaceline 53 - method-call PgSqlPdoPlaceholderEscaper::escape() line 56
- function-call
array_key_existsline 63
Private surface 1§
Implementation details, listed for orientation only.
private PgSqlPdoPlaceholderEscaper $placeholderEscaper = new \ZtdQuery\Platform\Postgres\Connection\Parameter\PgSqlPdoPlaceholderEscaper…Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.