mirror of https://github.com/CrimsonTome/tldr.git
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
parent
c32d57a086
commit
b737629798
|
@ -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}}`
|
Loading…
Reference in New Issue