classOpenCursor
final class OpenCursor
implements ProgramStatement
uses Snapshot
Public API: explicitly declared with
@visibility public.OPEN: opens a declared cursor.
The facts follow MYSQL-PROGRAM-CURSORS-001. Source: https://dev.mysql.com/doc/refman/8.4/en/open.html.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE PROCEDURE p() OPEN c') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: Undefined CURSOR: cProperties§
public Name $cursorMethods§
public function deriveProgram(Derivation $derivation, ProgramScope $scope): voidChecks that the cursor is declared.
Parameters
$derivation | Derivation | |
$scope | ProgramScope |
Calls 2
- method-call CursorFacts::cursor() line 42
- new CursorFacts line 42
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 50
- class-const NameUse::Identifier() line 50
Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.