Re: CDBI and mod_perl

[prev] [thread] [next] [Date index for 2005/02/19]

From: Tony Bowden
Subject: Re: CDBI and mod_perl
Date: 11:23 on 19 Feb 2005
On Fri, Feb 18, 2005 at 05:36:34PM -0500, Perrin Harkins wrote:
> In general, Class::DBI doesn't share database handles with other things
> very nicely, and I think maybe it should.  

I'm open to suggestions here.

> Another big sticking point besides the database closure stuff is that
> the required subclassing of DBI handles makes it hard to share them
> with other things.  I'm not sure what to do about that at the moment.
> Maybe if DBIx::ContextualFetch used a "has a" rather than an "is a"
> relationship to DBI handles, i.e.  acting as a proxy?  That would probably
> be slower though.

Maybe I'm misunderstanding, but I don't see how that would help much.
The $dbh that Class::DBI expects to work with has extra features that a
normal DBI $dbh doesn't have. Whether they're obtained through subclassing
or by delegating surely doesn't really matter. Either way we can't just
take a plain old $dbh and work with it.

We could of course alter it, but that would cause problems if the $dbh
we were given was already a non-DBI one...

What are the main use cases here? What are the top 5 (say) scenarios
where people want to be able to supply their own $dbh, or share one with
other things?

Tony

(message missing)

Column Names
Justin Tocci 05:19 on 10 Feb 2005

Re: Column Names
Peter Speltz 20:36 on 10 Feb 2005

Re: Column Names
Rod McChesney 20:56 on 10 Feb 2005

CDBI and mod_perl
Rod McChesney 20:58 on 10 Feb 2005

Re: CDBI and mod_perl
Perrin Harkins 21:37 on 10 Feb 2005

Re: CDBI and mod_perl
Drew Wilson 21:54 on 10 Feb 2005

Re: CDBI and mod_perl
karjala_lists 13:59 on 15 Feb 2005

Re: CDBI and mod_perl
Perrin Harkins 22:16 on 10 Feb 2005

Re: CDBI and mod_perl
Drew Wilson 22:27 on 10 Feb 2005

Re: CDBI and mod_perl
Perrin Harkins 22:46 on 10 Feb 2005

Re: CDBI and mod_perl
Edward J. Sabol 23:42 on 10 Feb 2005

Re: CDBI and mod_perl
Rod McChesney 01:55 on 12 Feb 2005

Re: CDBI and mod_perl
Edward J. Sabol 19:43 on 12 Feb 2005

Re: CDBI and mod_perl
Rod McChesney 18:48 on 14 Feb 2005

Re: CDBI and mod_perl
Perrin Harkins 21:23 on 14 Feb 2005

Re: CDBI and mod_perl
Edward J. Sabol 06:53 on 14 Feb 2005

Re: CDBI and mod_perl
Perrin Harkins 21:14 on 14 Feb 2005

Re: CDBI and mod_perl
Perrin Harkins 19:59 on 15 Feb 2005

Re: CDBI and mod_perl
Tim Bunce 22:33 on 15 Feb 2005

Re: CDBI and mod_perl
Tony Bowden 22:12 on 18 Feb 2005

Re: CDBI and mod_perl
=?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?= 22:19 on 18 Feb 2005

Re: CDBI and mod_perl
Perrin Harkins 22:36 on 18 Feb 2005

Re: CDBI and mod_perl
Tony Bowden 11:23 on 19 Feb 2005

Re: CDBI and mod_perl
Perrin Harkins 13:56 on 19 Feb 2005

Re: CDBI and mod_perl
Tony Bowden 15:57 on 19 Feb 2005

Re: CDBI and mod_perl
Perrin Harkins 16:21 on 19 Feb 2005

Re: CDBI and mod_perl
Perrin Harkins 16:24 on 19 Feb 2005

Re: CDBI and mod_perl
Tony Bowden 09:54 on 20 Feb 2005

Re: CDBI and mod_perl
Perrin Harkins 21:31 on 20 Feb 2005

Re: CDBI and mod_perl
Tony Bowden 22:19 on 20 Feb 2005

Generated at 12:48 on 22 Feb 2005 by mariachi v0.52