1 package # hide form PAUSE
2 DBIx::Class::CDBICompat::AbstractSearch;
9 DBIx::Class::CDBICompat::AbstractSearch - Emulates Class::DBI::AbstractSearch
13 See DBIx::Class::CDBICompat for usage directions.
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);
37 =head1 FURTHER QUESTIONS?
39 Check the list of L<additional DBIC resources|DBIx::Class/GETTING HELP/SUPPORT>.
41 =head1 COPYRIGHT AND LICENSE
43 This module is free software L<copyright|DBIx::Class/COPYRIGHT AND LICENSE>
44 by the L<DBIx::Class (DBIC) authors|DBIx::Class/AUTHORS>. You can
45 redistribute it and/or modify it under the same terms as the
46 L<DBIx::Class library|DBIx::Class/COPYRIGHT AND LICENSE>.