Convert a DBIx::Class::Result into a hash

后端 未结 2 1447
轮回少年
轮回少年 2021-01-21 15:39

Using DBIx::Class, I found a solution to my issue, thankfully. But I\'m sure there has to be a nicer way.

my $record = $schema->resultset(\"food\")->creat         


        
2条回答
  •  别那么骄傲
    2021-01-21 16:03

    What you're looking for is included in DBIx::Class as DBIx::Class::ResultClass::HashRefInflator.

提交回复
热议问题