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

Batch ops should give access to modified row count #2069

Merged
merged 1 commit into from Jul 19, 2022

Conversation

hgschmie
Copy link
Contributor

Add executePreparedBatch to supersede executeAndReturnGeneratedKeys,
which allows access to the modified row count after execution. Also add
a convenience method to the iterable that allows splitting up the list
of results into per-batch sets.

Addresses the problems described in #2060

Based on a proposal by @doppelrittberger (Markus Ritter)

Add `executePreparedBatch` to supersede `executeAndReturnGeneratedKeys`,
which allows access to the modified row count after execution. Also add
a convenience method to the iterable that allows splitting up the list
of results into per-batch sets.

Addresses the problems described in jdbi#2060

Based on a proposal by @doppelrittberger (Markus Ritter)
@sonarcloud
Copy link

sonarcloud bot commented Jul 19, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@hgschmie hgschmie merged commit ef3b9eb into jdbi:master Jul 19, 2022
@hgschmie hgschmie deleted the issue-2060 branch July 19, 2022 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant