[CDBI] simplest way to do WHERE stuff

Matt S Trout dbix-class at trout.me.uk
Tue Nov 29 17:08:46 GMT 2005

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 ...

So far as I'm concerned Sweet 0.01 (which I had nothing to do with :)
obsoleted the various extant Abstract plugins.

     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/ +

More information about the ClassDBI mailing list