Created
March 3, 2021 15:40
-
-
Save robertlevonyan/c42eb1f679628cae64129151d19d7ba6 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 MovieDao { | |
@Insert(onConflict = OnConflictStrategy.REPLACE) | |
suspend fun saveMovies(vararg movies: RoomMovie) | |
@Query("SELECT * FROM RoomMovie") | |
fun getMovies(): Flow<List<RoomMovie>> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment