Removed unused methods from artist repository

This commit is contained in:
CappielloAntonio 2021-04-19 14:53:43 +02:00
parent 0e9ec60195
commit b6a432c50f
3 changed files with 64 additions and 134 deletions

View file

@ -22,18 +22,9 @@ public interface ArtistDao {
@Query("SELECT * FROM artist WHERE name LIKE '%' || :name || '%'")
LiveData<List<Artist>> searchArtist(String name);
@Query("SELECT EXISTS(SELECT * FROM artist WHERE id = :id)")
boolean exist(String id);
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(Artist artist);
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAll(List<Artist> artists);
@Delete
void delete(Artist artist);
@Query("SELECT name FROM artist WHERE name LIKE :query || '%' OR name like '% ' || :query || '%' GROUP BY name LIMIT :number")
List<String> searchSuggestions(String query, int number);