From b737629798dc2e93037c5da212c2cc86dca64141 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 21 Mar 2023 16:31:56 +0100 Subject: [PATCH] prqlc: add page (#9921) * Create prqlc.md * Rename prqlc.md to prqlc.md * Update pages/common/prqlc.md Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> * Update pages/common/prqlc.md Co-authored-by: Axel Navarro * Update pages/common/prqlc.md Co-authored-by: Axel Navarro * Apply suggestions from code review Co-authored-by: Axel Navarro * Update pages/common/prqlc.md --------- Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Co-authored-by: Axel Navarro Co-authored-by: K.B.Dharun Krishna --- pages/common/prqlc.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pages/common/prqlc.md diff --git a/pages/common/prqlc.md b/pages/common/prqlc.md new file mode 100644 index 000000000..cc9f18e2e --- /dev/null +++ b/pages/common/prqlc.md @@ -0,0 +1,25 @@ +# prqlc + +> PRQL compiler. +> PRQL is a modern language for transforming data - a simple, powerful, pipelined SQL replacement. +> More information: . + +- Run the compiler interactively: + +`prqlc compile` + +- Compile a specific `.prql` file to stdout: + +`prqlc compile {{path/to/file.prql}}` + +- Compile a `.prql` file to a `.sql` file: + +`prqlc compile {{path/to/source.prql}} {{path/to/target.sql}}` + +- Compile a query: + +`echo "{{from employees | filter has_dog | select salary}}" | prqlc compile` + +- Watch a directory and compile on file modification: + +`prqlc watch {{path/to/directory}}`