[Dbix-class] select specific columns on resultset

max maxti83 at gmail.com
Tue Apr 9 13:19:07 GMT 2013


Hi all,
I'm new to DBIx, I'm trying to retrieve only a subset of columns from a
result set:

my @recs=3D$self->db->resultset($self->table)->search({},{columns =3D> [qw/=
 id
Name OperationId Name /],},)->all;

but the result contains all the columns, I also tried with the select
attribute with the same result. Is there something wrong ?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20130409/ba8=
534f3/attachment.htm


More information about the DBIx-Class mailing list