Created
May 18, 2018 07:42
-
-
Save vprabhu/04acbc4675b17f5d556ed7dae3d3c8d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Dao | |
interface TodoTaskDao { | |
@Query("select * from todotasks order by id") | |
fun getallTasks(): List<TodoTask> | |
@Insert | |
fun insertTodoTask(todoTask: TodoTask) | |
@Update(onConflict = OnConflictStrategy.REPLACE) | |
fun updateTodoTask(todoTask: TodoTask) | |
@Delete | |
fun deleteTodoTask() | |
@Query("Select * from todotasks where id = :id") | |
fun getTaskbyId(id: Int): List<TodoTask> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment