Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
@Dao interface TaskDao {
@Query("select * from task")
fun getAllTasks(): List<Task>
@Query("select * from task where id = :p0")
fun findTaskById(id: Long): Task
@Insert(onConflict = REPLACE)
fun insertTask(task: Task)
@Update(onConflict = REPLACE)
fun updateTask(task: Task)
fun deleteTask(task: Task)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment