Skip to content

Instantly share code, notes, and snippets.

@shakalaca
Created August 6, 2020 15:53
Show Gist options
  • Save shakalaca/26c42fb8f570cb0cb76b79d426a2edbc to your computer and use it in GitHub Desktop.
Save shakalaca/26c42fb8f570cb0cb76b79d426a2edbc to your computer and use it in GitHub Desktop.
interface RepoDao {
@Query("SELECT * FROM repos WHERE " +
"name LIKE :queryString OR description LIKE :queryString " +
"ORDER BY stars DESC, name ASC")
fun reposByName(queryString: String): PagingSource<Int, Repo>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment