Implement newsreader counting
This commit is contained in:
10
server/sql/count.sql
Normal file
10
server/sql/count.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
SELECT
|
||||
COUNT(*) count
|
||||
FROM
|
||||
post
|
||||
WHERE
|
||||
site = $1
|
||||
AND (
|
||||
NOT $2
|
||||
OR NOT is_read
|
||||
)
|
||||
Reference in New Issue
Block a user