Skip to content

Instantly share code, notes, and snippets.

@tunitowen
Created May 19, 2017 08:02
Show Gist options
  • Save tunitowen/cd32e80db68f83c3e82560c254f2a238 to your computer and use it in GitHub Desktop.
Save tunitowen/cd32e80db68f83c3e82560c254f2a238 to your computer and use it in GitHub Desktop.
Room-GettingStarted-DAO
@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