Created
June 20, 2017 09:48
-
-
Save deskid/ea60cd28793f537b1b9ee40333a6aa66 to your computer and use it in GitHub Desktop.
android-room-select-query-with-like
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
@Query("SELECT * FROM hamster WHERE name LIKE '%' || :arg0 || '%'") | |
fun loadHamsters(search: String?): Flowable<List<Hamster>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Djt Me Hay Vai Lol