![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have made a perl module called Mysql::Simple which parses /etc/my.cfg and ~.my.cfg to set up Mysql connection parameters. In case it dosn't find |
#3
| |||
| |||
|
|
On Fri, 17 Sep 2004, Dan Bolser wrote: I have made a perl module called Mysql::Simple which parses /etc/my.cfg and ~.my.cfg to set up Mysql connection parameters. In case it dosn't find For this part you can just pass in mysql_read_default_group (there is some code in CVS that will causes DBD::mysql to default to reading the group "dbd_mysql" if the no group is passed in) Rudy. |
#4
| |||
| |||
|
|
I have made a perl module called Mysql::Simple which parses /etc/my.cfg and ~.my.cfg to set up Mysql connection parameters. In case it dosn't find a password it uses Term::ReadPassword to get the user to supply one. |
|
I am looking for feedback, and perhaps a volunteer to help make this a proper CPAN module. |
|
The befifit of this module is never writing another connection string, and not worrying about where to put your password. |
WIW too. :-)
#5
| ||||
| ||||
|
|
On Fri, Sep 17, 2004 at 06:17:24PM +0100, Dan Bolser wrote: I have made a perl module called Mysql::Simple which parses /etc/my.cfg and ~.my.cfg to set up Mysql connection parameters. In case it dosn't find a password it uses Term::ReadPassword to get the user to supply one. Can I suggest a naming change? MySQL::Simple instead of Mysql? Since MySQL is a real product name, using proper capitalization seems only fair and intuitive. |
|
I am looking for feedback, and perhaps a volunteer to help make this a proper CPAN module. I might be able to help with that. |
|
The befifit of this module is never writing another connection string, and not worrying about where to put your password. Hey, that was one of the goals behind DBIx: WIW too. :-) |
I like the module. It looks good. I wouldn't want to try to reimplement|
Jeremy |
![]() |
| Thread Tools | |
| Display Modes | |
| |