mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-01-31 22:53:37 +00:00
Modified sql queries used to retrieving downloaded artists and albums
This commit is contained in:
@@ -15,6 +15,12 @@ public interface DownloadDao {
|
||||
@Query("SELECT * FROM download WHERE server=:server")
|
||||
LiveData<List<Download>> getAll(String server);
|
||||
|
||||
@Query("SELECT * FROM download WHERE server=:server GROUP BY artistName LIMIT :size")
|
||||
LiveData<List<Download>> getSampleArtist(int size, String server);
|
||||
|
||||
@Query("SELECT * FROM download WHERE server=:server GROUP BY albumName LIMIT :size")
|
||||
LiveData<List<Download>> getSampleAlbum(int size, String server);
|
||||
|
||||
@Query("SELECT * FROM download WHERE server=:server LIMIT :size")
|
||||
LiveData<List<Download>> getSample(int size, String server);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user