mysql-proxy-discuss team mailing list archive
-
mysql-proxy-discuss team
-
Mailing list archive
-
Message #00128
Implementing the creation of master.info files
Hi Everyone,
I added a new blueprint
https://blueprints.launchpad.net/mysql-proxy/+spec/master-info
And I am looking for ideas as to how you think this should work. So
far we can read a master.info file and parse the different values, but
how should the other way around work?
I thought if having a
to_masterinfo_string() function that you can access from Lua, but I am
not sure about how to pass the parameters.
1- pass two parameters, one for the path to the file, and the other
one a string with \n to mark the new lines
2- pass a array to it, something like
to_masterinfo_string(
{
"path" = var0,
"master_host" = var1,
"master_user" = var2,
...
}
What do you think?
Thanks!
--
Diego Medina
Web Developer
http://www.fmpwizard.com
Follow ups