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

A request to start a named, nestable transaction.

Rule: SQLITE-SAVEPOINT-001. The name need not be unique; a later RELEASE or ROLLBACK TO finds the most recent savepoint with the name. Source: https://sqlite.org/lang_savepoint.html. Status: Implemented.

Reading a savepoint namedoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SAVEPOINT "before import"')->statement->name->value // => 'before import'

Properties§

public Name $name

Methods§

public function __construct(public Name $name)

Parameters

$nameNameThe savepoint name
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 2§

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 1

Relations§

Instantiated in 1