@Query("select * from book_sources where enabledExplore = 1 and trim(exploreUrl) <> '' and (bookSourceGroup like :key or bookSourceName like :key) order by customOrder asc")
@Query("select * from book_sources where enabledExplore = 1 and trim(exploreUrl) <> '' and (bookSourceGroup like :key or bookSourceName like :key) order by customOrder asc")
@Query("select bookSourceGroup from book_sources where trim(bookSourceGroup) <> ''")
@Query("select bookSourceGroup from book_sources where trim(bookSourceGroup) <> ''")
funliveGroup():LiveData<List<String>>
funliveGroup():LiveData<List<String>>
@ -36,7 +39,7 @@ interface BookSourceDao {
funliveGroupEnabled():LiveData<List<String>>
funliveGroupEnabled():LiveData<List<String>>
@Query("select bookSourceGroup from book_sources where enabledExplore = 1 and trim(exploreUrl) <> '' and trim(bookSourceGroup) <> ''")
@Query("select bookSourceGroup from book_sources where enabledExplore = 1 and trim(exploreUrl) <> '' and trim(bookSourceGroup) <> ''")
funliveGroupExplore():LiveData<List<String>>
funliveExploreGroup():LiveData<List<String>>
@Query("select distinct enabled from book_sources where bookSourceName like :searchKey or bookSourceGroup like :searchKey or bookSourceUrl like :searchKey")
@Query("select distinct enabled from book_sources where bookSourceName like :searchKey or bookSourceGroup like :searchKey or bookSourceUrl like :searchKey")