interfaceColumnAttribute
interface ColumnAttribute
extends Node
One attribute of a column definition, such as NOT NULL, DEFAULT, COMMENT or CHECK.
MySQL accepts the attributes in any order and applies them in written order, so a column keeps them as a list. Source: https://dev.mysql.com/doc/refman/8.4/en/create-table.html.
Methods§
public function deriveAttribute(Derivation $derivation, Environment $scope): voidDerives the expressions inside the attribute at a position whose visible relation is the table being defined or changed.
Parameters
$derivation | Derivation | |
$scope | Environment |
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Implemented by 12
- CollateAttribute packages/sql-semantics-mysql/src/Statement/Table/Column/CollateAttribute.php:23
- CommentAttribute packages/sql-semantics-mysql/src/Statement/Table/Column/CommentAttribute.php:23
- DefaultExpression packages/sql-semantics-mysql/src/Statement/Table/Column/DefaultExpression.php:24
- DefaultLiteral packages/sql-semantics-mysql/src/Statement/Table/Column/DefaultLiteral.php:24
- EnforcementAttribute packages/sql-semantics-mysql/src/Statement/Table/Column/EnforcementAttribute.php:22
- EngineAttribute packages/sql-semantics-mysql/src/Statement/Table/Column/EngineAttribute.php:23
- FormatAttribute packages/sql-semantics-mysql/src/Statement/Table/Column/FormatAttribute.php:23
- KeywordAttribute packages/sql-semantics-mysql/src/Statement/Table/Column/KeywordAttribute.php:24
- OnUpdate packages/sql-semantics-mysql/src/Statement/Table/Column/OnUpdate.php:23
- SridAttribute packages/sql-semantics-mysql/src/Statement/Table/Column/SridAttribute.php:23
- StorageAttribute packages/sql-semantics-mysql/src/Statement/Table/Column/StorageAttribute.php:23
- CheckConstraint packages/sql-semantics-mysql/src/Statement/Table/Key/CheckConstraint.php:31
Constant reads 2
- class-const SqlSemantics\Platform\MySql\Statement\Table\Column\GeneratedColumn::__construct() packages/sql-semantics-mysql/src/Statement/Table/Column/GeneratedColumn.php:58
- class-const SqlSemantics\Platform\MySql\Statement\Table\Column\OrdinaryColumn::__construct() packages/sql-semantics-mysql/src/Statement/Table/Column/OrdinaryColumn.php:46
Type declarations 2
- type SqlSemantics\Platform\MySql\Lowering\TableDefinition\Column\AttributeRule packages/sql-semantics-mysql/src/Lowering/TableDefinition/Column/AttributeRule.php:87
- type SqlSemantics\Platform\MySql\Lowering\TableDefinition\Column\AttributeRule packages/sql-semantics-mysql/src/Lowering/TableDefinition/Column/AttributeRule.php:109