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. 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 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_columns}

then I get [ qw/ id to from subject / ] indeed, but it would be nice to have a simpler method to get there.


Silvio
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/



_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to