Modified sql queries used to retrieving downloaded artists and albums
This commit is contained in:
1 parent
7d6ad5737f
commit
ac584974c6
4 files changed
+15
-20
No files matched your search
@@ -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