new module: Class::DBI::AbstractSearch

miyagawa on 2003-02-06T04:45:23

10 minutes hack: Class::DBI::AbstractSearch.

This module glues SQL::Abstract into Class::DBI, which allows you to do:

package CD::Music;
use Class::DBI::AbstractSearch;

package main;
my @music = CD::Music->search_where(artists => ['Ozzy', 'Kelly']);

This would generate SELECT * FROM music WHERE artist = 'Ozzy' OR artist = 'Kelly', thanks to SQL::Abstract magic.