EventFirmwareEditionDao

Functions

Link copied to clipboard
abstract suspend fun count(): Int
Link copied to clipboard
abstract suspend fun deleteNotIn(keep: List<String>)

Deletes rows whose edition is not in keep. WARNING: NOT IN () is always true in SQLite, so an empty keep deletes every row — call sites must guard against passing an empty list (see EventFirmwareEditionLocalDataSource.deleteNotIn, which no-ops on empty).

Link copied to clipboard
abstract suspend fun getByEdition(edition: String): EventFirmwareEditionEntity?
Link copied to clipboard
abstract fun observeByEdition(edition: String): Flow<EventFirmwareEditionEntity?>

Observes edition, re-emitting whenever the table changes. This is what lets a background manifest refresh reach already-visible event branding: a one-shot read resolves once when the connection is established, so metadata that lands afterwards would sit in the table unseen until the user reconnected.

Link copied to clipboard
abstract suspend fun upsertAll(editions: List<EventFirmwareEditionEntity>)