23 ms·
That's kind of what we're aiming for with PRQL (prql-lang.org). While currently it only supports SQL backends, I want to generalize that to things like undersco
by snthpy 2y ago
That's kind of what we're aiming for with PRQL (prql-lang.org). While currently it only supports SQL backends, I want to generalize that to things like underscore.js.
- ramses0 2y agoIf I may be so bold as a pitch for adoption: For Python, support `prql-to-sqlite3` (in memory?) "out of the box" For JavaScript, support "array-of-dicts/objects" with no ceremony. Basically, in python I could justify the depends if I can say: sql = prql.parse( """select * ...""" ) results = db.execute(sql) In JS, similarly: all_my_records = [ { ... }, ... ] function oh_god_why_nevermind(...) { ... } subset = prql.execute( `select * from all_my_records ...` ) (butchering all syntax, of course) ...basically "nobody wants to learn sql nowadays", and in javascript "my kingdom for a left-join!" Pitch it as "graphql for data" (/zing!)
- snthpy 2y agoThank you for the suggestion. I actually very much agree with you. I've recently been updating my stack in other areas and have been utilising "Getting Started" or "Quick Start" sections a lot and thought that we're actually not making that easy enough or easy at all. I'll look into incorporating your suggestion soon. If you're up to it, you can open an issue in our repo and then I can ping you when that's done.