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.

Starting a transaction with BEGIN WORKdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('BEGIN WORK')->toString() // => 'BEGIN'

Methods§

public function deriveStatement(Derivation $derivation): void

Has nothing to derive: the request names no relation and no value.

Parameters

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

Writes the request.

Parameters

$outOutput
Calls 1

Test cases 2§

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

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type declarations 1