diff --git a/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt b/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt index 5270d3c5f..f39599888 100644 --- a/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt @@ -34,21 +34,12 @@ interface BookSourceDao { @Query("select count(*) from book_sources") fun allCount(): Int - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(bookSource: BookSource): Long - @Insert(onConflict = OnConflictStrategy.REPLACE) fun insert(vararg bookSource: BookSource) - @Update - fun update(bookSource: BookSource) - @Update fun update(vararg bookSource: BookSource) - @Delete - fun delete(bookSource: BookSource) - @Delete fun delete(vararg bookSource: BookSource) diff --git a/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt b/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt index a5f76d907..13fa0700e 100644 --- a/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt @@ -29,6 +29,9 @@ interface SearchBookDao { @Query("select * from searchBooks where name = :name and author = :author order by originOrder") fun getByNameAuthor(name: String, author: String): List + @Query("select * from searchBooks where name = :name and author = :author order by originOrder") + fun getByNameAuthorEnable(name: String, author: String): List + @Insert(onConflict = OnConflictStrategy.REPLACE) fun insert(vararg searchBook: SearchBook): List