docs/api/exposed-r2dbc/org.jetbrains.exposed.v1.r2dbc.statements.api/-r2dbc-exposed-connection/index.html
interface R2dbcExposedConnection<OriginalConnection : Any>
Represents a wrapper for a database connection.
Members
Link copied to clipboard
abstract val connection: OriginalConnection
The underlying database connection object contained by this wrapper.
Link copied to clipboard
abstract suspend fun close()
Closes the connection and releases any of its database and/or driver resources.
Link copied to clipboard
abstract suspend fun commit()
Saves all changes since the last commit or rollback operation.
Link copied to clipboard
abstract suspend fun executeInBatch(sqls: List<String>)
Sends a collection of SQL strings to the database for execution as a batch statement.
Link copied to clipboard
abstract suspend fun getAutoCommit(): Boolean
Retrieves whether the connection is in auto-commit mode.
Link copied to clipboard
abstract suspend fun getCatalog(): String
Retrieves the name of the connection's catalog.
Link copied to clipboard
abstract suspend fun getReadOnly(): Boolean
Retrieves whether the connection is in read-only mode.
Link copied to clipboard
abstract suspend fun getSchema(): String
Retrieves the name of the connection's schema.
Link copied to clipboard
abstract suspend fun getTransactionIsolation(): IsolationLevel
Retrieves the transaction isolation level of the connection.
Link copied to clipboard
abstract suspend fun isClosed(): Boolean
Whether the connection has been closed.
Link copied to clipboard
abstract suspend fun <T> metadata(body: suspend R2dbcExposedDatabaseMetadata.() -> T): T
Calls the specified function body with an R2dbcExposedDatabaseMetadata implementation as its receiver and returns the retrieved metadata from the database as a result.
Link copied to clipboard
abstract suspend fun prepareStatement(sql: String, columns: Array<String>): R2dbcPreparedStatementImpl
abstract suspend fun prepareStatement(sql: String, returnKeys: Boolean): R2dbcPreparedStatementImpl
Returns a precompiled sql statement stored as an R2dbcPreparedStatementImpl implementation.
Link copied to clipboard
abstract suspend fun releaseSavepoint(savepoint: ExposedSavepoint)
Removes the specified savepoint.
Link copied to clipboard
abstract suspend fun rollback()
Reverts all changes since the last commit or rollback operation.
abstract suspend fun rollback(savepoint: ExposedSavepoint)
Reverts all changes since the specified savepoint was set.
Link copied to clipboard
abstract suspend fun setAutoCommit(value: Boolean)
Sets whether the connection is in auto-commit mode or not.
Link copied to clipboard
abstract suspend fun setCatalog(value: String)
Sets the name of the connection's catalog.
Link copied to clipboard
abstract suspend fun setReadOnly(value: Boolean)
Set whether the connection is in read-only mode.
Link copied to clipboard
abstract suspend fun setSavepoint(name: String): ExposedSavepoint
Sets and returns a new savepoint with the specified name.
Link copied to clipboard
abstract fun setTransactionDefinition(definition: TransactionDefinition?)
Sets specific transaction properties to be used together when starting a transaction explicitly. Passing a null argument will force beginTransaction() to be invoked without any transaction definition.
Link copied to clipboard
abstract suspend fun setTransactionIsolation(value: IsolationLevel)
Sets the transaction isolation level of the connection.
Generated by Dokka © 2026 Copyright