classRollbackTo
final class RollbackTo
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.A request to undo the changes made since a savepoint, keeping the transaction open.
Rule: SQLITE-ROLLBACK-TO-001. The savepoint stays on the transaction stack. The SAVEPOINT keyword before the name is optional and is not written. SQLite reads a name after TRANSACTION and ignores it. Savepoints are connection state, so whether the name exists is not a fact of the model. Source: https://sqlite.org/lang_savepoint.html. Status: Implemented.
$rollback = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('ROLLBACK TO SAVEPOINT before_import');
[$rollback->statement->savepoint->value, $rollback->toString()] // => ['before_import', 'ROLLBACK TO before_import']Properties§
public Name $savepointpublic Name|null $name = nullMethods§
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 52
- class-const NameUse::Label() line 54
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.