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

The SRID attribute of a spatial column: the spatial reference system every value of the column must use (MySQL 8.0.3 and later).

Source: https://dev.mysql.com/doc/refman/8.4/en/spatial-type-overview.html.

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

Properties§

public Numeral $srid

Methods§

public function __construct(public Numeral $srid)

Parameters

$sridNumeralThe spatial reference system identifier
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