mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Modified sql queries used to retrieving downloaded artists and albums
This commit is contained in:
parent
7d6ad5737f
commit
ac584974c6
4 changed files with 15 additions and 20 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue