ブログが続かないわけ | DBIC で+select と+as : ああ、今頃気づくなんて... でも、どうにも不便だと思ってDBIx::Class::ResultsetのPODを読んでいると、+select と+as なるものがあるじゃないですか。これだと、まさに先ほど直感的に書いたような方法で書けるのです。 $c->model('DBIC::TranDiary')->search( $query_ref, { '+select' => [ { date_format => 'me.create_date,\'%Y/%m/%d\'' }, ], '+as' => [ qw/create_date/ ] } ); これって常識なんだろな。だってPODに書いてあるんだもん。 ちょっとへこみました。 +select と +as なんて、あるんだなー便利だなーと思いつつ、それは、inflate_