mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Removed unused methods from artist repository
This commit is contained in:
parent
0e9ec60195
commit
b6a432c50f
3 changed files with 64 additions and 134 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue