mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
moving another function in Room
This commit is contained in:
@ -14,6 +14,9 @@ interface NotesDao {
|
||||
@Query("SELECT id FROM notes WHERE path = :path")
|
||||
fun getNoteIdWithPath(path: String): Long?
|
||||
|
||||
@Query("SELECT id FROM notes WHERE title = :title COLLATE NOCASE")
|
||||
fun getNoteIdWithTitle(title: String): Long?
|
||||
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
fun insertOrUpdate(note: Note): Long
|
||||
|
||||
|
Reference in New Issue
Block a user