refactor(db): Migrate getChapters query to SQLDelight

This commit is contained in:
Ahmad Ansori Palembani 2024-11-29 15:08:42 +07:00
parent 83cb898068
commit e25f330118
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
10 changed files with 54 additions and 43 deletions

View file

@ -42,6 +42,9 @@ JOIN chapters
ON history.history_chapter_id = chapters._id
WHERE chapters.url = :chapterUrl AND history.history_chapter_id = chapters._id;
getTotalReadDuration:
SELECT sum(history_time_read) FROM history;
getRecentsUngrouped:
SELECT
M.*,