jcabi-jdbc icon indicating copy to clipboard operation
jcabi-jdbc copied to clipboard

Better transaction handling

Open andreoss opened this issue 3 years ago • 0 comments

Follow up of the discussion in #100:

Proposal: A special method for doing transactions instead of "START TRANSACTION" & autocommit(false), i.e

new JdbcSession(source)
    .transaction(session -> { ..... any exception here causes rollback ... })
    .commit();

andreoss avatar Apr 26 '21 20:04 andreoss