Tatsuhiko Miyagawa's Blog

new module: Class::DBI::AbstractSearch

February 05, 2003

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.