classBegin
final class Begin
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.BEGIN [WORK]: a request to start a transaction without characteristics.
Mirrors SQLCOM_BEGIN with no start options. Rule: MYSQL-BEGIN-001. BEGIN is the alias of START TRANSACTION that takes no characteristics; inside a stored program the word starts a compound statement instead, which is a different production. WORK is optional and not written. The statement names no relation and has no facts. Source: https://dev.mysql.com/doc/refman/8.4/en/commit.html. Status: Implemented.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('BEGIN WORK')->toString() // => 'BEGIN'Methods§
public function deriveStatement(Derivation $derivation): voidHas nothing to derive: the request names no relation and no value.
Parameters
$derivation | Derivation |
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
BeginTestcalls