@ -29,14 +29,14 @@ interface BookSourceDao {
@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 " )
fun searchIsEnable ( searchKey : String = " " ) : List < Boolean >
fun searchIsEnable ( searchKey : String = " " ) : List < Boolean >
@Query ( " update book_sources set enabled = 1 where bookSourceUrl in (:sourceUrls) " )
@Query ( " update book_sources set enabled = 1 where bookSourceUrl = :sourceUrl " )
fun enableSection ( vararg sourceUrls : String )
fun enableSection ( sourceUrl : String )
@Query ( " update book_sources set enabled = 0 where bookSourceUrl in (:sourceUrls) " )
@Query ( " update book_sources set enabled = 0 where bookSourceUrl = :sourceUrl " )
fun disableSection ( vararg sourceUrls : String )
fun disableSection ( sourceUrl : String )
@Query ( " delete from book_sources where bookSourceUrl in (:sourceUrls) " )
@Query ( " delete from book_sources where bookSourceUrl = :sourceUrl " )
fun delSection ( vararg sourceUrls : String )
fun delSection ( sourceUrl : String )
@Query ( " select * from book_sources where enabledExplore = 1 order by customOrder asc " )
@Query ( " select * from book_sources where enabledExplore = 1 order by customOrder asc " )
fun observeFind ( ) : DataSource . Factory < Int , BookSource >
fun observeFind ( ) : DataSource . Factory < Int , BookSource >