Created
May 19, 2017 08:02
-
-
Save tunitowen/cd32e80db68f83c3e82560c254f2a238 to your computer and use it in GitHub Desktop.
Room-GettingStarted-DAO
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 PersonDao { | |
@Query("SELECT * FROM person") | |
fun getAllPeople(): Flowable<List<Person>> | |
@Insert | |
fun insert(person: Person) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment