Implement newsreader counting

This commit is contained in:
2024-07-21 15:13:09 -07:00
parent abaaddae3a
commit 9746c9912b
5 changed files with 67 additions and 18 deletions

10
server/sql/count.sql Normal file
View File

@@ -0,0 +1,10 @@
SELECT
COUNT(*) count
FROM
post
WHERE
site = $1
AND (
NOT $2
OR NOT is_read
)