Re: DBI v2 - The Plan and How You Can Help
- From: m.sloyko@xxxxxxxxxx (Maxim Sloyko)
- Date: Thu, 07 Jul 2005 10:27:39 +0400
Sam Vilain wrote:
Maxim Sloyko wrote:
But this is not the point. The point was that usage of some file with passwords by *DEFAULT* is not the way to go, IMHO. It raises more problems than it solves.
Can you give an example of such a problem that wasn't already there?
Just to be clear, the file would only need to contain passwords if the DBD requires them.
Sam.
May be it is just me, but having a bunch of config files is not very good. Config files should be for program, not for separate modules of that program. They are hard to manage, when there are many of them. Besides, DBI is a high level abstraction and it is not a good idea to tie it to some file. May be it is better to let DBD:: modules choose? For example, you can pass some parameter to the driver in connect string, which tells it, where passwords are stored. Something like this is impleneted in DBD::Oracle, where you can just pass 'sid' parameter to the driver, the rest configuration parameters (except passwords and usernames) are read from oracle config file, from the section to which that sid parameter points.
I don't mind if you implement this ".dbi" feature though, I just want it to be invisible :) i.e. don't check this file, if I explicitly supply username and password (this is obvious, right?) and show some warnings if don't. Say, make a connect parameter "use_dot_dbi", which is zero by default.
-- Maxim Sloyko .
- Follow-Ups:
- Re: DBI v2 - The Plan and How You Can Help
- From: Adam Kennedy
- Re: DBI v2 - The Plan and How You Can Help
- References:
- DBI v2 - The Plan and How You Can Help
- From: Tim Bunce
- Re: DBI v2 - The Plan and How You Can Help
- From: Sam Vilain
- Re: DBI v2 - The Plan and How You Can Help
- From: Richard Nuttall
- Re: DBI v2 - The Plan and How You Can Help
- From: Sam Vilain
- Re: DBI v2 - The Plan and How You Can Help
- From: Maxim Sloyko
- Re: DBI v2 - The Plan and How You Can Help
- From: Steve Sapovits
- Re: DBI v2 - The Plan and How You Can Help
- From: Maxim Sloyko
- Re: DBI v2 - The Plan and How You Can Help
- From: Sam Vilain
- DBI v2 - The Plan and How You Can Help
- Prev by Date: Re: Installing DBD::File via CPAN
- Next by Date: Re: SQL Server and 'set dateformat'
- Previous by thread: Re: DBI v2 - The Plan and How You Can Help
- Next by thread: Re: DBI v2 - The Plan and How You Can Help
- Index(es):
Relevant Pages
|
|