Re: Pass in a DBI Object?

[prev] [thread] [next] [Date index for 2004/08/24]

From: Tim Bunce
Subject: Re: Pass in a DBI Object?
Date: 20:04 on 24 Aug 2004
On Wed, Aug 18, 2004 at 07:05:17AM +0100, Tony Bowden wrote:
> On Tue, Aug 17, 2004 at 03:03:42PM -0700, Brian E. Lozier wrote:
> > Is there a way to pass in a DBI object to Class::DBI so I don't have to  
> > use the CDBI connection() method?
> 
> Not by default. You could always override db_Main() to do what you want.
> It's the method that gets asked for the connection, so you could have it
> return whatever you've given in some other way.

There's the added complication of it needing to be a DBIx::ContextFetch
DBI subclass though.

I wish Class::DBI didn't require DBIx::ContextFetch but allowed it to
be optional. Wouldn't be too hard to implement if you give me the nod :)

Tim.

(message missing)

Pass in a DBI Object?
Brian E. Lozier 22:03 on 17 Aug 2004

Re: Pass in a DBI Object?
Tony Bowden 06:05 on 18 Aug 2004

Re: Pass in a DBI Object?
Tim Bunce 20:04 on 24 Aug 2004

Re: Pass in a DBI Object?
Tony Bowden 07:33 on 25 Aug 2004

Re: Pass in a DBI Object?
Tim Bunce 15:20 on 25 Aug 2004

Re: Pass in a DBI Object?
Brian E. Lozier 15:47 on 25 Aug 2004

Re: Pass in a DBI Object?
Tony Bowden 17:21 on 25 Aug 2004

Re: Pass in a DBI Object?
Tim Bunce 15:55 on 26 Aug 2004

Re: Pass in a DBI Object?
Tony Bowden 16:43 on 26 Aug 2004

Re: Pass in a DBI Object?
Tim Bunce 20:12 on 27 Aug 2004

Re: Pass in a DBI Object?
Daniel Collis Puro 12:50 on 28 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52