transaction With Result
fun <T : Any, R> KeyValueStorage<T>.transactionWithResult(body: SqkonTransactionScope.() -> R): R(source)
Run body in a database transaction and return its value. Calling SqkonTransactionScope.rollback aborts the transaction and throws SqkonRollbackException (there is no value to return).