Hi,
I'm currently using Sequel, but very minimally and try to avoid any
sort of magic
when I can. That means basically:
- for insert / update / deletion of models
- basic associations
For anything more complex (i.e. joins), I prefer to write the SQL by
hand, as
it's easier to analyze and to debug code later on.
With that out of the way, what I'm doing is something like:
DB.fetch("SELECT ....").map do |dict|
Item.new(dict, true)
end
That works fine, but I'm using a deprecated boolean flag (from_db),
which
makes me feel like I'm doing something hackish.
Is there a better way to do what I'm trying to do?
Thanks so much in advance!
cyx
P.S. I love sequel. ;-) Best Ruby SQL toolkit around
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en.