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

Derives the facts of a trigger definition.

Rule: SQLITE-TRIGGER-SCOPE-001. The watched table is resolved once. The WHEN condition and every statement of the program see, under the qualifiers NEW and OLD only, a row of the watched table with its implicit columns: NEW in INSERT and UPDATE triggers, OLD in UPDATE and DELETE triggers. A column of UPDATE OF that the table certainly lacks is reported. A BEFORE or AFTER trigger, BEFORE being the default, on a view and an INSTEAD OF trigger on a table are reported (SQLITE-RELATION-KIND-001). In the program, a written table qualified with a schema, an index choice and a bind parameter are reported, as SQLite rejects them (SQLITE-PROGRAM-ONLY-001). Terminates: one pass over the program. Source: https://sqlite.org/lang_createtrigger.html. Status: Implemented.

Methods§

public function derive(CreateTrigger $trigger, Derivation $derivation): void

Derives every part of the trigger definition.

Parameters

$triggerCreateTrigger
$derivationDerivation
Test cases 4
Called from 1
Calls 28

Test cases 4§

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

Dedicated tests 4

Relations§

Instantiated in 1
Method calls 1