mirror of
https://github.com/msfjarvis/compose-lobsters.git
synced 2024-06-03 04:18:58 +05:30
18 lines
214 B
Plaintext
18 lines
214 B
Plaintext
CREATE TABLE ReadPosts(
|
|
id TEXT NOT NULL PRIMARY KEY
|
|
);
|
|
|
|
markRead:
|
|
INSERT OR REPLACE
|
|
INTO ReadPosts(id)
|
|
VALUES (?);
|
|
|
|
markUnread:
|
|
DELETE FROM ReadPosts
|
|
WHERE id = ?;
|
|
|
|
isRead:
|
|
SELECT *
|
|
FROM ReadPosts
|
|
WHERE id = ?;
|