Re: [Catalyst] DBIC ResultSet - what columns in it?

2007-12-19 Thread Matt S Trout
On Wed, Dec 19, 2007 at 03:09:01AM -0200, Silvio Almeida wrote: > I was looking for a way to get column names from a ResultSet. > > If I have a table with columns id, to, from, subject which is mapped > into Email then if I do > > $c->model('Email')->{_source_handle}{schema}{source_registrations

RE: [Catalyst] DBIC ResultSet - what columns in it?

2007-12-19 Thread Hartmaier Alexander
5:48 PM To: The elegant MVC web framework Subject: Re: [Catalyst] DBIC ResultSet - what columns in it? Thanks Andreas, that's what I need. It's in pod indeed, I need to sleep better. Silvio Andreas Marienborg wrote: > Wrong list, but $rs->result_source->columns might give

Re: [Catalyst] DBIC ResultSet - what columns in it?

2007-12-19 Thread Silvio Almeida
Thanks Andreas, that's what I need. It's in pod indeed, I need to sleep better. Silvio Andreas Marienborg wrote: Wrong list, but $rs->result_source->columns might give you that? http://cpansearch.perl.org/~ash/DBIx-Class-0.08008/lib/DBIx/Class/ResultSource.pm#columns - andreas On 19. d

Re: [Catalyst] DBIC ResultSet - what columns in it?

2007-12-19 Thread Ash Berlin
On 19 Dec 2007, at 05:09, Silvio Almeida wrote: I was looking for a way to get column names from a ResultSet. If I have a table with columns id, to, from, subject which is mapped into Email then if I do $c->model('Email')->{_source_handle}{schema}{source_registrations} {Reuniao}{_ordered_

Re: [Catalyst] DBIC ResultSet - what columns in it?

2007-12-18 Thread Andreas Marienborg
Wrong list, but $rs->result_source->columns might give you that? http://cpansearch.perl.org/~ash/DBIx-Class-0.08008/lib/DBIx/Class/ResultSource.pm#columns - andreas On 19. des.. 2007, at 06.09, Silvio Almeida wrote: I was looking for a way to get column names from a ResultSet. If I have a t