RoomTransaction

Room-based implementation of Transaction.

Constructors

Link copied to clipboard
constructor(database: RoomDatabase)

Functions

Link copied to clipboard
open override fun end()

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

Link copied to clipboard
open override fun setSuccessful()

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