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
Add new ResultIterable<T> methods for single row results #1511
Conversation
- one() : T - throws if zero or multiple rows returned - findOne() : Optional<T> - throws if multiple rows returned - first() : T - throws if zero rows returned - Deprecate findOnly() in favor of one()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks sweet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great
…values in developer guide
one() : T
- throws if zero or multiple rows returnedfindOne() : Optional<T>
- throws if multiple rows returnedfirst() : T
- throws if zero rows returnedfindOnly()
in favor ofone()
Fixes #1498