Created
August 9, 2018 16:54
-
-
Save anandwana001/bdf4d08a07410c9825da27325fe26fdd 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 HabitDao { | |
@Insert | |
fun insert(habit: Habits) | |
@Query("DELETE FROM habitClass") | |
fun deleteAll() | |
@Query("SELECT * FROM habitClass ORDER BY habit ASC" ) | |
fun getAllHabits() : List<Habits> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment