enumPolicyCommand
enum PolicyCommand: string
Public API: explicitly declared with
@visibility public.The commands a row security policy applies to.
Mirrors the cmd_name of CreatePolicyStmt. ALL is the default and is kept when written. Source: https://www.postgresql.org/docs/17/sql-createpolicy.html.
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE POLICY p ON t FOR SELECT USING (true)')->statement->command // => \SqlSemantics\Platform\PostgreSql\Statement\Table\Policy\PolicyCommand::SelectCases§
case All = 'ALL'case Select = 'SELECT'case Insert = 'INSERT'case Update = 'UPDATE'case Delete = 'DELETE'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§
Constant reads 5
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\PolicyRule packages/sql-semantics-postgres/src/Lowering/Table/PolicyRule.php:36
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\PolicyRule packages/sql-semantics-postgres/src/Lowering/Table/PolicyRule.php:36
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\PolicyRule packages/sql-semantics-postgres/src/Lowering/Table/PolicyRule.php:37
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\PolicyRule packages/sql-semantics-postgres/src/Lowering/Table/PolicyRule.php:37
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\PolicyRule packages/sql-semantics-postgres/src/Lowering/Table/PolicyRule.php:38