pull/32/head
kunfei 5 years ago
parent f3922f0e32
commit 2cfdb364b6
  1. 4
      app/src/main/java/io/legado/app/data/dao/BookDao.kt

@ -36,10 +36,10 @@ interface BookDao {
@get:Query("SELECT COUNT(*) FROM books")
val allBookCount: Int
@Query("SELECT * FROM books ORDER BY durChapterTime DESC limit 0,10")
@Query("SELECT * FROM books ORDER BY durChapterTime DESC limit 0,20")
fun recentRead(): DataSource.Factory<Int, Book>
@Query("SELECT * FROM books ORDER BY durChapterTime DESC limit 0,10")
@Query("SELECT * FROM books ORDER BY durChapterTime DESC limit 0,20")
fun getRecentRead(): List<Book>
@Insert(onConflict = OnConflictStrategy.REPLACE)

Loading…
Cancel
Save