This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-04
Channels
- # arachne (1)
- # beginners (41)
- # boot (92)
- # capetown (8)
- # cider (10)
- # cljsjs (4)
- # cljsrn (42)
- # clojure (94)
- # clojure-india (1)
- # clojure-russia (48)
- # clojure-sanfrancisco (1)
- # clojure-spec (34)
- # clojure-uk (13)
- # clojurescript (29)
- # cursive (12)
- # datavis (4)
- # datomic (10)
- # dirac (63)
- # editors-rus (16)
- # emacs (57)
- # funcool (5)
- # hoplon (22)
- # jobs (2)
- # lein-figwheel (3)
- # leiningen (5)
- # onyx (51)
- # other-languages (2)
- # proton (1)
- # protorepl (2)
- # re-frame (34)
- # remote-jobs (1)
- # sfcljs (5)
- # spacemacs (1)
- # specter (2)
- # sql (20)
- # test-check (54)
- # yada (1)
Anyone have an example of a moderately complex (i.e. more than a toy but not a massively intertwingled app) use of HoneySQL?
Not that’s open source, sadly, but I’m happy to share my experiences / opinions if that’s at all helpful
At this point I don’t have a lot of specific questions rather a general sense that I don’t have a good mental model for how to think about managing persistent data via something like HoneySql when I get into more complex associations and I’d like to see a few examples I can work from.
but thank you for the offer, if I do have some specific scenarios or questions I will bring them
it largely depends on your use case. We have a few tables that are conditionally joined and make multiple uses of some tables (such that we often need different where clauses, and we don't know the exact query ahead of time)
sandbags: if you find yourself doing this: http://emidln.com/honeysql-talk/#/10
@bja: i’m already using honeysql, but as i stray into managing the associations i’m looking at whether there is already a best practice
I don't know if there is a best practice, but I find that cond->
results in easy to understand code
a lot of times we'll have something like (defnk find-domain-object ...)
where optional parameters might build a set of various correlated subqueries
yeah i’ve built some stuff for creating obvious queries around a “model definition” map
i guess i will just muddle along and see what i come up with, i was just hoping to short-circuit that process
unfortunately i have very little time for dev stuff which makes progress difficult right now