Created
July 26, 2018 20:51
-
-
Save lomza/474efc1ef22eac29fd5515c32a8c8dc0 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 DayLookDbDao { | |
@Query("SELECT * FROM DAY_LOOK WHERE DATE = :dateToSearch LIMIT 1") | |
fun getDayLookByDate(dateToSearch: String?): Maybe<DayLookEntity> | |
@Insert(onConflict = OnConflictStrategy.REPLACE) | |
fun insert(dayLook: DayLookEntity) | |
@Query("SELECT * FROM DAY_LOOK") | |
fun getAllDayLooks(): Flowable<List<DayLookEntity>> | |
@Query("DELETE FROM DAY_LOOK") | |
fun deleteAll() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment