General improvements (#134)
* Add visual options and seamless transitions to the EPUB reader * Add support for DOCX file format * Refine padding and status bar inset handling in Epub pagination mode * Add file size parameter for recent files and sorting * Refactor book data cleanup logic into a centralized method * Bump version to 1.0.40(41)
This commit is contained in:
parent
15264a31ae
commit
6fd6dd5609
20 changed files with 623 additions and 134 deletions
|
|
@ -148,10 +148,29 @@ abstract class BookCacheDao {
|
|||
@Query("DELETE FROM processed_chapter_metadata")
|
||||
protected abstract suspend fun deleteAllChapterMetadata()
|
||||
|
||||
@Query("DELETE FROM configuration_cache WHERE bookId = :bookId")
|
||||
abstract suspend fun deleteConfigurationCacheForBook(bookId: String)
|
||||
|
||||
@Transaction
|
||||
open suspend fun deleteEntireBookCache(bookId: String) {
|
||||
deleteBook(bookId)
|
||||
deleteChaptersForBook(bookId)
|
||||
deleteAnchorsForBook(bookId)
|
||||
deleteConfigurationCacheForBook(bookId)
|
||||
}
|
||||
|
||||
@Query("DELETE FROM anchor_index")
|
||||
abstract suspend fun clearAnchors()
|
||||
|
||||
@Query("DELETE FROM configuration_cache")
|
||||
abstract suspend fun clearConfigurationCache()
|
||||
|
||||
@Transaction
|
||||
open suspend fun clearAllCache() {
|
||||
clearProcessedBooks()
|
||||
clearProcessedChapters()
|
||||
clearAnchors()
|
||||
clearConfigurationCache()
|
||||
}
|
||||
|
||||
@Query("SELECT * FROM configuration_cache WHERE bookId = :bookId AND configHash = :configHash")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue