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

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

SQL

SELECT
  a AS "from",
  b AS take
FROM
  my_table
LIMIT
  3