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

One event a trigger fires on; UPDATE may name columns.

Mirrors one bit of events with columns for UPDATE OF. Source: https://www.postgresql.org/docs/17/sql-createtrigger.html.

Reading an UPDATE OF eventdoctest
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TRIGGER g AFTER UPDATE OF a, b ON t EXECUTE FUNCTION f()');
    count($statement->statement->events[0]->columns) // => 2

Properties§

public list<Name> $columns

Methods§

public function __construct(public TriggerEventKind $kind, list<Name> $columns = [])

Parameters

$kindTriggerEventKindThe event
$columnslist<Name>The columns of UPDATE OF
Calls 4
public function render(Output $out): void

Writes the event.

Parameters

$outOutput
Calls 3

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 2
Constant reads 2
Type declarations 1