Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Honey SQL – SQL as Clojure data structures.
There is some learning curve figuring put how things work, but the advantages of having SQL encoded as clojure data are worth it, in my opinion:
- s-expressions everywhere means that structural editing works
- allows for easy composing of sql queries - can very easily add custom filters, joins, etc and build up queries dynamically
- can easily add abstractions, for example something like https://github.com/metabase/toucan/blob/master/README.md
If you use postgresql, check out: https://github.com/nilenso/honeysql-postgres/blob/master/REA...
There are no comments on this comment yet.
There is some learning curve figuring put how things work, but the advantages of having SQL encoded as clojure data are worth it, in my opinion:
- s-expressions everywhere means that structural editing works
- allows for easy composing of sql queries - can very easily add custom filters, joins, etc and build up queries dynamically
- can easily add abstractions, for example something like https://github.com/metabase/toucan/blob/master/README.md
If you use postgresql, check out: https://github.com/nilenso/honeysql-postgres/blob/master/REA...