Re:Show HN: Querying JSON documents using SQL-like language ...
by danellis on Tuesday February 25, 2020 @07:17PM
(#22419019)
This stringified approach loses type safety and IDE assistance for what benefit? Why do we want it to look like SQL? A Slick/Quill-like approach seems much safer.
[ Parent
| on HN ]
Re:Show HN: Querying JSON documents using SQL-like language ...
by mmalek06 on Thursday February 27, 2020 @11:38AM
(#22434817)
Please read my description (found somewhere in this discussion). That being said: there are scenarios when being able to save a query into a database or config file, then load and run it is useful. In general I agree though and that’s why one of the enhabcements I want to implement is to create a method based syntax with projecting selected fields to a case class.
Re:Show HN: Querying JSON documents using SQL-like language ...
by mmalek06 on Thursday February 27, 2020 @11:40AM
(#22434835)
As for the „why do we want it to look like sql” - I like the syntax and I think it’s much more readable than any other language used to process data. But that’s just a matter of taste :)