Created
November 27, 2017 01:39
-
-
Save larkintuckerllc/7e651d84630b58d9d0a6e53aa5c532a1 to your computer and use it in GitHub Desktop.
Android Room: Beyond the Codelab - 4
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 | |
public interface TodoDao { | |
@Query("SELECT * FROM Todo") | |
LiveData<List<Todo>> findAllTodos(); | |
@Insert(onConflict = REPLACE) | |
void insertTodo(Todo todo); | |
@Delete | |
void deleteTodo(Todo todo); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment