transaction

abstract fun <T> transaction(statement: SessionScope.() -> T): T

Executes given statement in the scope of transaction with default transaction isolation level.

Parameters

statement

to be executed in the scope of this transaction.