RE: Class::DBI::Loader and accessors

[prev] [thread] [next] [Date index for 2005/03/17]

From: Kingsley Kerce
Subject: RE: Class::DBI::Loader and accessors
Date: 21:02 on 17 Mar 2005
Zhuang Li writes:
 > Kings,
 > 
 > This is a Class::DBI wrapper. You have to replace 'My' with a directory
 > name under one of your @INC path.

John -- I appreciate your help.  I know the above, and I was using
"My" on this mailing list because I didn't want to show my
application's actual directory name.

 > Then in your table classes code, use 'use base qw(My::DBI);' instead of
 > 'use base qw(Class::DBI);'.

Yes, I know that too.  As you can see in my previous posts, this is
taken care of by the following argument to Class::DBI::Loader.
additional_base_classes => qw/My::DBI/

 > The code here is much simpler than RetrieveAll plugin and easier to use.

True or not, that's not an issue for me.  My original issue:
http://groups.kasei.com/mail/arc/cdbi-talk/2005-03/msg00167.html
still stands, although I'm looking into one of Perrin's suggestions.

Kings

 > 
 > john
 > 
 > > -----Original Message-----
 > > From: Kingsley Kerce [mailto:kingsley@xxxxxxxxxxxxxxxx.xxx]
 > > Sent: Thursday, March 17, 2005 11:07 AM
 > > To: Zhuang Li
 > > Cc: cdbi-talk@xxxxxx.xxxxx.xxx
 > > Subject: RE: Class::DBI::Loader and accessors
 > > 
 > > Zhuang Li writes:
 > >  > Package My::DBI;
 > >  > use base 'Class::DBI';
 > >  >
 > >  > __PACKAGE__->set_sql(RetrieveAll => <<'');
 > >  > SELECT __ESSENTIAL__
 > >  > FROM __TABLE__
 > >  > %s
 > > 
 > > The above gives the error:
 > > Can't locate object method "set_sql" via package "My::DBI"...
 > > 
 > > My real question is: How can such pieces of code be placed in the
 > > base My::DBI class and be executed for all table classes?
 > > 
 > > Thanks,
 > > Kings

(message missing)

Class::DBI::Loader and accessors
Sean Davis 21:10 on 15 Mar 2005

Re: Class::DBI::Loader and accessors
Kingsley Kerce 21:29 on 15 Mar 2005

Re: Class::DBI::Loader and accessors
Perrin Harkins 21:51 on 15 Mar 2005

Re: Class::DBI::Loader and accessors
Kingsley Kerce 22:28 on 15 Mar 2005

Re: Class::DBI::Loader and accessors
Kingsley Kerce 17:51 on 16 Mar 2005

Re: Class::DBI::Loader and accessors
Perrin Harkins 19:22 on 17 Mar 2005

RE: Class::DBI::Loader and accessors
Zhuang Li 18:48 on 17 Mar 2005

RE: Class::DBI::Loader and accessors
Kingsley Kerce 19:07 on 17 Mar 2005

RE: Class::DBI::Loader and accessors
Zhuang Li 20:02 on 17 Mar 2005

RE: Class::DBI::Loader and accessors
Kingsley Kerce 21:02 on 17 Mar 2005

Re: Class::DBI::Loader and accessors
Tony Bowden 23:16 on 17 Mar 2005

RE: Class::DBI::Loader and accessors
Zhuang Li 21:43 on 17 Mar 2005

Can't call id() as a class method
Tom Gazzini 22:44 on 17 Mar 2005

Re: Can't call id() as a class method
Perrin Harkins 22:52 on 17 Mar 2005

Re: Can't call id() as a class method
Tony Bowden 23:15 on 17 Mar 2005

RE: Class::DBI::Loader and accessors
Zhuang Li 21:54 on 23 Mar 2005

Re: Class::DBI::Loader and accessors
Tim Bunce 22:26 on 23 Mar 2005

Re: Class::DBI::Loader and accessors
Tony Bowden 23:00 on 23 Mar 2005

Re: Class::DBI::Loader and accessors
Tony Bowden 23:34 on 23 Mar 2005

RE: Class::DBI::Loader and accessors
Zhuang Li 23:07 on 23 Mar 2005

RE: Class::DBI::Loader and accessors
Zhuang Li 23:50 on 23 Mar 2005

RE: Class::DBI::Loader and accessors
Peter Speltz 00:04 on 24 Mar 2005

Generated at 15:09 on 27 Mar 2005 by mariachi v0.52