CantEatDao

interface CantEatDao

Data Access Object for the CantEat table. This class provides methods for interacting with the CantEat table in the database.

Functions

Link copied to clipboard
abstract suspend fun delete(item: dbCantEat)

Delete a CantEat from the database.

Link copied to clipboard
abstract fun getAllItems(): Flow<List<dbCantEat>>

Get all CantEats from the database. The CantEats are ordered by their names in ascending order.

Link copied to clipboard
abstract fun getItem(name: String): Flow<dbCantEat>

Get a CantEat from the database by its name.

Link copied to clipboard
abstract suspend fun insert(item: dbCantEat)

Insert a new CantEat into the database. If a CantEat with the same name already exists, it will be replaced.

Link copied to clipboard
abstract suspend fun update(item: dbCantEat)

Update an existing CantEat in the database.