final class Deallocate
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

DEALLOCATE: removal of one prepared statement, or of all of them.

Mirrors PostgreSQL's DeallocateStmt, whose name is NULL for ALL. The keyword PREPARE after DEALLOCATE is ignored. Rule: PG-DEALLOCATE-001: the prepared statements are session state; nothing is derived. Source: https://www.postgresql.org/docs/17/sql-deallocate.html. Status: Implemented.

Removing every prepared statementdoctest
$deallocate = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('DEALLOCATE PREPARE ALL');
    [$deallocate->statement->name, $deallocate->toString()] // => [null, 'DEALLOCATE ALL']

Properties§

public Name|null $name

Methods§

public function __construct(public Name|null $name)

Parameters

$nameName|nullThe name of the prepared statement; null for ALL
public function deriveStatement(Derivation $derivation): void

Derives nothing: prepared statements are session state.

Parameters

$derivationDerivation
public function render(Output $out): void

Writes the statement.

Parameters

$outOutput
Calls 3

Test cases 3§

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

Dedicated tests 1
Other tests reaching this symbol 2

Relations§

Instantiated in 3
Type declarations 1