Add LobstersRepo to handle DB operations

Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
This commit is contained in:
Aditya Wasan 2020-12-20 16:21:18 +05:30 committed by Harsh Shandilya
parent 4f9d0c09ef
commit 3bcdcbdac7
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
8 changed files with 99 additions and 7 deletions

View file

@ -22,6 +22,11 @@ selectAllPosts:
SELECT *
FROM LobstersPost;
selectSavedPosts:
SELECT *
FROM LobstersPost
WHERE is_saved = 1;
selectPost:
SELECT *
FROM LobstersPost