[Dbix-class] Re: [Catalyst] Migration from Class::DBI to DBIx::Class (with CDBICompat)

Matt S Trout dbix-class at trout.me.uk
Mon Jan 16 21:45:13 CET 2006


On Mon, Jan 16, 2006 at 02:06:04PM -0600, Brandon Black wrote:
> On 1/16/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
> >
> > How about
> >
> > ->search($cond, { select => [ { 'min' => 'thing_col' },
> >                               { 'max' => 'thing_col' },
> >                               { 'min' => 'thing_col2' } ],
> >                    as => [ 'min_thing', 'max_thing', 'min_thing2' ] });
> >
> > which is currently implemented in the branch.
> >
> 
> Works For Me :)
> 
> If I remember I'll make you a docs patch so it's a little more obvious
> that one can do such a thing.  The current description leaves a lot of
> the above to the imagination:
> 
> select (arrayref)
> 
>        Indicates which columns should be selected from the storage
> 
> as (arrayref)
> 
>        Indicates column names for object inflation

Yeah, I've mostly been adding a line or two as I go along so there's at
least an indicator that *something* exists; experience shows that when I
try and do more explanation-ish docs nobody understands them any better than
the one-liners, so I'm sticking to beating the code into shape :)

-- 
     Matt S Trout       Offering custom development, consultancy and support
  Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Dbix-class mailing list