[Dbix-class] select specific columns on resultset
Peter Rabbitson
rabbit+dbic at rabbit.us
Tue Apr 9 13:22:41 GMT 2013
On Tue, Apr 09, 2013 at 03:19:07PM +0200, max wrote:
> Hi all,
> I'm new to DBIx, I'm trying to retrieve only a subset of columns from a
> result set:
>
> my @recs=$self->db->resultset($self->table)->search({},{columns => [qw/ id
> Name OperationId Name /],},)->all;
>
The above looks correct
> but the result contains all the columns,
How did you determine this?
Also what does the DBIC_TRACE=1 look like?
Cheers
More information about the DBIx-Class
mailing list