Added count, count_related, and tests
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / SQL.pm
index 53b7692..2c5adbf 100644 (file)
@@ -9,6 +9,20 @@ use constant COLS => 0;
 use constant FROM => 1;
 use constant COND => 2;
 
+=head1 NAME 
+
+DBIx::Class::SQL -  SQL Specific methods for DBIx::Class
+
+=head1 SYNOPSIS
+
+=head1 DESCRIPTION
+
+This class contains methods that generates SQL queries for
+the rest of the L<DBIx::Class> hiarchy. It's also responsible
+for executing these.
+
+=cut
+
 __PACKAGE__->mk_classdata('_sql_statements',
   {
     'select' =>
@@ -26,6 +40,7 @@ __PACKAGE__->mk_classdata('_sql_statements',
 sub _get_sql {
   my ($class, $name, $cols, $from, $cond) = @_;
   my $sql = $class->_sql_statements->{$name}->($cols, $from, $cond);
+  #warn $sql;
   return $sql;
 }
 
@@ -40,3 +55,13 @@ sub _get_sth {
 }
 
 1;
+
+=head1 AUTHORS
+
+Matt S. Trout <perl-stuff@trout.me.uk>
+
+=head1 LICENSE
+
+You may distribute this code under the same terms as Perl itself.
+
+=cut