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