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

DEALLOCATE PREPARE (or its synonym DROP PREPARE): releases a prepared statement.

Rule: MYSQL-DEALLOCATE-001. The prepared statement is a session object; the statement derives nothing and returns no rows. Terminates: no child. Source: https://dev.mysql.com/doc/refman/8.4/en/deallocate-prepare.html. Status: Implemented.

Reading a DEALLOCATE PREPAREdoctest
$deallocate = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('DROP PREPARE stmt');
    [$deallocate->statement->name->value, $deallocate->toString()] // => ['stmt', 'DEALLOCATE PREPARE stmt']

Properties§

public Name $name

Methods§

public function __construct(public Name $name)

Parameters

$nameNameThe name of the prepared statement
public function deriveStatement(Derivation $derivation): void

Derives nothing: the statement holds no expression and returns no rows.

Parameters

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

Writes the statement.

Parameters

$outOutput
Calls 2

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Type checks 1