classServerRules
final class ServerRules
The entry rules of the server family: the methods other families and the statement dispatcher call.
Rule: MYSQL-SERVER-ENTRY-001. Scope: transactions, XA, locks, table maintenance, key caches, FLUSH, KILL, plugins and components, databases, foreign servers, spatial reference systems, tablespaces, undo tablespaces, log file groups, ALTER INSTANCE, CLONE, SHUTDOWN and RESTART. The method names, parameters and return types are fixed by the family plan; each delegates to the rule class of its area (MYSQL-SERVER-STATEMENT-001). Source: https://dev.mysql.com/doc/refman/8.4/en/sql-server-administration-statements.html. Status: Implemented.
Properties§
public Lowering $loweringMethods§
public function __construct(public Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers a server administration statement: a node of one of the statement rules this family owns.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When a production has no ruleAnalysisException When the server rejects the statement while it parses itCalled from 2
Calls 2
- method-call StatementRule::statement() line 48
- new StatementRule line 48
Lowers a production of create, alter or drop that MYSQL-DEFINITION-ROUTES-001 routes to this
family.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleAnalysisException When the server rejects the statement while it parses itCalled from 1
Calls 2
- method-call StatementRule::definition() line 60
- new StatementRule line 60
public function checkOptions(Node $options): list<CheckOption>Lowers the options of a table check: a node of opt_mi_check_type or opt_mi_check_types; no
option is empty.
Parameters
$options | Node |
Returns
list<CheckOption>Throws
ImplementationGap When a production has no ruleCalls 2
- method-call MaintenanceRule::checkOptions() line 72
- new MaintenanceRule line 72
public function repairOptions(Node $options): list<RepairOption>Lowers the options of a table repair: a node of opt_mi_repair_type or opt_mi_repair_types; no
option is empty.
Parameters
$options | Node |
Returns
list<RepairOption>Throws
ImplementationGap When a production has no ruleCalls 2
- method-call MaintenanceRule::repairOptions() line 84
- new MaintenanceRule line 84
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ServerRulesTestcalls
Relations§
Instantiated in 1
Method calls 3
- method-call SqlSemantics\Platform\MySql\Lowering\Lowering::statement() packages/sql-semantics-mysql/src/Lowering/Lowering.php:247
- method-call SqlSemantics\Platform\MySql\Lowering\Lowering::definition() packages/sql-semantics-mysql/src/Lowering/Lowering.php:270
- method-call SqlSemantics\Platform\MySql\Lowering\Lowering::routed() packages/sql-semantics-mysql/src/Lowering/Lowering.php:289