From a82429db6ea1b53c5638ce46f769cb3b0265c148 Mon Sep 17 00:00:00 2001 From: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Date: Sun, 12 Feb 2023 20:34:15 -0800 Subject: [PATCH] docs: Add ranges to showcase (#1823) --- website/content/_index.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/website/content/_index.md b/website/content/_index.md index 517ed107b944..b3aa9f73949e 100644 --- a/website/content/_index.md +++ b/website/content/_index.md @@ -96,8 +96,9 @@ showcase_section: - id: friendly-syntax label: Friendly syntax prql: | - from tracks - filter plays > 100_000 # Readable numbers + from track_plays + filter plays > 10_000 # Readable numbers + filter (length | in 60..240) # Ranges with `..` filter recorded > @2008-01-01 # Simple date literals filter released - recorded < 180days # Nice interval literals sort [-length] # Concise order direction @@ -106,9 +107,10 @@ showcase_section: SELECT * FROM - tracks + track_plays WHERE - plays > 100000 + plays > 10000 + AND length BETWEEN 60 AND 240 AND recorded > DATE '2008-01-01' AND released - recorded < INTERVAL 180 DAY ORDER BY