3 class SQL::Abstract::Compat {
5 use Moose::Util::TypeConstraints;
6 use MooseX::Types::Moose qw/Str ScalarRef ArrayRef HashRef/;
7 use MooseX::Types -declare => [qw/LogicEnum WhereType/];
9 enum LogicEnum, qw(OR AND);
11 subtype WhereType, as Str;
23 method select(Str|ArrayRef|ScalarRef $from, ArrayRef|Str $fields,
24 Str|ScalarRef|ArrayRef|HashRef $where?,
25 Str|ScalarRef|ArrayRef|HashRef $order?) {
29 method where(Str|ScalarRef|ArrayRef|HashRef $where,
30 Str|ScalarRef|ArrayRef|HashRef $order?) {
37 method recurse_where(LogicEsnum $where) {
45 SQL::Abstract::Compant - compatibility layer for SQL::Abstrct v 1.xx
49 This class attempts to maintain the original behaviour of version 1 of
50 SQL::Abstract. It does this by internally converting to an AST and then using
51 the standard AST visitor.
53 If so desired, you can get hold of this transformed AST somehow. This is aimed
54 at libraries such as L<DBIx::Class> that use SQL::Abstract-style arrays or
55 hashes as part of their public interface.
59 Ash Berlin C<< <ash@cpan.org> >>