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

A request to commit the open transaction.

Rule: SQLITE-COMMIT-001. COMMIT and END are the same request and are both written as COMMIT. SQLite reads a name after TRANSACTION and ignores it. Source: https://sqlite.org/lang_transaction.html. Status: Implemented.

Writing END as COMMITdoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('END TRANSACTION')->toString() // => 'COMMIT'

Properties§

public Name|null $name = null

Methods§

public function __construct(public Name|null $name = null)

Parameters

$nameName|nullThe name written after TRANSACTION, which SQLite ignores
public function deriveStatement(Derivation $derivation): void

Derives nothing: the request depends on no declaration.

Parameters

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

Writes the request.

Parameters

$outOutput
Calls 2

Test cases 3§

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

Dedicated tests 2
Other tests reaching this symbol 1

Relations§

Instantiated in 1