FirmwareReleaseDao

Functions

Link copied to clipboard
abstract suspend fun count(): Int
Link copied to clipboard
abstract suspend fun deleteAll()
Link copied to clipboard
abstract suspend fun deleteByType(releaseType: FirmwareReleaseType)
Link copied to clipboard
abstract suspend fun getAllReleases(): List<FirmwareReleaseEntity>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun insert(firmwareReleaseEntity: FirmwareReleaseEntity)
Link copied to clipboard
open suspend fun replaceByTypes(types: List<FirmwareReleaseType>, releases: List<FirmwareReleaseEntity>)

Replaces all rows of the given types with releases in one transaction, so releases removed or reclassified upstream are pruned and a crash mid-refresh can't leave the table half-written. Other types are untouched.