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

Makes the row of the trigger table visible as NEW and OLD in a trigger body.

Rule: MYSQL-TRIGGER-ROWS-001. NEW.col denotes a column of the row to be inserted or of the row after an update, OLD.col a column of the row before an update or a delete: an INSERT trigger has no OLD row and a DELETE trigger no NEW row. The two words are compared without regard to letter case, so each is visible under every spelling the name comparison of the context tells apart. A column is reached through the qualifier only; no unqualified name denotes a column of the row. Terminates: at most sixteen spellings. Source: https://dev.mysql.com/doc/refman/8.4/en/trigger-syntax.html. Status: Implemented.

Methods§

public function visible(
    TriggerTable $table,
    RelationFact $fact,
    TriggerEvent $event,
    AnalysisContext $context,
): list<VisibleRelation>

Answers the occurrences NEW and OLD of the trigger table for a triggering event.

Parameters

Returns

Called from 1
Calls 9
public function spellings(string $word, AnalysisContext $context): list<string>

Answers the letter-case spellings of a word that the context compares as different names.

Parameters

$wordstring
$contextAnalysisContext

Returns

list<string>
Test cases 2
Called from 1
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 2

Relations§

Instantiated in 1
Method calls 1