Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://504895]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-19 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found