enumFiringState
enum FiringState: string
Public API: explicitly declared with
@visibility public.Whether a trigger or rule fires, and in which session replication role.
Mirrors the tgenabled/evtenabled codes: ENABLE fires in origin and local mode, ENABLE REPLICA in replica mode, ENABLE ALWAYS in every mode, DISABLE never. Source: https://www.postgresql.org/docs/17/sql-altereventtrigger.html.
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER EVENT TRIGGER e ENABLE ALWAYS')->statement->state // => \SqlSemantics\Platform\PostgreSql\Statement\Table\Trigger\FiringState::EnableAlwaysCases§
case Enable = 'ENABLE'case EnableReplica = 'ENABLE REPLICA'case EnableAlways = 'ENABLE ALWAYS'case Disable = 'DISABLE'Methods§
public function keywords(): list<string>Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 1
Relations§
Method calls 1
Constant reads 4
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\TriggerRule packages/sql-semantics-postgres/src/Lowering/Table/TriggerRule.php:57
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\TriggerRule packages/sql-semantics-postgres/src/Lowering/Table/TriggerRule.php:57
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\TriggerRule packages/sql-semantics-postgres/src/Lowering/Table/TriggerRule.php:58
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\TriggerRule packages/sql-semantics-postgres/src/Lowering/Table/TriggerRule.php:58