mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 09:33:33 +00:00
added db function to retrieve pseudo random elements
This commit is contained in:
parent
8e3456078b
commit
717986ea2c
1 changed files with 2 additions and 1 deletions
|
|
@ -24,7 +24,8 @@ public interface SongDao {
|
|||
@Query("SELECT * FROM song WHERE title LIKE '%' || :title || '%'")
|
||||
LiveData<List<Song>> searchSong(String title);
|
||||
|
||||
@Query("SELECT * FROM song WHERE key IN (:pseudoRandomNumber)")
|
||||
// Da utilizzare in caso si decidesse di migliorare il viewpager nella home
|
||||
@Query("SELECT * FROM song WHERE id IN (:pseudoRandomNumber)")
|
||||
LiveData<List<Song>> getDiscoverySample(List<Integer> pseudoRandomNumber);
|
||||
|
||||
@Query("SELECT * FROM song ORDER BY added DESC LIMIT :number")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue