classOnWord
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.
$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 // => trueMethods§
public function deriveScalar(Derivation $derivation, Environment $environment): ScalarFactDerives the string the word stands for.
Parameters
$derivation | Derivation | |
$environment | Environment |
Returns
Calls 5
- new ScalarFact line 41
- new Known line 41
- new Character line 41
- class-const CharacterKind::VarChar() line 41
- class-const Nullability::NotNull() line 41
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
OnWordTestcalls