On 25.11.2008, at 4:37, Chris Van Pelt wrote:

>
> I'm not seeing a way to do this with postgres or mysql outside of
> talking directly to the adapter.  Postgres uses random() and MySQL
> uses RAND.  Maybe :rand should become a query operator?
>
> Peace

I think, there should be a layer of adapter-independent functions:

DMF = DataMapper::Functions

Person.all(:order => [ DMF::Random[] ])
Person.all(DMF::LowerCase[:name] => "oleg")

random() is not an operator anyway.



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to