Re: [CDBI] Group by and AbstractSearch
[prev]
[thread]
[next]
[Date index for 2005/10/21]
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