1 package # hide form PAUSE
2 DBIx::Class::CDBICompat::AbstractSearch;
7 use base 'DBIx::Class';
11 DBIx::Class::CDBICompat::AbstractSearch - Emulates Class::DBI::AbstractSearch
15 See DBIx::Class::CDBICompat for usage directions.
19 Emulates L<Class::DBI::AbstractSearch>.
23 # The keys are mostly the same.
30 my $where = (ref $_[0]) ? $_[0] : { @_ };
31 my $attr = (ref $_[0]) ? $_[1] : {};
34 $attr->{$cdbi2dbix{$_}} = delete $attr->{$_} for keys %cdbi2dbix;
36 return $class->resultset_instance->search($where, $attr);
39 =head1 FURTHER QUESTIONS?
41 Check the list of L<additional DBIC resources|DBIx::Class/GETTING HELP/SUPPORT>.
43 =head1 COPYRIGHT AND LICENSE
45 This module is free software L<copyright|DBIx::Class/COPYRIGHT AND LICENSE>
46 by the L<DBIx::Class (DBIC) authors|DBIx::Class/AUTHORS>. You can
47 redistribute it and/or modify it under the same terms as the
48 L<DBIx::Class library|DBIx::Class/COPYRIGHT AND LICENSE>.