@Query("select * from book_sources order by customOrder asc")
@Query("select * from book_sources order by customOrder asc")
funliveDataAll():LiveData<List<BookSource>>
funliveDataAll():LiveData<List<BookSource>>
@Query("select * from book_sources where bookSourceName like :searchKey or bookSourceGroup like :searchKey or bookSourceUrl like :searchKey or bookSourceComment like :searchKey order by customOrder asc")
@Query("select * from book_sources where bookSourceGroup like :searchKey order by customOrder asc")
@Query("select * from book_sources where bookSourceGroup like :searchKey order by customOrder asc")
@ -25,10 +34,26 @@ interface BookSourceDao {
@Query("select * from book_sources where enabledExplore = 1 and trim(exploreUrl) <> '' order by customOrder asc")
@Query("select * from book_sources where enabledExplore = 1 and trim(exploreUrl) <> '' order by customOrder asc")
funliveExplore():LiveData<List<BookSource>>
funliveExplore():LiveData<List<BookSource>>
@Query("select * from book_sources where enabledExplore = 1 and trim(exploreUrl) <> '' and (bookSourceGroup like :key or bookSourceName like :key) order by customOrder asc")