@Query("SELECT * FROM books order by durChapterTime desc")
funobserveAll():Flow<List<Book>>
funflowAll():Flow<List<Book>>
@Query("SELECT * FROM books WHERE type = ${BookType.audio}")
funobserveAudio():Flow<List<Book>>
funflowAudio():Flow<List<Book>>
@Query("SELECT * FROM books WHERE origin = '${BookType.local}'")
funobserveLocal():Flow<List<Book>>
funflowLocal():Flow<List<Book>>
@Query("select * from books where type != ${BookType.audio} and origin != '${BookType.local}' and ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0")
funobserveNoGroup():Flow<List<Book>>
funflowNoGroup():Flow<List<Book>>
@Query("SELECT bookUrl FROM books WHERE origin = '${BookType.local}'")
funobserveLocalUri():Flow<List<String>>
funflowLocalUri():Flow<List<String>>
@Query("SELECT * FROM books WHERE (`group` & :group) > 0")
funobserveByGroup(group:Long):Flow<List<Book>>
funflowByGroup(group:Long):Flow<List<Book>>
@Query("SELECT * FROM books WHERE name like '%'||:key||'%' or author like '%'||:key||'%'")
funliveDataSearch(key:String):Flow<List<Book>>
funflowSearch(key:String):Flow<List<Book>>
@Query("SELECT * FROM books WHERE (`group` & :group) > 0")