[CDBI] simplest way to do WHERE stuff

Peter Speltz peterspeltz at gmail.com
Tue Nov 29 21:57:14 GMT 2005


On 11/29/05, Mike Whitaker <mike at mindcandydesign.com> wrote:
>
> On 29 Nov 2005, at 19:52, Peter Speltz wrote:
>
> > On 11/29/05, Matt S Trout <dbix-class at trout.me.uk> wrote:
> >> On Mon, Nov 28, 2005 at 09:09:19PM -0600, Peter Speltz wrote:
> >>> The simplest is Class::DBI::AbstractSearch. From synopsis:
> >>>
> >>> my @music = CD::Music->search_where(
> >>>       artist => [ 'Ozzy', 'Kelly' ],
> >>>       status => { '!=', 'outdated' },
> >>>   );
> >>
> >> Which will work identically under Sweet, except you can simply do -
> >> >search
> >> and it all works ...
> >>
> >
> > I concede victory to Sweet as the simplest. . :)
>
> And I discover an urgent need to go recode some rather tacky searches
> to take advantage of this :)
>

ditto .



--
pjs




More information about the ClassDBI mailing list