final class PluginRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql\Lowering\Server". Code outside that scope must not name this declaration.

Lowers INSTALL and UNINSTALL of plugins and components.

Rule: MYSQL-PLUGIN-001. Scope: install (5.6, 5.7), install_stmt, uninstall, opt_install_set_value_list, install_set_value_list, install_set_value, install_option_type, install_set_rvalue (8.0 and later). The variable goes through the leaf variable rule with the scope written before it; the value through the expression family, or is the word ON. The equals sign is the one of equal (LeafNoise). Constructs: InstallPlugin, UninstallPlugin, InstallComponent, UninstallComponent, ComponentSetting, OnWord. Terminates: the assignment list is flattened iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/install-plugin.html, https://dev.mysql.com/doc/refman/8.4/en/install-component.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function settings(Node $list): list<ComponentSetting>

Lowers the SET list of INSTALL COMPONENT: a node of opt_install_set_value_list.

Parameters

$listNode

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 5

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

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
Method calls 1