There was a saying that before learning postgres in depth, the db is just a dumb store of data for devs, once you spend time to learn the tools it provides though, most applications just look like a very thin layer on top of the sql.<p>There is so much more to rdbms (especially pg) than just joins - common table expressions, window functions, various views, let alone all the extensibility - extensions, custom types, even enums.<p>All of that can enable writing performant, type safe and very compact applications.<p>I am yet to see libs that embrace the elegance of it all - I’ve attempted this once - <a href="https://github.com/ivank/potygen">https://github.com/ivank/potygen</a> but didn’t get much traction. I’m now just waiting for someone more determined to pick up those ideas - a client lib that exposes the type safety and intellisence at compile time and allows you to easily compose those sql queries.<p>I think this project has some ways to go to reach that though, but thankfully it is a step in the right direction.