This is brilliant, and also horrifying: all the laconic elegance of SQL fed through a blender and intravenously injected into Javascript.
The idea came from an example from a talk [1] I attended, and I wanted to see how far I could take it.
[1]: https://github.com/mikaelbr/proxy-fun/blob/master/examples/g...