enumDropBehavior
enum DropBehavior: string
Public API: explicitly declared with
@visibility public.Whether dependent objects are dropped too (CASCADE) or prevent the command (RESTRICT).
A command that writes neither behaves as RESTRICT; the absence is kept as null by the commands that hold this choice. Source: https://www.postgresql.org/docs/17/sql-droptable.html.
\SqlSemantics\Platform\PostgreSql\Statement\Option\DropBehavior::Cascade->value // => 'CASCADE'Cases§
case Cascade = 'CASCADE'case Restrict = 'RESTRICT'Test cases 7§
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 6
FlagsTest::testDropBehaviorLowersTheChoiceOrNothingcallsRenameRuleTest::testRenameLowersRolesAndAttributescallsAlterCommandRuleTest::testRelationLowersADroppedColumncallsDefaultRevokeTest::testAnalysisKeepsTheBehaviorcallsRevokeTest::testAnalysisKeepsTheBehaviorcallsRenameTest::testRejectsABehaviorWithoutAnAttributecalls
Relations§
Constant reads 3
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Leaf\Flags::dropBehavior() packages/sql-semantics-postgres/src/Lowering/Leaf/Flags.php:77
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Leaf\Flags::dropBehavior() packages/sql-semantics-postgres/src/Lowering/Leaf/Flags.php:78
- class-const SqlSemantics\Platform\PostgreSql\Statement\Object\Drop::deriveStatement() packages/sql-semantics-postgres/src/Statement/Object/Drop.php:80
Type declarations 16
- type SqlSemantics\Platform\PostgreSql\Lowering\Leaf\Flags packages/sql-semantics-postgres/src/Lowering/Leaf/Flags.php:72
- type SqlSemantics\Platform\PostgreSql\Lowering\Routine\DropRule packages/sql-semantics-postgres/src/Lowering/Routine/DropRule.php:104
- type SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Defaults\DefaultRevoke packages/sql-semantics-postgres/src/Statement/Catalog/Access/Defaults/DefaultRevoke.php:50
- type SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Owned\DropOwned packages/sql-semantics-postgres/src/Statement/Catalog/Access/Owned/DropOwned.php:43
- type SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Privilege\Revoke packages/sql-semantics-postgres/src/Statement/Catalog/Access/Privilege/Revoke.php:55
- type SqlSemantics\Platform\PostgreSql\Statement\Catalog\Access\Privilege\RevokeRole packages/sql-semantics-postgres/src/Statement/Catalog/Access/Privilege/RevokeRole.php:55
- type SqlSemantics\Platform\PostgreSql\Statement\Catalog\Domain\DropDomainConstraint packages/sql-semantics-postgres/src/Statement/Catalog/Domain/DropDomainConstraint.php:38
- type SqlSemantics\Platform\PostgreSql\Statement\Catalog\Publication\Subscription\DropSubscription packages/sql-semantics-postgres/src/Statement/Catalog/Publication/Subscription/DropSubscription.php:35
- type SqlSemantics\Platform\PostgreSql\Statement\Catalog\Type\AddAttribute packages/sql-semantics-postgres/src/Statement/Catalog/Type/AddAttribute.php:33
- type SqlSemantics\Platform\PostgreSql\Statement\Catalog\Type\DropAttribute packages/sql-semantics-postgres/src/Statement/Catalog/Type/DropAttribute.php:35
- type SqlSemantics\Platform\PostgreSql\Statement\Catalog\Type\RetypeAttribute packages/sql-semantics-postgres/src/Statement/Catalog/Type/RetypeAttribute.php:39
- type SqlSemantics\Platform\PostgreSql\Statement\Object\Drop packages/sql-semantics-postgres/src/Statement/Object/Drop.php:58
- type SqlSemantics\Platform\PostgreSql\Statement\Object\Rename packages/sql-semantics-postgres/src/Statement/Object/Rename.php:58
- type SqlSemantics\Platform\PostgreSql\Statement\Table\Alter\Column\DropColumn packages/sql-semantics-postgres/src/Statement/Table/Alter/Column/DropColumn.php:40
- type SqlSemantics\Platform\PostgreSql\Statement\Table\Alter\DropConstraint packages/sql-semantics-postgres/src/Statement/Table/Alter/DropConstraint.php:37
- type SqlSemantics\Platform\PostgreSql\Statement\Table\TruncateTable packages/sql-semantics-postgres/src/Statement/Table/TruncateTable.php:50