Created
May 27, 2018 17:05
-
-
Save bltuckerdevblog/76e2e64c64839e228a84b86885737f32 to your computer and use it in GitHub Desktop.
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 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