org.komapper.tx.context.r2dbc.R2dbcTransactionContext.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of komapper-tx-context-r2dbc Show documentation
Show all versions of komapper-tx-context-r2dbc Show documentation
Komapper Transaction Context for R2DBC
The newest version!
package org.komapper.tx.context.r2dbc
import org.komapper.tx.r2dbc.R2dbcTransaction
interface R2dbcTransactionContext {
val transaction: R2dbcTransaction?
}
private class DefaultR2dbcTransactionContext(
override val transaction: R2dbcTransaction,
) : R2dbcTransactionContext
object EmptyR2dbcTransactionContext : R2dbcTransactionContext {
override val transaction: R2dbcTransaction? = null
}
internal fun R2dbcTransactionContext(transaction: R2dbcTransaction): R2dbcTransactionContext {
return DefaultR2dbcTransactionContext(transaction)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy