Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
class ThreadLocalTransactionManager( db: Database, setupTxConnection: (ExposedConnection<*>, TransactionInterface) -> Unit? = null) : TransactionManagerApi
Link copied to clipboard
class TransactionManager( db: Database, setupTxConnection: (ExposedConnection<*>, JdbcTransactionInterface) -> Unit? = null) : TransactionManagerApi
TransactionManager implementation registered to the provided database value db.
Properties
Link copied to clipboard
The TransactionManager instance that is associated with this Database.
Functions
Link copied to clipboard
fun <T> inTopLevelTransaction( transactionIsolation: Int, readOnly: Boolean = false, db: Database? = null, outerTransaction: JdbcTransaction? = null, statement: JdbcTransaction.() -> T): T
Creates a transaction with the specified transactionIsolation and readOnly settings, then calls the statement block with this transaction as its receiver and returns the result.
Link copied to clipboard
Creates a transaction then calls the statement block with this transaction as its receiver and returns the result.
fun <T> transaction(transactionIsolation: Int, readOnly: Boolean = false, db: Database? = null, statement: JdbcTransaction.() -> T): T
Creates a transaction with the specified transactionIsolation and readOnly settings, then calls the statement block with this transaction as its receiver and returns the result.