final class OnWord
    implements Scalar
    uses Snapshot
Public API: explicitly declared with @visibility public.

The word ON as the value of a component variable in INSTALL COMPONENT … SET.

The grammar reads it as the string 'ON' in the system character set (install_set_rvalue: Item_string "ON"). Rule: MYSQL-ON-WORD-001. Facts: a known VARCHAR that is not NULL. Source: https://dev.mysql.com/doc/refman/8.4/en/install-component.html. Status: Implemented.

Setting a component variable to ONdoctest
$install = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("INSTALL COMPONENT 'file://c' SET c.v = ON");
    $install->statement->settings[0]->value instanceof \SqlSemantics\Platform\MySql\Statement\Server\Plugin\OnWord // => true

Methods§

public function deriveScalar(Derivation $derivation, Environment $environment): ScalarFact

Derives the string the word stands for.

Parameters

$derivationDerivation
$environmentEnvironment

Returns

Calls 5
public function render(Output $out): void

Writes the word.

Parameters

$outOutput
Calls 1

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