refactor: Attempt 2 on getting library manga using flow

This commit is contained in:
Ahmad Ansori Palembani 2024-06-19 16:36:35 +07:00
parent 535fcc81dd
commit 7b765a5fc2
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
9 changed files with 82 additions and 52 deletions

View file

@ -45,6 +45,11 @@ SELECT *
FROM mangas
WHERE favorite = 1 AND lower(title) = :title AND source = :source;
findFavorites:
SELECT *
FROM mangas
WHERE favorite = 1;
insert:
INSERT INTO mangas (source, url, artist, author, description, genre, title, status, thumbnail_url, favorite, last_update, initialized, viewer, hide_title, chapter_flags, date_added, filtered_scanlators, update_strategy)
VALUES (:source, :url, :artist, :author, :description, :genre, :title, :status, :thumbnailUrl, :favorite, :lastUpdate, :initialized, :viewer, :hideTitle, :chapterFlags, :dateAdded, :filteredScanlators, :updateStrategy);