Skip to content

Instantly share code, notes, and snippets.

@julioz
Created June 30, 2020 16:02
Show Gist options
  • Save julioz/b4fd2d9b906d8210270d0441e5b9a449 to your computer and use it in GitHub Desktop.
Save julioz/b4fd2d9b906d8210270d0441e5b9a449 to your computer and use it in GitHub Desktop.
OnConflictStrategy replace for SQLite resolution
@Dao
interface TrackDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insert(tracks: List<TrackEntity>)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment