I have a complicated reporting query that is just much easier for me to deal
with (given our models) as a raw sql query, which I put inside a model and want
to return as an array of hashes.

Got that working. But I get all the rows at once, and I'm worried about memory.
Is there a way, ala DBI module, to loop through the rows from the db handle as a
result set?

while row=sth.fetch do
   p row
end

Thanks!



-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to datamapper@googlegroups.com.
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to