Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Dao
public interface StarWarsMovieDao {
@Query("select * from StarWarsMovie") LiveData<List<StarWarsMovie>> loadMovies();
@Query("DELETE FROM StarWarsMovie") void deleteAll();
@Insert(onConflict = REPLACE) void insertMovie(StarWarsMovie starWarsMovie);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment