enumColumnActionKind
enum ColumnActionKind: string
Public API: explicitly declared with
@visibility public.The column actions without an operand.
Source: https://www.postgresql.org/docs/17/sql-altertable.html.
\SqlSemantics\Platform\PostgreSql\Statement\Table\Alter\Column\ColumnActionKind::DropIdentityIfExists->value // => 'DROP IDENTITY IF EXISTS'Cases§
case SetNotNull = 'SET NOT NULL'case DropNotNull = 'DROP NOT NULL'case DropDefault = 'DROP DEFAULT'case DropExpression = 'DROP EXPRESSION'case DropExpressionIfExists = 'DROP EXPRESSION IF EXISTS'case DropIdentity = 'DROP IDENTITY'case DropIdentityIfExists = 'DROP IDENTITY IF EXISTS'Methods§
public function conditional(): boolTells whether IF EXISTS is written: a missing column or property is not an error.
Returns
boolCalled from 1
Calls 2
- class-const ColumnActionKind::DropExpressionIfExists() line 31
- class-const ColumnActionKind::DropIdentityIfExists() line 31
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§
Method calls 1
Constant reads 19
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:92
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:93
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:94
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:95
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:96
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:97
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule::defaulted() packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:227
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::column() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:202
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::column() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:203
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::column() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:204
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::column() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:205
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::column() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:205
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::column() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:206
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::column() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:206
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\Alterations::identity() packages/sql-semantics-postgres/src/Rules/Table/Command/Alterations.php:106
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\GeneratedChanges::rule() packages/sql-semantics-postgres/src/Rules/Table/Command/GeneratedChanges.php:72
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\GeneratedChanges::rule() packages/sql-semantics-postgres/src/Rules/Table/Command/GeneratedChanges.php:82
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\GeneratedChanges::dropped() packages/sql-semantics-postgres/src/Rules/Table/Command/GeneratedChanges.php:101
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\GeneratedChanges::dropped() packages/sql-semantics-postgres/src/Rules/Table/Command/GeneratedChanges.php:101
Type declarations 2
- type SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:199
- type SqlSemantics\Platform\PostgreSql\Statement\Table\Alter\Column\ColumnAction packages/sql-semantics-postgres/src/Statement/Table/Alter/Column/ColumnAction.php:35