|
@@ -14,7 +14,6 @@ import eu.kanade.tachiyomi.data.database.resolvers.MangaCoverLastModifiedPutReso
|
|
import eu.kanade.tachiyomi.data.database.resolvers.MangaFavoritePutResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.MangaFavoritePutResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.MangaFlagsPutResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.MangaFlagsPutResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.MangaLastUpdatedPutResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.MangaLastUpdatedPutResolver
|
|
-import eu.kanade.tachiyomi.data.database.resolvers.MangaTitlePutResolver
|
|
|
|
import eu.kanade.tachiyomi.data.database.resolvers.SourceIdMangaCountGetResolver
|
|
import eu.kanade.tachiyomi.data.database.resolvers.SourceIdMangaCountGetResolver
|
|
import eu.kanade.tachiyomi.data.database.tables.CategoryTable
|
|
import eu.kanade.tachiyomi.data.database.tables.CategoryTable
|
|
import eu.kanade.tachiyomi.data.database.tables.ChapterTable
|
|
import eu.kanade.tachiyomi.data.database.tables.ChapterTable
|
|
@@ -117,11 +116,6 @@ interface MangaQueries : DbProvider {
|
|
.withPutResolver(MangaFlagsPutResolver(MangaTable.COL_VIEWER, Manga::viewer_flags))
|
|
.withPutResolver(MangaFlagsPutResolver(MangaTable.COL_VIEWER, Manga::viewer_flags))
|
|
.prepare()
|
|
.prepare()
|
|
|
|
|
|
- fun updateViewerFlags(manga: List<Manga>) = db.put()
|
|
|
|
- .objects(manga)
|
|
|
|
- .withPutResolver(MangaFlagsPutResolver(MangaTable.COL_VIEWER, Manga::viewer_flags))
|
|
|
|
- .prepare()
|
|
|
|
-
|
|
|
|
fun updateLastUpdated(manga: Manga) = db.put()
|
|
fun updateLastUpdated(manga: Manga) = db.put()
|
|
.`object`(manga)
|
|
.`object`(manga)
|
|
.withPutResolver(MangaLastUpdatedPutResolver())
|
|
.withPutResolver(MangaLastUpdatedPutResolver())
|
|
@@ -132,11 +126,6 @@ interface MangaQueries : DbProvider {
|
|
.withPutResolver(MangaFavoritePutResolver())
|
|
.withPutResolver(MangaFavoritePutResolver())
|
|
.prepare()
|
|
.prepare()
|
|
|
|
|
|
- fun updateMangaTitle(manga: Manga) = db.put()
|
|
|
|
- .`object`(manga)
|
|
|
|
- .withPutResolver(MangaTitlePutResolver())
|
|
|
|
- .prepare()
|
|
|
|
-
|
|
|
|
fun updateMangaCoverLastModified(manga: Manga) = db.put()
|
|
fun updateMangaCoverLastModified(manga: Manga) = db.put()
|
|
.`object`(manga)
|
|
.`object`(manga)
|
|
.withPutResolver(MangaCoverLastModifiedPutResolver())
|
|
.withPutResolver(MangaCoverLastModifiedPutResolver())
|
|
@@ -174,16 +163,6 @@ interface MangaQueries : DbProvider {
|
|
)
|
|
)
|
|
.prepare()
|
|
.prepare()
|
|
|
|
|
|
- fun getTotalChapterManga() = db.get()
|
|
|
|
- .listOfObjects(Manga::class.java)
|
|
|
|
- .withQuery(
|
|
|
|
- RawQuery.builder()
|
|
|
|
- .query(getTotalChapterMangaQuery())
|
|
|
|
- .observesTables(MangaTable.TABLE)
|
|
|
|
- .build(),
|
|
|
|
- )
|
|
|
|
- .prepare()
|
|
|
|
-
|
|
|
|
fun getLatestChapterManga() = db.get()
|
|
fun getLatestChapterManga() = db.get()
|
|
.listOfObjects(Manga::class.java)
|
|
.listOfObjects(Manga::class.java)
|
|
.withQuery(
|
|
.withQuery(
|