insertNote

abstract suspend fun insertNote(note: Note)

Inserts a new note into the 'notes' table. If a note with the same primary key already exists, it will be replaced due to onConflict = OnConflictStrategy.REPLACE. This is a suspend function, meaning it should be called from a coroutine or another suspend function to perform the operation asynchronously.

Parameters

note

The Note object to be inserted.