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