We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This will allow to omit calls to fetch() when used in foreach loops:
fetch()
for (Record record : DSL.using(connection) .select() .from(AUTHOR) .fetch()) { System.out.println(record); }
for (Record record : DSL.using(connection) .select() .from(AUTHOR)) { System.out.println(record); }
We must call fetch(), not fetchLazy(), as there is no way of closing the Cursor and freeing resources in the case of an exception
fetchLazy()
Cursor
The text was updated successfully, but these errors were encountered:
[#3638] Let ResultQuery<R> extend Iterable<R>
63d761a
3147732
[#3638] Don't let ResultQuery.iterable() return a Cursor - a resource…
82333c2
… that might not be closed in the exception case...
[jOOQ#3638] Don't let ResultQuery.iterable() return a Cursor - a reso…
64d4d05
…urce that might not be closed in the exception case...
No branches or pull requests
This will allow to omit calls to
fetch()
when used in foreach loops:"normal call"
alternative call
We must call
fetch()
, notfetchLazy()
, as there is no way of closing theCursor
and freeing resources in the case of an exceptionThe text was updated successfully, but these errors were encountered: