Hi guys, :wave: I was wondering if it is possible ...
# android-architecture
n
Hi guys, 👋 I was wondering if it is possible to execute a room db transaction in the a usecase. Is it a good idea, I was thinking of creating a dao that looks like this
Copy code
@Dao
interface EntityDao {
    @Transaction
    fun transaction(block: () -> Unit) {
        block()
    }
}
And expose this to the repository layer then the usecase.