Skeleton class for starting the back-compat layer
Ash Berlin [Wed, 25 Mar 2009 18:40:00 +0000 (18:40 +0000)]
lib/SQL/Abstract/Compat.pm [new file with mode: 0644]
t/compat/.gitignore [new file with mode: 0644]

diff --git a/lib/SQL/Abstract/Compat.pm b/lib/SQL/Abstract/Compat.pm
new file mode 100644 (file)
index 0000000..1b231dd
--- /dev/null
@@ -0,0 +1,26 @@
+use MooseX::Declare;
+
+class SQL::Abstract::Compat {
+}
+
+=head1 NAME
+
+SQL::Abstract::Compant - compatibility layer for SQL::Abstrct v 1.xx
+
+=head1 DESCRIPTION
+
+This class attempts to maintain the original behaviour of version 1 of
+SQL::Abstract. It does this by internally converting to an AST and then using
+the standard AST visitor.
+
+If so desired, you can get hold of this transformed AST somehow. This is aimed
+at libraries such as L<DBIx::Class> that use SQL::Abstract-style arrays or
+hashes as part of their public interface.
+
+=head1 AUTHOR
+
+Ash Berlin C<< <ash@cpan.org> >>
+
+=cut
+
+1;
diff --git a/t/compat/.gitignore b/t/compat/.gitignore
new file mode 100644 (file)
index 0000000..e69de29