Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?
[shmem]: no. A reference is something like a pointer in C
[james28909]: i mean i get what you are saying though. but it is easily confused (especially by someone like me :P )
[shmem]: in the loop example I gave you, $_ is not a reference. It is just the current element of @array "in disguise".
[shmem]: i.e accessed as $array[$i] where $i would be the loop index in a C-style "for" loop: for($i=0;$i<=$# array;$i++){ ... }</c>
[james28909]: i gotcha
[Discipulus]: reference is a road sign; alias like Constantinple and Istnbul
Discipulus well istanbul was a road sign but this is another story: eis ten polin
[shmem]: Discipulus++; # and I give you an "a"
[james28909]: and you are right, i already tried to go C but ended up coming back, mainly because data types confuse me, well that and things like long long double and float point things all scare me
[james28909]: lol

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2018-05-20 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?