1 package # hide form PAUSE
2 DBIx::Class::CDBICompat::AbstractSearch;
9 DBIx::Class::CDBICompat::AbstractSearch
13 See DBIx::Class::CDBICompat for directions for use.
17 Emulates L<Class::DBI::AbstractSearch>.
21 # The keys are mostly the same.
28 my $where = (ref $_[0]) ? $_[0] : { @_ };
29 my $attr = (ref $_[0]) ? $_[1] : {};
32 $attr->{$cdbi2dbix{$_}} = delete $attr->{$_} for keys %cdbi2dbix;
34 return $class->resultset_instance->search($where, $attr);