[Bast-commits] r8660 - in
DBIx-Class/0.08/branches/resultset-remove-columns: . lib/DBIx/Class
frew at dev.catalyst.perl.org
frew at dev.catalyst.perl.org
Fri Feb 12 06:06:02 GMT 2010
Author: frew
Date: 2010-02-12 06:06:01 +0000 (Fri, 12 Feb 2010)
New Revision: 8660
Modified:
DBIx-Class/0.08/branches/resultset-remove-columns/Changes
DBIx-Class/0.08/branches/resultset-remove-columns/lib/DBIx/Class/ResultSet.pm
Log:
add changes and some doc
Modified: DBIx-Class/0.08/branches/resultset-remove-columns/Changes
===================================================================
--- DBIx-Class/0.08/branches/resultset-remove-columns/Changes 2010-02-12 05:19:02 UTC (rev 8659)
+++ DBIx-Class/0.08/branches/resultset-remove-columns/Changes 2010-02-12 06:06:01 UTC (rev 8660)
@@ -1,5 +1,6 @@
Revision history for DBIx::Class
+ - Add remove-columns/remove-select/remove-as search attributes
- Add as_subselect_rs to DBIC::ResultSet from
DBIC::Helper::ResultSet::VirtualView::as_virtual_view
- Depend on newest bugfixed Moose
Modified: DBIx-Class/0.08/branches/resultset-remove-columns/lib/DBIx/Class/ResultSet.pm
===================================================================
--- DBIx-Class/0.08/branches/resultset-remove-columns/lib/DBIx/Class/ResultSet.pm 2010-02-12 05:19:02 UTC (rev 8659)
+++ DBIx-Class/0.08/branches/resultset-remove-columns/lib/DBIx/Class/ResultSet.pm 2010-02-12 06:06:01 UTC (rev 8660)
@@ -3258,6 +3258,27 @@
Deprecated. Acts as a synonym for L</+columns> for backward compatibility.
+=head2 remove-columns
+
+=over 4
+
+=item Value: ArrayRef[ Str | HashRef[Str] ] \@columns
+
+=back
+
+Indicates columns to be removed from the currently selected columns from storage.
+For example:-
+
+ $schema->resultset('CD')->search(undef, {
+ '+columns' => [qw{artist.name artist.id}],
+ join => ['artist']
+ })->search(undef, {
+ 'remove-columns' => [qw{artist.id}],
+ });
+
+would return all CDs and include a 'name' column to the information
+passed to object inflation.
+
=head2 select
=over 4
More information about the Bast-commits
mailing list