2 ms·
I'll put it in the mix of ideas that the problem isn't ORMs, it is trying to build ORMs on top of SQL. Languages could be placed on a spectrum of how easy it i
by roenxi 6y ago
I'll put it in the mix of ideas that the problem isn't ORMs, it is trying to build ORMs on top of SQL.
Languages could be placed on a spectrum of how easy it is to build a DSL over the top of the language. Lisp is on one extreme, where it is easy to write a new language over the top of it.
SQL is pretty close to the other end of the spectrum. I've never seen a DSL that can compile to the full breadth of SQL dialects out there. DSLs generally handle the trivial well then fall apart when they hit complicated SQL statements.
If an ORM just had to fit over the top of a relational model it would probably work fine. The problem is, in the middle of all this, something has to be constructed in performant & parseable SQL.