On Tue, Nov 30, 2004 at 07:38:34AM +0000, Terrence Brannon wrote:
NAME DBIx::DBH - Perl extension for simplifying database connections
I suggest 'DBIx::DSN' as a better name, since database handles (DBH) are
universally used in DBI-based projects.
Thanks for the input Mark. The only thing is, the functionality of the module is to provide database handles (DBHs) or @connect_data, which equals ($dsn, $user, $pass, $attr)
So DSN is too restrictive. Perhaps DBIx::DBH::from_hash ... well who knows.
I dont understand your comment: " ... since database handles (DBH) are
universally used in DBI-based project" --- why is that an issue? Their is no chance of trampling on another's namespace is there?
I like the idea, having written if/else chains in the past to solve the same problem.
yeah, there is certainly a maze of things to polymorphically wind your way through when getting the DBI attributes and driver-dsn and driver-attributes to all meld together.
Everyone has something very similar to this module on their own tech stack. I just felt it was time to do the job rigorously in terms of clean subclassing, runtime input validation and also testing the documented API of the module itself.
-- Terrence Brannon, [EMAIL PROTECTED]