MySQLConfigComparer compares and diffs C<MySQLConfig> objects.
MySQLConfigComparer | MySQLConfigComparer compares and diffs C<MySQLConfig> objects. |
Variables | |
%alt_val_for | |
Functions | |
new | |
diff | Diff the variable values of MySQLConfig objects. |
missing | Return variables that aren’t in all the given MySQLConfig objects. |
_normalize_value | |
_get_shared_vars | |
_d |
sub new
%args | Arguments |
ignore_variables | Arrayref of variables to ignore |
numeric_variables | Arrayref of variables to compare numerically |
optional_value_variables | Arrayref of vars whose val is optional |
any_value_is_true_variables | Arrayref of vars... see below |
base_path | Hashref of variable=>base_path |
MySQLConfigComparer object
sub diff
Diff the variable values of MySQLConfig objects. Only the common set of variables (i.e. the vars that all configs have) are compared.
%args | Arguments |
configs | Arrayref of MySQLConfig objects |
Hashref of variables that have different values, like
{ max_connections => [ 100, 50 ] }
The arrayref vals correspond to the C<MySQLConfig> objects, so $diff->{var}->[N] is $configs->[N]->value_of(var).
sub missing
Return variables that aren’t in all the given MySQLConfig objects.
%args | Arguments |
configs | Arrayref of C<MySQLConfig> objects |
Hashref of missing variables like,
{ query_cache_size => [0, 1] }
The arrayref vals correspond to the C<MySQLConfig> objects, so $missing->{var}->[N] is $configs->[N]; the values are boolean: 1 means the C<MySQLConfig> obj has the variable, 0 means it doesn’t.
my %alt_val_for
sub new
Diff the variable values of MySQLConfig objects.
sub diff
Return variables that aren’t in all the given MySQLConfig objects.
sub missing
sub _normalize_value
sub _get_shared_vars
sub _d