[CDBI] simplest way to do WHERE stuff

Mike Whitaker mike at mindcandydesign.com
Tue Nov 29 20:01:56 GMT 2005


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 :)




More information about the ClassDBI mailing list