mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 03:17:03 +05:30
src: remove cache and simplify db logic
Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
This commit is contained in:
parent
3bcdcbdac7
commit
f9fcb089a1
7 changed files with 60 additions and 23 deletions
|
@ -56,6 +56,12 @@ deleteAllPosts:
|
|||
DELETE
|
||||
FROM LobstersPost;
|
||||
|
||||
isPostSaved:
|
||||
SELECT *
|
||||
FROM LobstersPost
|
||||
WHERE short_id = ?
|
||||
AND is_saved = 1;
|
||||
|
||||
selectCount:
|
||||
SELECT COUNT(*)
|
||||
FROM LobstersPost;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue