?select.0.count=some_column&as.0=my_count
using CGI::Expand syntax to produce the right arguments to ->search
{ select => [ { count => 'some_column' } ], as => [ 'my_count ] }
This is rockin.
As funky as the CGI::Expand syntax is, it is incredibly flexible. This one minor feature let me avoid a more complicated setup for work and instead rely on what DBIC::API is good for: exposing DBIx::Class via web service.
I'll do another release of DBIC::API soon.
No comments:
Post a Comment