DatabaseExposedTransactionProvider
class DatabaseExposedTransactionProvider(val database: Database, val transactionIsolation: Int? = Connection.TRANSACTION_READ_UNCOMMITTED) : StatementPreparationExposedTransactionProvider(source)
A StatementPreparationExposedTransactionProvider that creates a new transaction for each call using an Exposed Database.
This is the traditional approach where each SQL preparation call creates its own transaction.
Parameters
database
the Exposed Database to use for creating transactions
transactionIsolation
the transaction isolation level, defaults to Connection.TRANSACTION_READ_UNCOMMITTED
Constructors
Link copied to clipboard
constructor(database: Database, transactionIsolation: Int? = Connection.TRANSACTION_READ_UNCOMMITTED)
Functions
Link copied to clipboard
Executes the given block within an Exposed transaction context suitable for SQL statement preparation.
Link copied to clipboard
open override fun <T> withExplicitOnlyStatementPreparationExposedTransaction(block: Transaction.() -> T): T
Executes the given block within an Exposed transaction context suitable for SQL statement preparation, without storing the transaction in ThreadLocal or coroutine context.