final class DropSpatialReference
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

DROP SPATIAL REFERENCE SYSTEM [IF EXISTS] srid: a request to remove a spatial reference system (MySQL 8.0 and later).

Mirrors PT_drop_srs (Sql_cmd_drop_srs). Rule: MYSQL-DROP-SRS-001. An identifier of 0 or above 2^32-1 is a diagnostic (MYSQL-SRS-CHECK-001). Source: https://dev.mysql.com/doc/refman/8.4/en/drop-spatial-reference-system.html. Status: Implemented.

Removing a spatial reference systemdoctest
$drop = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('drop spatial reference system if exists 13000');
    [$drop->toString(), $drop->statement->ifExists] // => ['DROP SPATIAL REFERENCE SYSTEM IF EXISTS 13000', true]

Properties§

public bool $ifExists
public Numeral $srid

Methods§

public function __construct(public bool $ifExists, public Numeral $srid)

Parameters

$ifExistsboolWhether IF EXISTS is written
$sridNumeralThe spatial reference system identifier
public function deriveStatement(Derivation $derivation): void

Reports an identifier the server rejects.

Parameters

$derivationDerivation
Calls 2
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 2

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