Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orderBy with reverse order #36

Closed
lucj opened this issue Aug 8, 2012 · 1 comment
Closed

orderBy with reverse order #36

lucj opened this issue Aug 8, 2012 · 1 comment

Comments

@lucj
Copy link

lucj commented Aug 8, 2012

Hello,

I need to get the last value inserted in my table. I saw node-persist provides a "first" method, but no "last" neither "reverse" option in the "OrderBy" method. I could use the sql request but it will not be compatible with Postgres and Oracle in this case. Is that something planned or do you have another solution ?

Thanks for your help,
Luc

joeferner added a commit that referenced this issue Aug 9, 2012
Added support for last. Should Fix issue #36
@joeferner
Copy link
Owner

We've added last as well as updating the readme for the orderBy clause direction. The last function has not been published to npm but the orderBy is in the current version it just wasn't documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants