blob: a2b4566f1829cc971c06f16a1a3680c2626918dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<h1><?php echo __("Labels and SQL Expressions") ?></h1>
<p><?php echo __("Label content is generated using SQL expressions. The «SQL expression» is added to WHERE clause of view feed query. You can match on ttrss_entries table fields and even use subselect to query additional information. This functionality is considered to be advanced and requires some understanding of SQL.") ?></p>
<h2><?php echo __("Examples") ?></h2>
<p><?php echo __("Match all unread articles:") ?></p>
<code>unread = true</code>
<p><?php echo __("Matches all articles which mention Linux in the title:") ?></p>
<code>ttrss_entries.title like '%Linux%'</code>
<p><?php echo __("Matches all articles for the last week (PostgreSQL):") ?></p>
<code>updated > NOW() - INTERVAL '7 days'</code>
<p><?php echo __("Matches all articles with scores between 100 and 500:") ?></p>
<code>score > 100 and score < 500</code>
<p>
|