Created
August 28, 2017 14:13
-
-
Save kozmi55/59100ce47be516953d87c38e8faf17ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Dao | |
interface UserDao { | |
@Query("SELECT * FROM user ORDER BY reputation DESC LIMIT (:arg0 - 1) * 30, 30") | |
fun getUsers(page: Int) : List<User> | |
@Insert(onConflict = OnConflictStrategy.REPLACE) | |
fun insertAll(users: List<User>) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment