jcabi-jdbc
jcabi-jdbc copied to clipboard
Better transaction handling
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();