Ovid has asked for the wisdom of the Perl Monks concerning the following question:
Using DBIx::Class and I have a resultset which needs to be filtered by data which cannot be generated by SQL. What I need to do is something effectively equivalent to this hypothetical example:
my $resultset = $schema->resultset('Service')->search(\%search +); my $new_resultset = $resultset->filter( sub { my $web_service = shift; return $web_service->is_available; } );
Reading through the docs gives me no clue how to accomplish a strategy like this.
Cheers,
Ovid
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Filtering DBIx::Class resultsets with external criteria
by arc_of_descent (Hermit) on Nov 09, 2008 at 04:46 UTC |
Back to
Seekers of Perl Wisdom