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

A request to roll the open transaction back completely.

Rule: SQLITE-ROLLBACK-001. SQLite reads a name after TRANSACTION and ignores it. Rolling back to a savepoint is a different request, RollbackTo. Source: https://sqlite.org/lang_transaction.html. Status: Implemented.

Reading a rollbackdoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('ROLLBACK TRANSACTION')->toString() // => 'ROLLBACK'

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 1
Other tests reaching this symbol 2

Relations§

Instantiated in 1