Re: Pass in a DBI Object?

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

From: Tim Bunce
Subject: Re: Pass in a DBI Object?
Date: 15:20 on 25 Aug 2004
On Wed, Aug 25, 2004 at 08:33:32AM +0100, Tony Bowden wrote:
> On Tue, Aug 24, 2004 at 09:04:34PM +0100, Tim Bunce wrote:
> > 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 :)
> 
> How would you go about this?

Basically by having Class::DBI simply call the normal DBI methods and
handling the context sensitivity directly. The code required is tiny.

I wouldn't replicate the taint behaviour of DBIx::ContextualFetch because
a) few users need it and those that do can simply use DBIx::ContextualFetch.
b) DBI v2 will probably do the same thing by default anyway.

Avoiding DBIx::ContextFetch would make it much easier for people
to use their own $dbh. It will also make it simpler to use other
DBI subclasses, including the DbTypeSubclass mechanism (ala DBIx::AnyDBD).

Tim.

p.s. It'll also make Class::DBI faster, but I know that doesn't count :)

(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