module

Krikri::PluginHelpers::MysqlInfoVersion

MysqlInfoVersion - parses a SELECT VERSION() string into the version: fact shape real community.mysql.mysql_info reports (its own __get_global_variables): split on '.', take release/suffix from the THIRD component only, and leave full unmodified. Kept out of plugins/mysql_info.cr itself so it can be unit-spec'd without pulling in the plugin binary's STDIN entry point.

Class methods

parse(full : String) : Hash(String, JSON::Any)
Source