I like DataMapper, but I can't say I care for the conditions syntax.
Yes, the use of operators is kind-of cool, but the #lt, #gt, etc
methods and the extension of Symbol with #desc and #asc are pretty
blech. And am I missing something, or is there the potential for name
clashes for properties named :order, :limit, etc?
Some time ago Peter VanBroekhoven did a cool video on a SQL like DSL.
I can't find the video anymore, but to give you an idea, you could do
things like:
Song.select do |s|
s.artist =~ /Mary/ & s.year > '1980'
end
It's sort of a cross between working with an Enumerable and working
with SQL, but in pure Ruby and without having to extend core classes.
I would really like to see something like this for DataMapper in the
future.
--
You received this message because you are subscribed to the Google Groups
"DataMapper" 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/datamapper?hl=en.