final class TriggerOrder
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

The FOLLOWS or PRECEDES clause of CREATE TRIGGER (MySQL 5.7 and later).

Source: https://dev.mysql.com/doc/refman/8.4/en/create-trigger.html.

Reading the order of a triggerdoctest
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE TRIGGER tr BEFORE INSERT ON t FOR EACH ROW PRECEDES other SET @a = 1');
    [$create->statement->order->placement->value, $create->statement->order->other->value] // => ['PRECEDES', 'other']

Properties§

public OrderPlacement $placement
public Name $other

Methods§

public function __construct(public OrderPlacement $placement, public Name $other)

Parameters

$placementOrderPlacementWhether the trigger runs after or before the other
$otherNameThe name of the other trigger
public function render(Output $out): void

Writes the keyword and the other trigger name.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Type declarations 2