[Dbix-class] Controlling column order

Matt S Trout dbix-class at trout.me.uk
Wed Jan 11 22:00:20 CET 2006


On Wed, Jan 11, 2006 at 01:16:12PM -0600, Brandon Black wrote:
> On 1/11/06, Will Hawes <info at whawes.co.uk> wrote:
> > Is it possible to control the order in which columns are returned from a
> > DBIx::Class object?
> >
> 
> You mean from DBIx::Class::Table->columns?  Perhaps this should be an
> optional column_info attribute (sort_order?) that ->columns looks at.

or maybe just make the internal hash an IxHash like primaries do. Not sure
what the performance impact of this would be though.

-- 
     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