by karmakaze · 7y ago · 0 comments
2. Always wanted a type-safe way to construct efficient SQL queries building bottom-up as in SQL rather than left-to-right as in ORMs[2].
3. A framework using (1) and (2) so building backends are not time-consuming or error-prone. Still in early stages.
[0] https://github.com/karmakaze/moja
I do have to admit that it is awfully convenient to use a REPL to write a long chain query using an ORM. I do often run into limitations, and knowing that the solution in plain SQL is so simple is very annoying. The idea is to allow convenient composition, but following the structure of SQL rather than parent-children navigation so there aren't paint-yourself-in-a-corner cases.