forked from github/wulkanowy-mirror
Update row in mailboxes table on primary key conflict (#1954)
This commit is contained in:
parent
535206056d
commit
eed091aad2
@ -2,11 +2,12 @@ package io.github.wulkanowy.data.db.dao
|
||||
|
||||
import androidx.room.Delete
|
||||
import androidx.room.Insert
|
||||
import androidx.room.OnConflictStrategy
|
||||
import androidx.room.Update
|
||||
|
||||
interface BaseDao<T> {
|
||||
|
||||
@Insert
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
suspend fun insertAll(items: List<T>): List<Long>
|
||||
|
||||
@Update
|
||||
|
Loading…
x
Reference in New Issue
Block a user