GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
It would be awesome if arel supported least and greatest.
Here's the documentation I've found for postgres and mysql.
I'd be up for trying to write a pull-request, any hints on where to start? I'm guessing that I'd need to make a new node in lib/arel/nodes as a subclass of Function or at the bottom of lib/arel/nodes/function with Sum, Max, Min, etc ...
ARel already has a NamedFunction node that can be used for any functions like this -- is it not working for you?
Sorry for the late reply. I guess I could just use the NamedFunction. It's more of a convenience thing than anything else.
@cyrusstoller Does this issue need to remain open?
Not really. Thanks for checking in.