Skip to content

Instantly share code, notes, and snippets.

@bltuckerdevblog
Created May 27, 2018 17:05
Show Gist options
  • Save bltuckerdevblog/76e2e64c64839e228a84b86885737f32 to your computer and use it in GitHub Desktop.
Save bltuckerdevblog/76e2e64c64839e228a84b86885737f32 to your computer and use it in GitHub Desktop.
@Dao
interface TeamDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertTeam(team: Team)
@Query("SELECT * FROM teams order by name ASC")
fun loadTeamsByName() : DataSource.Factory<Integer, Team>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment