enumDropBehavior
enum DropBehavior: string
Public API: explicitly declared with
@visibility public.The RESTRICT or CASCADE keyword of a DROP statement or of ALTER TABLE ... DROP COLUMN.
MySQL accepts both keywords and they do nothing; the keyword is kept as written because it is part of the request. Source: https://dev.mysql.com/doc/refman/8.4/en/drop-table.html.
\SqlSemantics\Platform\MySql\Statement\Alter\DropBehavior::Cascade->value // => 'CASCADE'Cases§
case Restrict = 'RESTRICT'case Cascade = 'CASCADE'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 2
Type declarations 4
- type SqlSemantics\Platform\MySql\Lowering\Leaf\OptionRule packages/sql-semantics-mysql/src/Lowering/Leaf/OptionRule.php:100
- type SqlSemantics\Platform\MySql\Statement\Alter\Command\DropElement packages/sql-semantics-mysql/src/Statement/Alter/Command/DropElement.php:42
- type SqlSemantics\Platform\MySql\Statement\Alter\DropTable packages/sql-semantics-mysql/src/Statement/Alter/DropTable.php:53
- type SqlSemantics\Platform\MySql\Statement\View\DropView packages/sql-semantics-mysql/src/Statement/View/DropView.php:53