Krikri::PluginHelpers::MysqlConnection
MysqlConnection - building a mysql:// connection URI from
Ansible-style login_* params, with the same implicit ~/.my.cnf
option-file fallback real Ansible's own mysql_* modules rely on.
mysql_db/mysql_user/mysql_info/mysql_query do the actual DB.open.
Constants
The default option file every one of community.mysql's mysql_*
modules threads through as config_file: (its argument_spec
default is literally ~/.my.cnf; the module reads it whenever it
exists, via the client lib's read_default_file). Explicit login_*
params always win over it - it only fills in what a task didn't
pass explicitly.
Class methods
Resolves a config_file path to an absolute path, expanding a leading
~ the same way Python's os.path.expanduser does (real Ansible's
path-type params pass through that before any existence check).
Crystal's own File.expand_path does NOT expand ~ (it treats it as a
literal relative component), which is why this hand-rolls the tilde
expansion exactly like BasePlugin#expand_tilde does.