classCommit
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.
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('END TRANSACTION')->toString() // => 'COMMIT'Properties§
public Name|null $name = nullMethods§
public function __construct(public Name|null $name = null)Parameters
$name | Name|null | The name written after TRANSACTION, which SQLite ignores |
public function deriveStatement(Derivation $derivation): voidDerives nothing: the request depends on no declaration.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 48
- class-const NameUse::Label() line 50
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.