Merge 'trunk' into 'DBIx-Class-resultset'
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / CDBICompat / Retrieve.pm
CommitLineData
656796f2 1package DBIx::Class::CDBICompat::Retrieve;
2
3use strict;
4use warnings FATAL => 'all';
5
6sub retrieve { shift->find(@_) }
3125eb1f 7sub retrieve_all { shift->search }
6009260a 8
9sub retrieve_from_sql {
10 my ($class, $cond, @rest) = @_;
11 $cond =~ s/^\s*WHERE//i;
12 $class->search_literal($cond, @rest);
13}
656796f2 14
3125eb1f 15sub count_all { shift->count }
cba994a1 16 # Contributed by Numa. No test for this though.
17
656796f2 181;