Transaction

interface Transaction

Represents a database transaction. Used to ensure proper transaction handling and resource cleanup.

Inheritors

Functions

Link copied to clipboard
abstract fun end()

Ends the transaction. If setSuccessful() was called, the transaction will be committed; otherwise it will be rolled back.

Link copied to clipboard
abstract fun setSuccessful()

Sets the transaction as successful. If not called, the transaction will be rolled back when end is called.