Created insertOrUpdate fun for many notes

This commit is contained in:
merkost 2023-07-07 23:15:58 +10:00
parent 7b9c05f32d
commit a305a2b485

View File

@ -23,6 +23,9 @@ interface NotesDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertOrUpdate(note: Note): Long
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertOrUpdate(notes: List<Note>): List<Long>
@Delete
fun deleteNote(note: Note)
}