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

Reports the expressions that SQLite admits on one side of a trigger program only.

Rule: SQLITE-PROGRAM-ONLY-001. The RAISE function may be used within a trigger program only; a bind parameter may be used outside one only. The check walks the structure once and reports each kind at most once per statement. Terminates: the structure is a finite tree walked once. Source: https://sqlite.org/lang_createtrigger.html#the_raise_function, https://sqlite.org/lang_createtrigger.html. Status: Implemented.

Methods§

public function outsideProgram(Node $statement, Derivation $derivation): void

Reports a RAISE function used in a statement that is no trigger program.

Parameters

$statementNode
$derivationDerivation
Test cases 2
Called from 9
Calls 5
public function insideProgram(list<Node> $parts, Derivation $derivation): void

Test cases 5§

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

Dedicated tests 5

Relations§

Instantiated in 10
Method calls 10