[Dbix-class] get_columns() with inflaters

Christopher H. Laco claco at chrislaco.com
Wed Mar 29 23:39:36 CEST 2006


Matt S Trout wrote:
> Michele Beltrame wrote:
>> Hi!
>>
>>> my %hash = map { ($_ => $o->$_) } $o->columns;
>> Thanks Matt, this was so easy I didn't even think of it. I don't know
>> why, I was looking for a method which did all automatically. ;-)
> 
> DBIC doesn't tend to get convenience methods that encapsulate what I consider 
> a bloody obvious perl idiom unless somebody else implements them and supplies 
> a patch with tests. Mmm, and I turn 23 in an hour and a half. Somebody fetch 
> me my pipe and slippers so I can sit around saying "bah" and saying how much 
> better it was in the old days :)
> 

Bah. Kids these days have it so easy. In my day, we had Class::DBI, that
puked and barfed up errors and we liked it! WE LOVED IT!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060329/290a306d/attachment.pgp 


More information about the Dbix-class mailing list