LikeDao

interface LikeDao

Data Access Object (DAO) for the "likes" table in the database.

This interface provides methods to perform operations on the "likes" table.

Functions

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

Deletes a like from the "likes" table.

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

Retrieves all likes from the "likes" table, ordered by name in ascending order.

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

Retrieves a like from the "likes" table by its name.

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

Inserts a new like into the "likes" table. If a like with the same primary key already exists, it will be replaced.

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

Updates an existing like in the "likes" table.