Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: A brief survey of the DBI usability layer modules on the CPAN

by Mutant (Priest)
on Nov 02, 2005 at 11:08 UTC ( #504895=note: print w/ replies, xml ) Need Help??


in reply to Re^2: A brief survey of the DBI usability layer modules on the CPAN
in thread A brief survey of the DBI usability layer modules on the CPAN

I canít see that it uses connect_cached; it does expose the database handle via a getter, but thereís no way to set it or to supply your own. Supplying your own would make this and more things possible; that might make a good feature request.
I haven't used DBIx::Simple (and am now looking in to it), but a quick glance at the docs has this constructor:

DBIx::Simple->connect($dbh)

I would assume this could be used to pass your own DB handle created via connect_cached.

++ for a good writeup. I'd definitely be interested on your thoughts on Class::DBI, and a comparision between it and DBIx::Simple.


Comment on Re^3: A brief survey of the DBI usability layer modules on the CPAN
Select or Download Code
Re^4: A brief survey of the DBI usability layer modules on the CPAN
by Aristotle (Chancellor) on Nov 02, 2005 at 12:07 UTC

    D’oh! I even wondered how it could be that Juerd would miss such an obvious and obviously useful feature, and checked the docs multiple times – but didn’t see it. Sometimes I really have a blind spot. Thanks for pointing out the blunder, I fixed my node.

    As for a comparison with Class::DBI – there’s just not much to compare. DBIx::Simple is a very thin layer on top of DBI which doesn’t fundamentally affect the way you work, it just adds a good helping of readability and makes some things a smidgen easier. So DBIx::Simple is to Class::DBI exactly as DBI also is to Class::DBI.

    Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://504895]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2014-08-21 20:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (143 votes), past polls