final class InstallPlugin
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

INSTALL PLUGIN name SONAME 'library': a request to load a server plugin from a shared library.

Mirrors Sql_cmd_install_plugin. Rule: MYSQL-INSTALL-PLUGIN-001. The statement names no relation and has no facts. Source: https://dev.mysql.com/doc/refman/8.4/en/install-plugin.html. Status: Implemented.

Installing a plugindoctest
$install = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("install plugin audit soname 'audit.so'");
    [$install->toString(), $install->statement->library->value] // => ["INSTALL PLUGIN audit SONAME 'audit.so'", 'audit.so']

Properties§

public Name $plugin
public Text $library

Methods§

public function __construct(public Name $plugin, public Text $library)

Parameters

$pluginNameThe plugin name
$libraryTextThe file name of the shared library in the plugin directory
public function deriveStatement(Derivation $derivation): void

Has nothing to derive: the request names no relation and no value.

Parameters

$derivationDerivation
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 2

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