Skip to content

Instantly share code, notes, and snippets.

@merttoptas
Created December 15, 2019 17:16
Show Gist options
  • Save merttoptas/91a6befa39af3d084acda672797e9ce8 to your computer and use it in GitHub Desktop.
Save merttoptas/91a6befa39af3d084acda672797e9ce8 to your computer and use it in GitHub Desktop.
@Dao
interface NoteDao {
@Query("SELECT * FROM note_table")
fun getAllNotes(): List<Note>
@Insert
fun insertAll(vararg note: Note)
@Query("DELETE from note_table where noteId = :noteId")
fun deleteById(vararg noteId :Int) :Int
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment