Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Why did DBIC overtake CDBI?

by jasonk (Parson)
on Sep 19, 2006 at 22:22 UTC ( #573817=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why did DBIC overtake CDBI?
in thread Why did DBIC overtake CDBI?

(aside: one thing that bugs me about the various ORM solutions is that they want to handle their own db connections and want me to provide DSNs instead of $dbhs. with CDBI this is relatively easy to get around by overriding My::CDBI->db_Main(). is it that easy with RDBO or DBIC?)

With L<DBIx::Class::Schema> you can do this quite simply:

package MySchema; #... setup schema stuff here ... __PACKAGE__->connection(sub { # Do whatever you want to do to build your $dbh return $dbh; });

We're not surrounded, we're in a target-rich environment!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://573817]
help
Chatterbox?
[1nickt]: The Romans were everywhere!
[erix]: everywhere? Not quite. The Limes runs through the Netherlands
[Discipulus]: marto lives above Vallo Adriano, i think
[Discipulus]: Anyway many years passed, we had Perl 3 iirc.. ;=)
[1nickt]: erix looking ... which one?

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-11-21 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (299 votes). Check out past polls.

    Notices?