mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
refactor(backup): Retrieve manga with SQLDelight
This commit is contained in:
parent
ad070fd59a
commit
9b45767667
5 changed files with 19 additions and 10 deletions
|
@ -50,6 +50,13 @@ SELECT *
|
|||
FROM mangas
|
||||
WHERE favorite = 1;
|
||||
|
||||
findReadNotFavorites:
|
||||
SELECT *
|
||||
FROM mangas
|
||||
WHERE favorite = 0 AND _id IN (
|
||||
SELECT chapters.manga_id FROM chapters WHERE read = 1 OR last_page_read != 0
|
||||
);
|
||||
|
||||
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, cover_last_modified)
|
||||
VALUES (:source, :url, :artist, :author, :description, :genre, :title, :status, :thumbnailUrl, :favorite, :lastUpdate, :initialized, :viewer, :hideTitle, :chapterFlags, :dateAdded, :filteredScanlators, :updateStrategy, :coverLastModified);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue