with Transaction
fun <T : Any> withTransaction(transactionBody: () -> T, options: TransactionOptions = TransactionOptions.builder().build()): T
Execute the given function within a transaction.
Return
the return value of the transaction body
Parameters
T
the return type of the transaction body
transaction Body
the body of the transaction
options
the transaction options