|
|
|
|
|
by ttfkam
1002 days ago
|
|
When viewed as a DSL for set theory, views, CTEs, set-returning functions, et al are indeed proper first-class query abstractions. When viewed through the lens of general purpose imperative or functional programming languages, it's easy to see how it can be seen as falling short. I'll admit much of the tooling and driver APIs leave a lot to be desired. Some tools do make good efforts though such as nested fragments in this driver. https://github.com/porsager/postgres#building-queries |
|
It's still lacking even then. You can't assign a set to variable for instance, and then use that variable in other definitions or queries.