RFC: DBIx::AutoConnect
From: David Marshall (marshall_at_chezmarshall.com)
Date: 06/24/04
- Next message: Bricklen: "GDGraph hbars problem"
- Previous message: Sisyphus: "Re: math::trulyrandom"
- Next in thread: Heiko Klein: "Re: RFC: DBIx::AutoConnect"
- Reply: Heiko Klein: "Re: RFC: DBIx::AutoConnect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Jun 2004 01:15:04 -0700
Comments will be appreciated on the CPAN-worthiness of my module
DBIx::AutoConnect. It connects to a database upon being loaded and
creates a scalar in the caller's namespace.
use DBIx::AutoConnect 'DBD:Pg:dbname=foo'; # $dbh now available
use DBIx::AutoConnect { Symbol => 'blah',
Connect => 'DBD:...',
RaiseError => 0 } # $blah now available
I'll probably add sooner or later a way to get the connection
information out of a configuration file.
The closest module to this is DBIx::Password, but one thing I don't like
about that module is that the connection information is stored in the
module at installation-time.
One topic on which I would appreciate feedback is whether to support
subroutine VERSION or whether to allow numeric connection data. If I
allow numeric connection data (such as a password), then I have to
override VERSION() with an empty subroutine, or the numeric information
is considered a required version. I'm leaning towards requiring
numeric-only passwords to be used via the hashref.
TIA!
- Next message: Bricklen: "GDGraph hbars problem"
- Previous message: Sisyphus: "Re: math::trulyrandom"
- Next in thread: Heiko Klein: "Re: RFC: DBIx::AutoConnect"
- Reply: Heiko Klein: "Re: RFC: DBIx::AutoConnect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]