newTransaction

abstract fun newTransaction(isolation: Int = defaultIsolationLevel, readOnly: Boolean = defaultReadOnly, outerTransaction: Transaction? = null): Transaction

Returns a Transaction instance.

The returned value may be a new transaction, or it may return the outerTransaction if called from within an existing transaction with the database not configured to useNestedTransactions.