Krikri::PluginHelpers::MysqlVariables
MysqlVariables - pure logic for the mysql_variables plugin: the real module's typedvalue conversion, its ON/OFF boolean normalization, the variable-name validation, and SET statement construction (backtick-quoted identifier like the real module's mysql_quote_identifier(..., 'vars')). Split out so this logic is unit-spec-able (execution needs a real MySQL/MariaDB server).
Class methods
Converts 0/1/on/off wanted values to ON/OFF when the server's current representation is ON/OFF (the real module's convert_bool_setting_value_wanted).
SET statement construction: SET GLOBAL/PERSIST/PERSIST_ONLY
variable = value. Booleans sent as ON/OFF strings, numbers as
bare literals, everything else as a quoted literal.
Convert value to number whenever possible, keep strings as-is (the real module's typedvalue).
The real module's validation: ^[0-9A-Za-z_.]+$ on the variable name, failing with "invalid variable name "X"".