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

HANDLER ... CLOSE: closes an open handler.

Rule: MYSQL-HANDLER-CLOSE-001. The handler is session state; the statement derives nothing and returns no rows. Terminates: no child. Source: https://dev.mysql.com/doc/refman/8.4/en/handler.html. Status: Implemented.

Reading a HANDLER ... CLOSEdoctest
$close = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('HANDLER h CLOSE');
    [$close->statement->handler->value, $close->toString()] // => ['h', 'HANDLER h CLOSE']

Properties§

public Name $handler

Methods§

public function __construct(public Name $handler)

Parameters

$handlerNameThe name of the handler
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 2