-
-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathrss.sql
More file actions
21 lines (21 loc) · 677 Bytes
/
rss.sql
File metadata and controls
21 lines (21 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
select 'http_header' as component,
'application/rss+xml' as "Content-Type";
select 'shell-empty' as component;
select 'rss' as component,
'SQLPage blog' as title,
'https://sql-page.com/blog.sql' as link,
'latest news about SQLpage' as description,
'en' as language,
'https://sql-page.com/rss.sql' as self_link,
'Technology' as category,
'2de3f968-9928-5ec6-9653-6fc6fe382cfd' as guid;
SELECT title,
description,
CASE
WHEN external_url IS NOT NULL THEN external_url
ELSE 'https://sql-page.com/blog.sql?post=' || title
END AS link,
created_at AS date,
false AS explicit
FROM blog_posts
ORDER BY created_at DESC;