|
@@ -101,7 +101,7 @@ interface BookDao {
|
|
|
@Query("select 1 from books where bookUrl = :bookUrl")
|
|
@Query("select 1 from books where bookUrl = :bookUrl")
|
|
|
fun has(bookUrl: String): Boolean?
|
|
fun has(bookUrl: String): Boolean?
|
|
|
|
|
|
|
|
- @Query("select 1 from books where originName = :fileName or origin like ${BookType.localTag} || '::' || :fileName")
|
|
|
|
|
|
|
+ @Query("select 1 from books where originName = :fileName or origin = ${BookType.localTag} || '::' || :fileName")
|
|
|
fun hasFile(fileName: String): Boolean?
|
|
fun hasFile(fileName: String): Boolean?
|
|
|
|
|
|
|
|
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
|
@Insert(onConflict = OnConflictStrategy.REPLACE)
|