Much later (about 2-3 years or so), I thought there should have been some better way to do this... to move the variation in program behavior out of code and into configuration.
I had been submitting patches to the author of DBIx::Password so that his module would work with packages such as Alzabo and DBIx::AnyDBD which have a special way of connecting to DBI databases, but he kept rejecting them, on the grounds that his module was designed to keep connection information private and there should be no way of seeing the connection information in cleartext.
So, I created DBIx::Connect, which is based on AppConfig. I am very happy with this module. belg4mit thought it would be a great way to catalog database connections for EZDBI but Dominus insisted that EZDBI would have no external dependencies. I have a co-developer but we have not done much to the module after our initial collaboration, after all, how much variability is there in connecting to databases?
Recently, on the #perlhelp IRC channel I learned of a neat module called autobox, and of course had to check out what other modules such a first-class programmer had made. His Xelig provides clean-cut MVC with calling conventions along the lines of HTML::Seamstress and PeTaL. But most relevant to this post is his XML::Object::DBI which provides DBI connection handles, but also a rather neat way of cataloging SQL, reminiscent of Class::Phrasebook::SQL and also retrieving the SQL without the prepare-execute-fetch ritual.
So anyway, click away to your heart's content... and let me know how you feel database connections should be cataloged... oh! I almost forgot probably the most widely used one: Ima::DBI, which is part of the ever-popular Class::DBI framework. I am working on something similar for DBIx::Recordset via the "living try-as-you-read" documentation in DBIx::Recordset::Playground which is based on DBSchema::Sample.
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality.
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI database connection support and more
by perrin (Chancellor) on Sep 18, 2003 at 19:58 UTC | |
by chromatic (Archbishop) on Sep 18, 2003 at 20:07 UTC | |
by Anonymous Monk on Sep 19, 2003 at 21:31 UTC | |
|
Re: DBI database connection support and more
by adrianh (Chancellor) on Sep 18, 2003 at 21:39 UTC | |
by princepawn (Parson) on Sep 18, 2003 at 21:43 UTC | |
by DapperDan (Pilgrim) on Sep 21, 2003 at 16:02 UTC | |
|
Re: DBI database connection support and more
by bradb (Sexton) on Sep 19, 2003 at 21:02 UTC | |
by DapperDan (Pilgrim) on Sep 21, 2003 at 16:06 UTC | |
|
Re: DBI database connection support and more
by drfrog (Deacon) on Sep 20, 2003 at 18:44 UTC |