This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-27
Channels
- # arachne (1)
- # beginners (31)
- # boot (84)
- # cider (9)
- # clara (2)
- # cljs-dev (102)
- # cljsrn (20)
- # clojure (254)
- # clojure-belgium (1)
- # clojure-dusseldorf (17)
- # clojure-greece (7)
- # clojure-italy (6)
- # clojure-russia (2)
- # clojure-spec (8)
- # clojure-uk (9)
- # clojurescript (93)
- # component (4)
- # copenhagen-clojurians (1)
- # cursive (24)
- # datomic (22)
- # editors (1)
- # emacs (8)
- # garden (2)
- # hoplon (357)
- # lein-figwheel (1)
- # leiningen (4)
- # luminus (27)
- # mount (13)
- # off-topic (7)
- # om (71)
- # onyx (35)
- # planck (3)
- # re-frame (53)
- # reagent (35)
- # ring-swagger (24)
- # specter (10)
- # sql (6)
- # untangled (47)
- # vim (157)
in order to get back to clojure types, you're going to need a table-specific handler (barring some naming convention for table/column names)
I don't think you want to use jdbc/insert! at all. You probably need to use jdbc/exec! or jdbc/query if you're using honeysql.
If you want to get the generated keys without using jdbc/insert!
, I seem to recall you wind up having to call jdbc/db-do-prepared
with the right args, I always have to crib from an older project
I usually use jdbc/query
for these kind of things indeed, I am just surprised that insert!
sees jsonb
(standard type) but doesn't see keyword
(my custom type)...anyways I solved by transforming the result returned by the query
better explanation here: https://groups.google.com/forum/#!topic/clojure-java-jdbc/1MYVpmZPY4k
the type is not actually a type but an alias and this is maybe why it is not passing through jdbc/result-set-read-column