Added as_query to ResultSet with a couple tests
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / ResultSet.pm
index 472de94..72af68e 100644 (file)
@@ -1709,6 +1709,14 @@ sub _remove_alias {
   return \%unaliased;
 }
 
+=head2 as_query
+
+Returns the SQL query and bind vars associated with the invocant.
+
+=cut
+
+sub as_query { return shift->cursor->as_query }
+
 =head2 find_or_new
 
 =over 4