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

A request to remove a savepoint and every later one from the transaction stack.

Rule: SQLITE-RELEASE-001. The SAVEPOINT keyword before the name is optional and is not written. 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.

Writing a release without the optional keyworddoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('RELEASE SAVEPOINT s1')->toString() // => 'RELEASE s1'

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 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