enumRuleEvent
enum RuleEvent: string
Public API: explicitly declared with
@visibility public.The command a rule rewrites.
Mirrors the CmdType of RuleStmt. Source: https://www.postgresql.org/docs/17/sql-createrule.html.
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE RULE r AS ON DELETE TO t DO INSTEAD NOTHING')->statement->event // => \SqlSemantics\Platform\PostgreSql\Statement\Table\View\RuleEvent::DeleteCases§
case Select = 'SELECT'case Insert = 'INSERT'case Update = 'UPDATE'case Delete = 'DELETE'Test cases 3§
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 2
Relations§
Constant reads 4
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\RewriteRule packages/sql-semantics-postgres/src/Lowering/Table/RewriteRule.php:31
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\RewriteRule packages/sql-semantics-postgres/src/Lowering/Table/RewriteRule.php:31
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\RewriteRule packages/sql-semantics-postgres/src/Lowering/Table/RewriteRule.php:31
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\RewriteRule packages/sql-semantics-postgres/src/Lowering/Table/RewriteRule.php:31