classSpatialRule
final class SpatialRule
Lowers CREATE and DROP SPATIAL REFERENCE SYSTEM.
Rule: MYSQL-SRS-001. Scope: create_srs_stmt, srs_attributes, drop_srs_stmt. The attribute list is left recursive from an empty list and is walked along its spine; the attributes are kept in written order. Constructs: CreateSpatialReference, SpatialAttribute, DropSpatialReference. Terminates: the spine is walked in a loop. Source: https://dev.mysql.com/doc/refman/8.4/en/create-spatial-reference-system.html, https://dev.mysql.com/doc/refman/8.4/en/drop-spatial-reference-system.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers a spatial reference system statement.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 5
- new CreateSpatialReference line 61
- method-call Form::node() line 64
- method-call SpatialRule::attributes() line 65
- new DropSpatialReference line 73
- static-call ImplementationGap::production() line 74
public function attributes(Node $list): list<SpatialAttribute>Lowers the attribute list: a node of srs_attributes.
Parameters
$list | Node |
Returns
list<SpatialAttribute>Throws
ImplementationGap When a production has no ruleCalled from 2
- method-call SqlSemantics\Platform\MySql\Lowering\Server\Instance\SpatialRule::statement() packages/sql-semantics-mysql/src/Lowering/Server/Instance/SpatialRule.php:65
- method-call SqlSemantics\Platform\MySql\Lowering\Server\Instance\SpatialRule::statement() packages/sql-semantics-mysql/src/Lowering/Server/Instance/SpatialRule.php:71
Calls 6
- method-call Lowering::form() line 87
- class-const SpatialRule::ATTRIBUTES() line 89
- static-call ImplementationGap::production() line 89
- class-const SpatialAttributeKind::Organization() line 90
- function-call
array_unshiftline 91 - new SpatialAttribute line 91
Private surface 2§
Implementation details, listed for orientation only.
private const ATTRIBUTES = ['srs_attributes: srs_attributes NAME_SYM TEXT_STRING_sys_nonewline' => \SqlSem…private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
SpatialRuleTestcalls