Jooq batch insert/delete returning number of rows affected?

Viewed 226

I am trying to batch insert and batch delete a large list of objects using JOOQ and Postgres, and get the number of rows inserted/deleted. I see there are insert(Collection<P> objects) and delete(Collection<P> objects) provided in JOOQ, however they don't return anything. From searching online I see there's also batchStore that might return the number of inserted rows, which I am going to try. But what about delete?

Thanks!

1 Answers
Related