You can also make it more terse/idiomatic like so–
my $friend_rs = $c->model("DB::Metrics") ->search({}, { bind => ["raja"] });
Catalyst's DBIC model rolls up the resultsets for you.
(Update: corrected embarrassing typo.)
In reply to Re: catalyst Arbitary query
by Your Mother
in thread catalyst Arbitary query
by kulls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |