SQLDatabaseSession

@NotThreadSafe
class SQLDatabaseSession : Closeable(source)

An explicitly owned database session. Operations and transaction state remain bound to this session.

Closing a session rolls back any active transaction before releasing its database reference.

Since

1.1.1

Properties

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun <T> execute(block: SQLDatabase.() -> T): T

Runs block with this session selected for the duration of the call.