Re: using DBI handles managed elsewhere

[prev] [thread] [next] [Date index for 2005/04/04]

From: Perrin Harkins
Subject: Re: using DBI handles managed elsewhere
Date: 19:03 on 04 Apr 2005
On Fri, 2005-03-25 at 10:00 -0500, Chris Winters wrote:
> I'm trying to find a good balance here and I'm not sure how much the
> features from Ima::DBI (primarily caching, yes?) are worth rejiggering
> an existing infrastructure to wedge it in.

You can't use Class::DBI without Ima::DBI at this point.  Ima::DBI
should not be an issue for integrating with OpenInteract2.  You just
need to override db_Main, which you have to do anyway to use Class::DBI
with mod_perl.

The problem I ran into is that modifying an already open handle (which
you will be getting from OI2) to have a RootClass of
DBIx::ContextualFetch doesn't seem easy to do, and doing it may cause in
the rest of your application, because it changes the behavior of
standard DBI methods in certain contexts.  AFAIK though, the only
relevant change is that calls to $sth->fetch() in list context behave
differently, and this may not matter because that would have been a
strange thing to do before.

I didn't try very hard before postponing dealing with this problem, so
maybe we can solve it.

> The main purpose of
> Class::DBI is providing an object representation of data in the
> database. How does Ima::DBI facilitate this?

It just provides some helper stuff that CDBI uses for compiling queries
and the like.

- Perrin

(message missing)

using DBI handles managed elsewhere
Chris Winters 04:49 on 25 Mar 2005

Re: using DBI handles managed elsewhere
Tony Bowden 10:42 on 25 Mar 2005

Re: using DBI handles managed elsewhere
Chris Winters 15:00 on 25 Mar 2005

Re: using DBI handles managed elsewhere
Perrin Harkins 19:03 on 04 Apr 2005

Re: using DBI handles managed elsewhere
Tim Bunce 22:47 on 04 Apr 2005

Re: using DBI handles managed elsewhere
Tony Bowden 23:03 on 04 Apr 2005

Re: using DBI handles managed elsewhere
Juan Camacho 04:16 on 05 Apr 2005

Re: using DBI handles managed elsewhere
=?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?= 11:14 on 05 Apr 2005

Re: using DBI handles managed elsewhere
Jim Brandt 17:19 on 01 Apr 2005

Re: using DBI handles managed elsewhere
Tony Bowden 19:30 on 01 Apr 2005

Re: using DBI handles managed elsewhere
Chris Winters 22:04 on 01 Apr 2005

Re: using DBI handles managed elsewhere
Perrin Harkins 03:30 on 05 Apr 2005

Generated at 14:42 on 11 Apr 2005 by mariachi v0.52