My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 51: resultset hashmaps
1 person starred this issue and may be notified of changes. Back to list
 
Reported by funnyso...@gmail.com, May 27, 2010
Be nice to have a convenience wrapper for:

my $items = $dbrh->items->where( %where );
my @maps = ();
while (my $item = $items->next) {
  push @maps, $item->hashmap( 'item_id order quantity status.name' );
}
return \@maps;

so that one could simply:

return $dbrh->items->where( %where )->hashmaps( 'item_id order quantity 
status.name' );


Powered by Google Project Hosting