final class PreparedQuery
Restricted visibility: declared "@visibility ZtdQuery\Adapter\Pdo". Code outside that scope must not name this declaration.

Rewrites a prepared query against the current shadow before each execution. The native preparation callback retains the caller's driver options.

Methods§

public function __construct(
    private Session $session,
    private string $sql,
    private Closure(string): PDOStatement|false $prepare,
)

Parameters

$sessionSession
$sqlstring
$prepareClosure(string): PDOStatement|falseNative preparation with its original options.

Private surface 3§

Implementation details, listed for orientation only.

private Session $session
private string $sql
private Closure(string): PDOStatement|false $prepare

Test cases 13§

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

Dedicated tests 2
Other tests reaching this symbol 11

Relations§

Instantiated in 1
Method calls 2
Type declarations 3