On Jul 1, 2007, at 2:38 PM, Erik Allik wrote:
> I'm aiming for something like
>
> Product.all[10..99].sort_by(:name).sort_by(:price).reverse.select
> { |p| ... }
>
> And saving and deleting should be as simple as doing
>
> Product.all << Product.new
>
> and
>
> Product.all.delete(some_product)
Have a look at Erlang's Mnesia: it goes back to the roots of SQL as a
set-based language, and uses list comprehensions as queries.
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---