Transaction

fun interface Transaction<T>

A functional interface representing a single database transation.

Parameters

T

the result type. Use Unit if the transaction does not return a result.

Functions

Link copied to clipboard
abstract fun execute(connection: Connection): T

Executes the transaction on the given connection. It is not necessary to implement commit or rollback logic yourself.