-
Notifications
You must be signed in to change notification settings - Fork 34
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
Rows counter on Insert.Builder #33
Comments
Could you tell us more about why this method would be useful? Why isn't it possible to maintain a separate counter and increment it each time a row is inserted? |
We currently maintain a separate counter but the code is not pretty. See by yourself:
Thus a getRowCount() method on |
OK. That doesn't hurt. I'll do that soon (probably Friday). |
@arey I released version 1.4.0, containing the new method. It should appear on Maven central in the next hours. |
We are using DbSetup to initialize a H2 database with large data set.
For each new use case of our integration tests, we have to add new rows.
Our requirement is to know how much rows we have inserted on some tables. We need this count number for assertion.
A getRowsCount() method on the Insert.Builder nested class would be welcome.
What do you think about this improvement?
The text was updated successfully, but these errors were encountered: