|
|
@ -34,6 +34,7 @@ import kotlinx.coroutines.flow.Flow
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Dao
|
|
|
|
@Dao
|
|
|
|
interface NewsResourceDao {
|
|
|
|
interface NewsResourceDao {
|
|
|
|
|
|
|
|
@Transaction
|
|
|
|
@Query(
|
|
|
|
@Query(
|
|
|
|
value = """
|
|
|
|
value = """
|
|
|
|
SELECT * FROM news_resources
|
|
|
|
SELECT * FROM news_resources
|
|
|
@ -42,6 +43,7 @@ interface NewsResourceDao {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
fun getNewsResourcesStream(): Flow<List<PopulatedNewsResource>>
|
|
|
|
fun getNewsResourcesStream(): Flow<List<PopulatedNewsResource>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Transaction
|
|
|
|
@Query(
|
|
|
|
@Query(
|
|
|
|
value = """
|
|
|
|
value = """
|
|
|
|
SELECT * FROM news_resources
|
|
|
|
SELECT * FROM news_resources
|
|
|
|