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 <navarroaxel@gmail.com>

* Update pages/common/prqlc.md

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>

* Apply suggestions from code review

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>

* Update pages/common/prqlc.md

---------

Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com>
Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
pull/18/head
Jonathan 2023-03-21 16:31:56 +01:00 committed by GitHub
parent c32d57a086
commit b737629798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

25
pages/common/prqlc.md Normal file
View File

@ -0,0 +1,25 @@
# prqlc
> PRQL compiler.
> PRQL is a modern language for transforming data - a simple, powerful, pipelined SQL replacement.
> More information: <https://prql-lang.org>.
- 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}}`