Re: [CDBI] Group by and AbstractSearch

[prev] [thread] [next] [Date index for 2005/10/21]

From: Matt S Trout
Subject: Re: [CDBI] Group by and AbstractSearch
Date: 16:34 on 21 Oct 2005
On Fri, Oct 21, 2005 at 12:19:49PM -0400, Michael Peters wrote:
> > sub area_summary {
> >   my $self = shift;
> >   my $sql = SQL::Abstract->new();
> >   my ($where, @bind) = $sql->where(@_);
> >   return $self->sth_to_objects($self->sql_summarize($where), \@bind);
> > }
> > 
> > But again, I'm a little uncomfortable since sth_to_objects() is undocumented
> > (but not marked as internal)
> > 
> > Can someone provide me some info to say if this is the intended course or not?
> 
> Well, sth_to_objects() isn't documented by itself, but is is mentioned
> in at least one example. I use it all the time, so I hope it's now
> officially public :)

A small horde of add-ons and plugins use it, and the DBIx::Class::CDBICompat
layer supports it so I sincerely doubt it's going anywhere.

        -- 
             Matt S Trout       Specialists in perl consulting, web development, and
  Technical Director    UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

[CDBI] Group by and AbstractSearch
Brett Sanger 13:53 on 21 Oct 2005

Re: [CDBI] Group by and AbstractSearch
Bill Moseley 14:48 on 21 Oct 2005

Re: [CDBI] Group by and AbstractSearch
Brett Sanger 15:42 on 21 Oct 2005

Re: [CDBI] Group by and AbstractSearch
Dave Howorth 15:59 on 21 Oct 2005

Re: [CDBI] Group by and AbstractSearch
yoorobot 16:01 on 21 Oct 2005

Re: [CDBI] Group by and AbstractSearch
Brett Sanger 16:10 on 21 Oct 2005

Re: [CDBI] Group by and AbstractSearch
Michael Peters 16:19 on 21 Oct 2005

Re: [CDBI] Group by and AbstractSearch
Matt S Trout 16:34 on 21 Oct 2005

Re: [CDBI] Group by and AbstractSearch
Bill Moseley 18:20 on 21 Oct 2005

Generated at 19:52 on 24 Oct 2005 by mariachi v0.52