|
|
@ -1,14 +1,15 @@ |
|
|
|
package io.legado.app.data.dao |
|
|
|
package io.legado.app.data.dao |
|
|
|
|
|
|
|
|
|
|
|
import androidx.lifecycle.LiveData |
|
|
|
import androidx.lifecycle.LiveData |
|
|
|
|
|
|
|
import androidx.room.Dao |
|
|
|
import androidx.room.Insert |
|
|
|
import androidx.room.Insert |
|
|
|
import androidx.room.OnConflictStrategy |
|
|
|
import androidx.room.OnConflictStrategy |
|
|
|
import androidx.room.Query |
|
|
|
import androidx.room.Query |
|
|
|
import io.legado.app.data.entities.RssArticle |
|
|
|
import io.legado.app.data.entities.RssArticle |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Dao |
|
|
|
interface RssArticleDao { |
|
|
|
interface RssArticleDao { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Query("select * from rssArticles where origin = :origin order by time desc") |
|
|
|
@Query("select * from rssArticles where origin = :origin order by time desc") |
|
|
|
fun liveByOrigin(origin: String): LiveData<List<RssArticle>> |
|
|
|
fun liveByOrigin(origin: String): LiveData<List<RssArticle>> |
|
|
|
|
|
|
|
|
|
|
|