PRQL 0.2
Languages and libraries
query language
SHOW HN2022
How HN took it
21 positive, 52 neutral or asking, 2 mixed, 11 critical, out of 86 comments about the project. Thread score +0.13.
Idea: 9 for, 5 againstDesign: 6 for, 3 againstExecution: 0 for, 2 againstDocs: 0 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Readable pipeline syntax that is more intuitive than SQL
From 2 comments
Congrats for the milestone!! The syntax looks more intuitive than SQL. Great to see viable alternatives to SQL!
vander_elst on HNThis reads a lot like the style of Pandas I teach.[0] This seems to have resolved a problem with SQL, you can't read it in a linear fashion. When we start getting query…
__mharrison__ on HN
Well thought-out syntax
From 1 comment
I've seen similar solutions being built internally in multiple companies, none with a syntax as well thought out as this. Amazing work!
MasterIdiot on HN
Welcoming contributor community
From 1 comment
I've been contributing to this project on a few little things due to my little knowledge level. But I felt like home with such a good company of people!. I not mature enough to…
roG0d on HN
Objections
SQL is already well supported and does not need replacing
From 2 comments
SQL doesn't need fixing or improving if you ask me, its well supported and just works.
jeroen79 on HNHot takes: SQL is great, actually. This thing isn't better.
slotrans on HN
Not clear what it offers beyond SQL
From 2 comments
Why should I use this instead of SQL?
qolop on HNFrom a mathematical point-of-view are there any transforms/operations (note: not end results, but actual operations) that this can do that SQL can't or vice-versa?
ComputerGuru on HN
Not ready for production use
From 1 comment
Obligatory dismissive comment: > 0.2 No it ain't (in production). Anyway, this looks great. I LOVE the fact that you've provided a book too. Consider me a fan!
rackjack on HN
Requests
Join examples and foreign key based joins
From 2 comments
I'm surprised that none of the examples on Github or the website deals with join. I eventually found some in the "book" here: https://prql-lang.org/book/transforms/join.html ```…
jitl on HNHere's one suggestion: SQL tediously requires specifying the equality condition on joins, when 90% of the time you just want to join on the fk defined between the tables. ```…
paol on HN
Pivot and dynamic column naming support
From 1 comment
Wow! This is cool stuff. I was looking through the documentation for conditional logic, control flow, IF(), and the CASE...WHEN...THEN operator. It seems like the ternary…
creamyhorror on HN
Better JavaScript API without manual memory freeing
From 1 comment
I see that the JavaScript package is at [1] and it's implemented by compiling the Rust code to WASM. That should eventually make it pretty easy to run it. It has a typescript…
skybrian on HN
Questions
How does it prevent SQL injection in bindings
From 1 comment
Looks fantastic. There are a lot of rough edges when building a string representing an SQL query in the programming language that you're using. You have to be careful to avoid…
Flimm on HN
Can it be used as a stored procedure language in Postgres
From 1 comment
It seems like an obvious next step for Postgres support would be to make PRQL a stored Procedure Language. create function foo() returns bar as language prql $$<prql code here>$$;
michelpp on HN
Alternatives named
EdgeQL
From 1 comment
I also recommend looking at EdgeQL -- https://www.edgedb.com/showcase/edgeql -- a new query language aimed to eliminate some of the SQL quirks. (I'm a co-founder)
1st1 on HN
LINQ
From 2 comments
This sounds like LINQ, or SparkSQL. Instead of a full new language, it makes feel better to create libraries in languages that supports embedded DSL easily.
airtnp on HNLooks a lot like LINQ
metaltyphoon on HN
Datalog
From 1 comment
For those interested in database query languages, it is worth knowing about Datalog, the query language behind Datomic, XTDB and Datahike: http://www.learndatalogtoday.org/ E.g.…
pgt on HN