docs/api/exposed-jdbc/org.jetbrains.exposed.v1.jdbc.statements.api/-exposed-connection/index.html
interface ExposedConnection<OriginalConnection : Any>
Represents a wrapper for a database connection.
Members
Link copied to clipboard
abstract var autoCommit: Boolean
Whether the connection is in auto-commit mode.
Link copied to clipboard
The name of the connection's catalog.
Link copied to clipboard
abstract val connection: OriginalConnection
The underlying database connection object contained by this wrapper.
Link copied to clipboard
abstract val isClosed: Boolean
Whether the connection has been closed.
Link copied to clipboard
abstract var readOnly: Boolean
Whether the connection is in read-only mode.
Link copied to clipboard
The name of the connection's schema.
Link copied to clipboard
abstract var transactionIsolation: Int
The transaction isolation level of the connection.
Link copied to clipboard
abstract fun close()
Closes the connection and releases any of its database and/or driver resources.
Link copied to clipboard
abstract fun commit()
Saves all changes since the last commit or rollback operation.
Link copied to clipboard
abstract 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 fun <T> metadata(body: JdbcExposedDatabaseMetadata.() -> T): T
Calls the specified function body with a JdbcExposedDatabaseMetadata implementation as its receiver and returns the retrieved metadata as a result.
Link copied to clipboard
abstract fun prepareStatement(sql: String, columns: Array<String>): JdbcPreparedStatementApi
abstract fun prepareStatement(sql: String, returnKeys: Boolean): JdbcPreparedStatementApi
Returns a precompiled sql statement stored as a JdbcPreparedStatementApi implementation.
Link copied to clipboard
abstract fun releaseSavepoint(savepoint: ExposedSavepoint)
Removes the specified savepoint.
Link copied to clipboard
abstract fun rollback()
Reverts all changes since the last commit or rollback operation.
abstract fun rollback(savepoint: ExposedSavepoint)
Reverts all changes since the specified savepoint was set.
Link copied to clipboard
abstract fun setSavepoint(name: String): ExposedSavepoint
Sets and returns a new savepoint with the specified name.
Generated by Dokka © 2026 Copyright