Last active
June 17, 2019 17:42
-
-
Save DanishAmjad12/9988a705feb79615659062c2283dece9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package com.roomdatabase | |
import androidx.room.Dao | |
import androidx.room.Insert | |
import androidx.room.Query | |
@Dao | |
interface BookDAO | |
{ | |
@Insert | |
fun saveBooks(book: BookEntity) | |
@Query(value = "Select * from BookEntity") | |
fun getAllBooks() : List<BookEntity> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment