selectのインターフェースの再考
karupanerura opened this issue · comments
karupanerura commented
- 常にlist contextで返す(今のまま)
- scalar contextではTeng#single相当にするなどcontextを見る
- オブジェクトにくるんで返す
どれがいいか。
karupanerura commented
オブジェクトでくるんで返すようにしようと思う。
karupanerura commented
my @rows = $aniki->select(foo => { id => [1..10] })->all;
my $row = $aniki->select(foo => { id => 1 })->first;
kobaken commented
👍