This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-15
Channels
- # babashka (41)
- # beginners (47)
- # calva (7)
- # cider (5)
- # cljsrn (2)
- # clojure (38)
- # clojure-europe (74)
- # clojure-nl (2)
- # clojure-spec (1)
- # clojure-uk (38)
- # clojurescript (42)
- # component (30)
- # core-async (2)
- # cryogen (6)
- # cursive (47)
- # datahike (7)
- # datomic (18)
- # defnpodcast (1)
- # fulcro (17)
- # graalvm (8)
- # graphql (4)
- # helix (5)
- # honeysql (5)
- # introduce-yourself (1)
- # jobs (5)
- # jobs-discuss (4)
- # malli (20)
- # meander (4)
- # mental-health (1)
- # off-topic (41)
- # pathom (18)
- # podcasts (2)
- # re-frame (20)
- # react (1)
- # reagent (22)
- # reitit (2)
- # releases (2)
- # remote-jobs (1)
- # reveal (2)
- # sci (10)
- # shadow-cljs (42)
- # sql (20)
- # tools-deps (7)
- # vim (2)
- # xtdb (51)
Are there examples out there for writing CTE in honeysql? I’m basically trying to write insert queries with https://dba.stackexchange.com/questions/46410/how-do-i-insert-a-row-which-contains-a-foreign-key so it involves quite a few types of clauses in one go where the interactions are not described in the docs
@achan961117 You mean like this? https://cljdoc.org/d/com.github.seancorfield/honeysql/2.0.0-rc2/doc/getting-started/sql-clause-reference#with-with-recursive
And if you're still using 1.x, the first test here has an example: https://github.com/seancorfield/honeysql/blob/v1/test/honeysql/core_test.cljc#L16