Re: [CDBI] Order of columns returned by "columns"

[prev] [thread] [next] [Date index for 2005/11/08]

From: Matt S Trout
Subject: Re: [CDBI] Order of columns returned by "columns"
Date: 00:06 on 08 Nov 2005
On Mon, Nov 07, 2005 at 05:44:09PM -0600, Ken Youens-Clark wrote:
> Hi,
> 
> Is it possible to get the columns returned by Class::DBI::columns to  
> be in the same order that I define them?  I see in the  
> Class::DBI::ColumnGrouper module that it's storing the columns in a  
> hash and calling "values" on that.

Define 'em all in a column group

$class->columns('GroupName')

is returned in definition order, with the exception of 'All' which triggers
the 'values' approach.

        -- 
             Matt S Trout       Specialists in Perl consulting, web development, and
  Technical Director    UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

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

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

[CDBI] Order of columns returned by "columns"
Ken Youens-Clark 23:44 on 07 Nov 2005

Re: [CDBI] Order of columns returned by "columns"
Matt S Trout 00:06 on 08 Nov 2005

Re: [CDBI] Order of columns returned by "columns"
Matt S Trout 15:46 on 08 Nov 2005

Generated at 20:55 on 09 Nov 2005 by mariachi v0.52