pull/35/head^2
kunfei 5 years ago
parent 26d040c39b
commit 9dffaf39b4
  1. 3
      app/src/main/java/io/legado/app/data/dao/RssArticleDao.kt

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

Loading…
Cancel
Save