CategoryDao

interface CategoryDao

Functions

Link copied to clipboard
abstract fun getCategoriesForPerson(personId: Long): Flow<List<CategoryEntity>>
Link copied to clipboard
abstract suspend fun getCategoryById(id: Long): CategoryEntity?
Link copied to clipboard
abstract suspend fun getTopCategoryForPerson(personId: Long): CategoryEntity?
Link copied to clipboard
abstract suspend fun insertCategory(category: CategoryEntity): Long
Link copied to clipboard
abstract suspend fun resetThresholdCount(categoryId: Long)
Link copied to clipboard
abstract suspend fun updateCategory(category: CategoryEntity)