From: Ryan Klein Date: 2008-08-07T03:31:20+09:00 Subject: Re: A Ruby function for assigning a query to an array? Funny you should say that because the moment after I sent that out I got an email from Jeremy Evans that was posting to the list about Sequel 2.4.0 release. I had a good laugh. Thanks for the suggestions though. Regards, Ryan Glen Holcomb wrote: > On Wed, Aug 6, 2008 at 11:11 AM, Ryan Klein wrote: > > >> I am wondering if anyone knows of a function for push a MySQL query result >> to an array? Right now I have to loop through the result, not bad but >> somewhat ugly and annoying for naming standards. >> >> Regards, >> >> Ryan >> >> >> > I would suggest trying one of the many ORM libraries out there: Sequel, > DataMapper, ActiveRecord... > > Usually they will give you your results in some array of hashes form. > >