classCollateAttribute
final class CollateAttribute
implements ColumnAttribute
uses Snapshot
Public API: explicitly declared with
@visibility public.The COLLATE attribute of a character column written among the other attributes.
Source: https://dev.mysql.com/doc/refman/8.4/en/charset-column.html.
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE TABLE t (a TEXT NOT NULL COLLATE utf8mb4_bin)');
$create->statement->elements[0]->specification->attributes[1] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Column\CollateAttribute // => trueProperties§
public CollationName $collationMethods§
public function __construct(public CollationName $collation)Parameters
$collation | CollationName | The collation |
public function deriveAttribute(Derivation $derivation, Environment $scope): voidDerives nothing: the attribute holds no expression.
Parameters
$derivation | Derivation | |
$scope | Environment |
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.