classAlterEventTrigger
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.
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER EVENT TRIGGER e DISABLE');
$statement->toString() // => 'ALTER EVENT TRIGGER e DISABLE'Properties§
public Name $namepublic FiringState $stateMethods§
public function __construct(public Name $name, public FiringState $state)Parameters
$name | Name | The trigger name |
$state | FiringState | The new state |
public function deriveStatement(Derivation $derivation): voidDerives nothing: the statement names a catalog object.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 48
- method-call FiringState::keywords() line 48
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
AlterEventTriggerTestcalls