Re: using DBI handles managed elsewhere

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

From: Jim Brandt
Subject: Re: using DBI handles managed elsewhere
Date: 17:19 on 01 Apr 2005
On Mar 25, 2005, at 5:42 AM, Tony Bowden wrote:

> On Thu, Mar 24, 2005 at 11:49:41PM -0500, Chris Winters wrote:
>> I'm trying to provide glue between OpenInteract2 and Class::DBI. From
>> reading the mailing list archives I learned that adding
>> 'DBIx::ContextualFetch' to the 'RootClass' attribute of DBI's
>> connect() method will provide the additional functionality needed by
>> Class::DBI without using Ima::DBI. I can then provide this
>> RootClass-enhanced handle to a CDBI class via a db_Main() method and
>> all parties will be happy.
>
> That very much depends on what the parties need to do!
>
> Adding ContextualFetch will certainly provide some of the features that
> Class::DBI needs, but it certainly won't provide the vast majority of
> the features that most users of Class::DBI want...

I was under the impression creating a db_Main() method this way did 
give you full Class::DBI functionality. But you're saying doing 
something like this:

sub db_Main{
    $dbh DBI->connect($dsn, $username, $password,
                  {
                    RaiseError                  => 1,
                    AutoCommit                 => 0,
                    PrintError                 => 0,
                    RootClass                   => 
"DBIx::ContextualFetch",
              });
    return $dbh;
}


will limit the functionality of Class::DBI? So the 'connection' method 
is inherently superior because it does extra stuff?

Thanks,
Jim


==========================================
Jim Brandt
Administrative Computing Services
University at Buffalo

(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