Last active
June 13, 2020 15:51
-
-
Save raulh82vlc/53132e3c2e9b5b493d95456425879c7a to your computer and use it in GitHub Desktop.
Tweet DAO Data source returning a suspend function
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
// Tweet table, Database DAO's query | |
@Query("SELECT * | |
FROM ${Tweet.TABLE_NAME} | |
WHERE tweet_id IN(:tweetIds) ORDER BY created_at DESC") | |
suspend fun retrieveAllTweetsForTweetsIds(tweetIds: List<String>): List<Tweet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment