1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-09-20 02:09:09 -05:00

Update row in mailboxes table on primary key conflict (#1954)

This commit is contained in:
Mikołaj Pich 2022-08-30 09:07:24 +02:00 committed by GitHub
parent 535206056d
commit eed091aad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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