androidx.room:room-ktx
Official Description: Android Room Kotlin Extensions
CommonsWare’s Notes
This artifact contains Kotlin code specific to Room.
The biggest thing is that this artifact allows you to mark DAO functions
as suspend
or have them return Flow
, to blend in with the rest
of your coroutines-based code.
This also contains the withTransaction()
extension function for RoomDatabase
,
which executes a supplied lambda expression in a transaction, with suspend
semantics.
See the room-common
page for general Room resources.
Documentation
Versions
- Latest Stable: 2.2.6
- Latest Release Candidate: 2.2.0-rc01
- Latest Beta: 2.3.0-beta02
- Latest Alpha: 2.3.0-alpha04