final class AlterEventTrigger
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

A request to enable or disable an event trigger.

Mirrors PostgreSQL's AlterEventTrigStmt (trigname, tgenabled). Source: https://www.postgresql.org/docs/17/sql-altereventtrigger.html.

Disabling an event triggerdoctest
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER EVENT TRIGGER e DISABLE');
    $statement->toString() // => 'ALTER EVENT TRIGGER e DISABLE'

Properties§

public Name $name
public FiringState $state

Methods§

public function __construct(public Name $name, public FiringState $state)

Parameters

$nameNameThe trigger name
$stateFiringStateThe new state
public function deriveStatement(Derivation $derivation): void

Derives nothing: the statement names a catalog object.

Parameters

$derivationDerivation
public function render(Output $out): void

Writes the statement.

Parameters

$outOutput
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 1