classHandlerClose
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.
$close = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('HANDLER h CLOSE');
[$close->statement->handler->value, $close->toString()] // => ['h', 'HANDLER h CLOSE']Properties§
public Name $handlerMethods§
public function deriveStatement(Derivation $derivation): voidDerives nothing: the statement holds no expression and returns no rows.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 49
- class-const NameUse::Relation() line 49
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
HandlerCloseTestcalls