Created
November 19, 2019 05:48
-
-
Save markchristopherng/955a07b665bfcdb6afa127a808c70050 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
@Dao | |
interface PayBillDao { | |
@Query("SELECT * from saved_bills ORDER BY biller_name") | |
suspend fun getAll(): List<SavedBill> | |
@Insert(onConflict = OnConflictStrategy.REPLACE) | |
suspend fun insert(savedBill: SavedBill) | |
@Query("DELETE from saved_bills where _id = :id") | |
suspend fun delete(id: Int) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment