tx

fun tx(block: Connection.() -> Unit)

Get a Connection within a transaction. This will just commit for you and rollback in a catch block.