Created
December 15, 2019 17:16
-
-
Save merttoptas/91a6befa39af3d084acda672797e9ce8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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