Re: [CDBI] Order of columns returned by "columns"
[prev]
[thread]
[next]
[Date index for 2005/11/08]
On Tue, Nov 08, 2005 at 10:33:32AM +0100, Brad Bowman wrote:
>
> >Is it possible to get the columns returned by Class::DBI::columns to be
> >in the same order that I define them?
>
> I ended up adding a separate all_columns_ordered method to my CDBI base
> class.
> My classes are setup largely setup from the database, CDBI::Loader style,
> so I use the ordering from the table.
>
> Using column groups effects lazy loading and I didn't want to alter that.
Not overly - the important thing is what's in the Essential column group.
--
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