classSpine
final class Spine
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql\Lowering\Replication". Code outside that scope must not name this declaration.
Flattens a left-recursive list of the replication family after confirming every production of its spine.
Rule: MYSQL-REPLICATION-LIST-001. Every node of the list rule along the spine must match one of the given productions; the items are answered in written order, separators and parentheses dropped. Terminates: the spine is walked iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/sql-replication-statements.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Answers the items of a list whose spine nodes match the given productions.
Parameters
$list | Node | |
$signatures | list<string> |
Returns
list<Node>Throws
ImplementationGap When a spine node matches another productionCalled from 7
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\ChangeRule::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ChangeRule.php:95
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\FilterRule::filters() packages/sql-semantics-mysql/src/Lowering/Replication/FilterRule.php:83
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\FilterRule::values() packages/sql-semantics-mysql/src/Lowering/Replication/FilterRule.php:105
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\LogRule::start() packages/sql-semantics-mysql/src/Lowering/Replication/LogRule.php:139
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\ReplicaRule::threads() packages/sql-semantics-mysql/src/Lowering/Replication/ReplicaRule.php:212
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\ResetRule::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ResetRule.php:88
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\SourceValueRule::serverIds() packages/sql-semantics-mysql/src/Lowering/Replication/SourceValueRule.php:87
Calls 5
- method-call Lowering::form() line 44
- function-call
in_arrayline 45 - static-call ImplementationGap::production() line 46
- method-call Lists::items() line 55
- new Lists line 55
Private surface 1§
Implementation details, listed for orientation only.
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
SpineTestcalls
Relations§
Instantiated in 7
- new SqlSemantics\Platform\MySql\Lowering\Replication\ChangeRule::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ChangeRule.php:95
- new SqlSemantics\Platform\MySql\Lowering\Replication\FilterRule::filters() packages/sql-semantics-mysql/src/Lowering/Replication/FilterRule.php:83
- new SqlSemantics\Platform\MySql\Lowering\Replication\FilterRule::values() packages/sql-semantics-mysql/src/Lowering/Replication/FilterRule.php:105
- new SqlSemantics\Platform\MySql\Lowering\Replication\LogRule::start() packages/sql-semantics-mysql/src/Lowering/Replication/LogRule.php:139
- new SqlSemantics\Platform\MySql\Lowering\Replication\ReplicaRule::threads() packages/sql-semantics-mysql/src/Lowering/Replication/ReplicaRule.php:212
- new SqlSemantics\Platform\MySql\Lowering\Replication\ResetRule::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ResetRule.php:88
- new SqlSemantics\Platform\MySql\Lowering\Replication\SourceValueRule::serverIds() packages/sql-semantics-mysql/src/Lowering/Replication/SourceValueRule.php:87
Method calls 7
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\ChangeRule::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ChangeRule.php:95
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\FilterRule::filters() packages/sql-semantics-mysql/src/Lowering/Replication/FilterRule.php:83
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\FilterRule::values() packages/sql-semantics-mysql/src/Lowering/Replication/FilterRule.php:105
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\LogRule::start() packages/sql-semantics-mysql/src/Lowering/Replication/LogRule.php:139
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\ReplicaRule::threads() packages/sql-semantics-mysql/src/Lowering/Replication/ReplicaRule.php:212
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\ResetRule::statement() packages/sql-semantics-mysql/src/Lowering/Replication/ResetRule.php:88
- method-call SqlSemantics\Platform\MySql\Lowering\Replication\SourceValueRule::serverIds() packages/sql-semantics-mysql/src/Lowering/Replication/SourceValueRule.php:87