[Dbix-class] Restricting Result Sets
Ovid
publiustemp-dbic at yahoo.com
Fri Nov 7 17:09:27 GMT 2008
--- On Fri, 7/11/08, Bruno <brunorc at gmail.com> wrote:
> > my $new_rs = $rs->filter( sub { defined
> $_->inflate_entity } );
>
> Sorry if this sounds stupid, but how about returning in
> list context then grep { defined $_->inflate_entity } ?
Because we use the resultset methods heavily, particularly the pager. We'd have to find a minimal subset of behavior we'd be willing to support and wrap that in our our resultset wrapper. Yuck.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
More information about the DBIx-Class
mailing list