mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
refactor(db): Replace some more StorIO queries with SQLDelight
This commit is contained in:
parent
e9d22f4dba
commit
4f9e5bfe62
8 changed files with 68 additions and 44 deletions
|
@ -22,6 +22,16 @@ WHERE history_chapter_id = history_chapter_id;
|
|||
selectLastInsertedRowId:
|
||||
SELECT last_insert_rowid();
|
||||
|
||||
deleteAll:
|
||||
DELETE FROM history;
|
||||
|
||||
getByMangaId:
|
||||
SELECT history.*
|
||||
FROM history
|
||||
JOIN chapters
|
||||
ON history.history_chapter_id = chapters._id
|
||||
WHERE chapters.manga_id = :mangaId AND history.history_chapter_id = chapters._id;
|
||||
|
||||
getByChapterUrl:
|
||||
SELECT history.*
|
||||
FROM history
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue