Initial release
[websub-hub] / src / db / postgres / sql / subscription-count-by-topic-url.sql
1 --
2 SELECT COUNT(s.id) AS count
3 FROM subscription s
4 JOIN topic t ON s.topic_id = t.id
5 WHERE t.url = $(topicUrl) AND s.expires > now()