classRollback
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.
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('ROLLBACK TRANSACTION')->toString() // => 'ROLLBACK'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.