If someone knows a tool that reliably converts PostgreSQL queries to something like SQLite, please share!
It's interesting to see that everyone's attempt at fixing SQL seems to converge on surprisingly similar solutions...
I would expect there to be a lot of convergent evolution as how to go from a pile of data to narrowing on what you want.
https://opensource.googleblog.com/2021/04/logica-organizing-...
Edgedb also is nice if you want a more object like model for your db.
ORMs solve the problem of translating a flat list of records into objects that have arrays of other objects. Some people also use them to avoid having to write SQL, but that's honestly a secondary feature.
You can have a more modern query language that still results in tables
https://spark.apache.org/docs/1.6.1/api/java/org/apache/spar...
Hers a simple example:
StormEvents
| where StartTime between (datetime(2007-11-01) .. datetime(2007-12-01))
| where State == "FLORIDA"
| countPaired with dbt makes data quite fun
I'm trying to do it for a "general purpose" language where array + relational + functional + imperative can work together:
---
One of the biggest damage that SQL has caused is that SQL is so bad as being a programming language, is not good enough DSL and is weirdly the only game in town, that many can't imagine that the relational model allows to do programming like every other model, just richer in "intrinsic" operators.
This is the deal with RDBMS. Is like: "Everyone implement a wild flavor of a VM, sometimes JVM, .NET VM, Web Assembly, eBPF, etc, but all use a slight variation of Java for their syntax"
Is like the reverse of how things are done!
It's a semantic layer with an integrated query language that makes a ton of improvements on SQL. Full disclosure, I actually joined the team a couple of weeks ago :)