classDropSpatialReference
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.
$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 $ifExistspublic Numeral $sridMethods§
public function __construct(public bool $ifExists, public Numeral $srid)Parameters
$ifExists | bool | Whether IF EXISTS is written |
$srid | Numeral | The spatial reference system identifier |
public function deriveStatement(Derivation $derivation): voidReports an identifier the server rejects.
Parameters
$derivation | Derivation |
Calls 2
- method-call SpatialChecks::srid() line 44
- new SpatialChecks line 44
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 52
- method-call Output::node() line 56
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
DropSpatialReferenceTestcalls