0.05999_01 shipped
[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
716b3d29 6
7sub retrieve {
8 die "No args to retrieve" unless @_ > 1;
9 shift->find(@_);
10}
6009260a 11
12sub retrieve_from_sql {
13 my ($class, $cond, @rest) = @_;
14 $cond =~ s/^\s*WHERE//i;
15 $class->search_literal($cond, @rest);
16}
656796f2 17
716b3d29 18sub retrieve_all { shift->search }
3125eb1f 19sub count_all { shift->count }
cba994a1 20 # Contributed by Numa. No test for this though.
21
656796f2 221;