classRowAliases
final class RowAliases
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
$table | TriggerTable | |
$fact | RelationFact | |
$event | TriggerEvent | |
$context | AnalysisContext |
Returns
list<VisibleRelation>Called from 1
Calls 9
- class-const TriggerEvent::Insert() line 40
- class-const TriggerEvent::Update() line 41
- class-const TriggerEvent::Delete() line 42
- method-call TableShapes::implicit() line 45
- new TableShapes line 45
- function-call
array_keysline 46 - method-call RowAliases::spellings() line 48
- new VisibleRelation line 49
- new Name line 49
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
$word | string | |
$context | AnalysisContext |
Returns
list<string>Test cases 2
Called from 1
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.