Keywords

At the moment, PRQL uses only four keywords:

  • prql
  • let
  • func
  • case

To use these names as columns or relations, use backticks: `case` .

It may seem that transforms are also keywords, but they are normal function within std namespace:

PRQL

  1. std.from my_table
  2. std.select [from = my_table.a, take = my_table.b]
  3. std.take 3

SQL

  1. SELECT
  2. a AS "from",
  3. b AS take
  4. FROM
  5. my_table
  6. LIMIT
  7. 3