RecordDao

interface RecordDao

Data Access Object of RecordEntity

Functions

Link copied to clipboard
abstract suspend fun cleanSynchronizedRecordsOlderThen(localDateTime: LocalDateTime)
Link copied to clipboard
abstract suspend fun countAll(): Long
Link copied to clipboard
abstract suspend fun countAllGroupedByLinkId(): Map<Long, Long>
Link copied to clipboard
abstract suspend fun countSynchronized(): Long
Link copied to clipboard
abstract suspend fun countSynchronizedGroupedByLinkId(): Map<Long, Long>
Link copied to clipboard
abstract suspend fun delete(recordEntity: RecordEntity)
Link copied to clipboard
abstract suspend fun getNotSynchronized(): List<RecordEntity>
Link copied to clipboard
abstract suspend fun getPeriodicalRecordsByLinkIdNotOlderThen(deviceCharacteristicLinkId: Long, localDateTime: LocalDateTime, secondsInterval: Long): List<RecordEntity>
Link copied to clipboard
abstract suspend fun insert(recordEntity: RecordEntity): Long
Link copied to clipboard
abstract suspend fun update(recordEntity: RecordEntity)