Replies: 3 comments 5 replies
-
Based on this reply to this StackOverflow question I think you would just need to wrap the The match code might become a bit more cumbersome since you probably need to match on all the options now but it should be doable. I also thought this might be a good #first-issue since it only touches the CLI code. It's something I'm quite confident I could do if I had the time which is why I think the #good-first-issue label might be appropriate. |
Beta Was this translation helpful? Give feedback.
-
Similarly I think the I think that would add a lot in convenience in day to day usage. |
Beta Was this translation helpful? Give feedback.
-
I'm somewhat torn — on the one hand, having obvious things be obvious is the design we should be aiming for — and But on the other, are we going to make it quite complicated? Does Other options:
|
Beta Was this translation helpful? Give feedback.
-
Hi,
As mentioned during the dev call, I believe that the majority of people most of the time just want to translate PRQL code to SQL and therefore the
prqlc
CLI should be geared towards making that as simple as possible.I currently use the following shell function for this personally:
So I can do things like:
❯ prql "from hello | select world" SELECT world FROM hello -- Generated by PRQL compiler version:0.9.4 (https://prql-lang.org)
or
My little one-liner still supports parameters so I can also do things like:
The interactive no-parameter and file based modes are also still supported:
I've stopped short of checking for the other subcommands and then supporting those because that would break my one-liner rule and I think that would be better supported in prqlc itself.
Beta Was this translation helpful? Give feedback.
All reactions