TransactionManager
class TransactionManager(val db: Database, setupTxConnection: (ExposedConnection<*>, JdbcTransactionInterface) -> Unit? = null) : JdbcTransactionManager
JdbcTransactionManager implementation registered to the provided database value db.
setupTxConnection can be provided to override the default configuration of transaction settings when a connection is retrieved from the database.
Constructors
Link copied to clipboard
constructor(db: Database, setupTxConnection: (ExposedConnection<*>, JdbcTransactionInterface) -> Unit? = null)
Properties
Functions
Link copied to clipboard
Returns the current JDBC transaction from the thread-local stack for this manager's database, or null if none exists.
Link copied to clipboard
open override fun newTransaction(isolation: Int, readOnly: Boolean, outerTransaction: JdbcTransaction?): JdbcTransaction
Returns a JdbcTransaction instance.