1 package DBIx::Class::CDBICompat::Retrieve;
4 use warnings FATAL => 'all';
8 die "No args to retrieve" unless @_ > 1;
12 sub retrieve_from_sql {
13 my ($class, $cond, @rest) = @_;
14 $cond =~ s/^\s*WHERE//i;
15 $class->search_literal($cond, @rest);
18 sub retrieve_all { shift->search }
19 sub count_all { shift->count }
20 # Contributed by Numa. No test for this though.