TransactionDefinition

data class TransactionDefinition(val propagation: TransactionPropagation = TransactionPropagation.REQUIRED, val isolation: TransactionIsolationLevel? = null, val readOnly: Boolean = false, val statementTimeout: Duration? = null, val transactionTimeout: Duration? = null)

How a transaction should be run, as a SessionProvider is handed it.

Constructors

Link copied to clipboard
constructor(propagation: TransactionPropagation = TransactionPropagation.REQUIRED, isolation: TransactionIsolationLevel? = null, readOnly: Boolean = false, statementTimeout: Duration? = null, transactionTimeout: Duration? = null)

Properties

Link copied to clipboard

null for the server's level. Applied only where this starts a transaction, as is readOnly.

Link copied to clipboard
Link copied to clipboard

Whether the transaction refuses writes.

Link copied to clipboard

Aborts any single statement running longer than this, as SET LOCAL statement_timeout. null leaves the server's setting.

Link copied to clipboard

Aborts the transaction once it has been open longer than this, as SET LOCAL transaction_timeout. null leaves the server's setting.