enumAlterAction
enum AlterAction: string
Public API: explicitly declared with
@visibility public.An ALTER TABLE action as the server names it when the relation kind does not accept it.
Mirrors alter_table_type_to_string in tablecmds.c, which names SET ( attribute options ) and the SET options of an identity column alike.
\SqlSemantics\Platform\PostgreSql\Statement\Table\Problem\AlterAction::AddColumn->value // => 'ADD COLUMN'Cases§
case AddColumn = 'ADD COLUMN'case SetDefault = 'ALTER COLUMN ... SET DEFAULT'case DropNotNull = 'ALTER COLUMN ... DROP NOT NULL'case SetNotNull = 'ALTER COLUMN ... SET NOT NULL'case SetExpression = 'ALTER COLUMN ... SET EXPRESSION'case DropExpression = 'ALTER COLUMN ... DROP EXPRESSION'case SetStatistics = 'ALTER COLUMN ... SET STATISTICS'case SetColumnAttributes = 'ALTER COLUMN ... SET'case ResetOptions = 'ALTER COLUMN ... RESET'case SetStorage = 'ALTER COLUMN ... SET STORAGE'case SetCompression = 'ALTER COLUMN ... SET COMPRESSION'case DropColumn = 'DROP COLUMN'case AddConstraint = 'ADD CONSTRAINT'case AlterConstraint = 'ALTER CONSTRAINT'case ValidateConstraint = 'VALIDATE CONSTRAINT'case DropConstraint = 'DROP CONSTRAINT'case SetDataType = 'ALTER COLUMN ... SET DATA TYPE'case ColumnOptions = 'ALTER COLUMN ... OPTIONS'case ClusterOn = 'CLUSTER ON'case SetWithoutCluster = 'SET WITHOUT CLUSTER'case SetAccessMethod = 'SET ACCESS METHOD'case SetLogged = 'SET LOGGED'case SetUnlogged = 'SET UNLOGGED'case SetWithoutOids = 'SET WITHOUT OIDS'case SetTablespace = 'SET TABLESPACE'case SetRelationOptions = 'SET'case ResetRelationOptions = 'RESET'case EnableTrigger = 'ENABLE TRIGGER'case EnableAlwaysTrigger = 'ENABLE ALWAYS TRIGGER'case EnableReplicaTrigger = 'ENABLE REPLICA TRIGGER'case DisableTrigger = 'DISABLE TRIGGER'case EnableAllTriggers = 'ENABLE TRIGGER ALL'case DisableAllTriggers = 'DISABLE TRIGGER ALL'case EnableUserTriggers = 'ENABLE TRIGGER USER'case DisableUserTriggers = 'DISABLE TRIGGER USER'case EnableRule = 'ENABLE RULE'case EnableAlwaysRule = 'ENABLE ALWAYS RULE'case EnableReplicaRule = 'ENABLE REPLICA RULE'case DisableRule = 'DISABLE RULE'case Inherit = 'INHERIT'case NoInherit = 'NO INHERIT'case Of = 'OF'case NotOf = 'NOT OF'case ReplicaIdentity = 'REPLICA IDENTITY'case EnableRowSecurity = 'ENABLE ROW SECURITY'case DisableRowSecurity = 'DISABLE ROW SECURITY'case ForceRowSecurity = 'FORCE ROW SECURITY'case NoForceRowSecurity = 'NO FORCE ROW SECURITY'case Options = 'OPTIONS'case AttachPartition = 'ATTACH PARTITION'case DetachPartition = 'DETACH PARTITION'case DetachPartitionFinalize = 'DETACH PARTITION ... FINALIZE'case AddIdentity = 'ALTER COLUMN ... ADD IDENTITY'case DropIdentity = 'ALTER COLUMN ... DROP IDENTITY'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
AlterKindsTest::testColumnAnswersTheActionOfAColumnActioncallsAlterKindsTest::testNamedAnswersTheActionOfANamedActioncallsAlterKindsTest::testOtherAnswersTheActionOfAColumnChangecallsAlterKindsTest::testRelationWideAnswersTheActionOfARelationOptioncallsAlterKindsTest::testTableAnswersTheActionOfATableActioncallsKindProblemTest::testMessageNamesTheActioncalls
Relations§
Constant reads 58
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::parent() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:128
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:155
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:156
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:157
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:158
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:159
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:160
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:161
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:162
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:163
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:163
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:164
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:164
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::other() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:165
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:178
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:179
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:180
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:181
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:181
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:182
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:183
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:184
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:184
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:185
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:186
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:187
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:188
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:189
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::relationWide() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:189
- 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:206
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:218
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:219
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:220
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:221
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:222
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:223
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:224
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:225
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:226
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:227
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:228
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:229
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::table() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:230
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::named() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:242
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::named() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:243
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::named() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:244
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::named() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:245
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::named() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:246
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::named() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:247
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::named() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:248
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::named() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:249
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::named() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:250
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::named() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:251
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Command\AlterKinds::named() packages/sql-semantics-postgres/src/Rules/Table/Command/AlterKinds.php:252