[Dbix-class] SELECT from $schema1, INSERT into $schema2 ?

Matt Lawrence matt.lawrence at ymogen.net
Mon Feb 25 11:02:28 GMT 2008


Chisel Wright wrote:
> On Mon, Feb 25, 2008 at 08:48:01AM +0000, Chisel Wright wrote:
>   
>>   $coldata_hashref = $record->MAGIC_FUNCTION();
>>     
>
> .. in the meantime, this appears to do what I need:
>
>     map {
>         $data{$_} =
>             $result->get_column($_)
>     } $result->result_source->columns;
>
>   

Won't get_columns() do the same job?

%data = $result->get_columns();

Matt




More information about the DBIx-Class mailing list