final class MutationScope
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

Derives the parts that INSERT, UPDATE and DELETE share.

Rule: SQLITE-MUTATION-SCOPE-001. The common tables of the statement are bound first and are visible in every query of the statement. The written table is one visible relation under its correlation name, or its table name when it has none. A column named by a column list or an assignment must be a column of the written table, or its rowid; a name the table certainly lacks is reported. A row assignment needs a row of as many values as columns. RETURNING sees the written table only; its result columns follow SQLITE-RESULT-NAME-001 and are the output of the statement. Source: https://sqlite.org/lang_update.html, https://sqlite.org/lang_returning.html, https://sqlite.org/lang_with.html. Status: Implemented.

Methods§

public function open(
    MutationTarget $target,
    ?WithClause $with,
    Derivation $derivation,
    Environment $outer,
): array{Environment, VisibleRelation, RelationFact}

Binds the common tables and derives the written table.

Parameters

$targetMutationTarget
$with?WithClause
$derivationDerivation
$outerEnvironment

Returns

array{Environment, VisibleRelation, RelationFact} The environment the queries of the statement are nested in, the written table as a visible relation, and its facts
Test cases 7
Called from 3
Calls 6

Test cases 7§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4
Other tests reaching this symbol 3

Relations§

Instantiated in 4
Method calls 10