classDeallocate
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.
$deallocate = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('DEALLOCATE PREPARE ALL');
[$deallocate->statement->name, $deallocate->toString()] // => [null, 'DEALLOCATE ALL']Properties§
public Name|null $nameMethods§
public function __construct(public Name|null $name)Parameters
$name | Name|null | The name of the prepared statement; null for ALL |
public function deriveStatement(Derivation $derivation): voidDerives nothing: prepared statements are session state.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 50
- method-call Output::name() line 56
- class-const NameUse::Column() line 56
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
DeallocateTestcalls
Other tests reaching this symbol 2
Relations§
Instantiated in 3
- new SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\PreparedRule::deallocate() packages/sql-semantics-postgres/src/Lowering/Manipulation/PreparedRule.php:117
- new SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\PreparedRule::deallocate() packages/sql-semantics-postgres/src/Lowering/Manipulation/PreparedRule.php:118
- new SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\PreparedRule::deallocate() packages/sql-semantics-postgres/src/Lowering/Manipulation/PreparedRule.php:119