final class FormatAttribute
    implements ColumnAttribute
    uses Snapshot
Public API: explicitly declared with @visibility public.

The COLUMN_FORMAT attribute of a column of an NDB table.

Source: https://dev.mysql.com/doc/refman/8.4/en/create-table.html#create-table-ndb-column-options.

Reading the attribute of a columndoctest
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE TABLE t (a INT COLUMN_FORMAT FIXED)');
    $create->statement->elements[0]->specification->attributes[0] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Column\FormatAttribute // => true

Properties§

public ColumnFormat $format

Methods§

public function __construct(public ColumnFormat $format)

Parameters

$formatColumnFormatThe storage format
public function deriveAttribute(Derivation $derivation, Environment $scope): void

Derives nothing: the attribute holds no expression.

Parameters

$derivationDerivation
$scopeEnvironment
public function render(Output $out): void

Writes the attribute.

Parameters

$outOutput
Calls 1

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§

Instantiated in 1
Type checks 1