This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-08
Channels
- # announcements (1)
- # asami (3)
- # babashka (51)
- # beginners (86)
- # chlorine-clover (1)
- # cider (18)
- # clara (5)
- # clj-kondo (6)
- # cljsrn (6)
- # clojure (2)
- # clojure-europe (18)
- # clojure-uk (1)
- # clojurescript (57)
- # clojureverse-ops (2)
- # code-reviews (9)
- # cryogen (11)
- # depstar (5)
- # jackdaw (2)
- # malli (8)
- # nrepl (2)
- # off-topic (66)
- # practicalli (3)
- # reitit (6)
- # shadow-cljs (83)
- # sql (4)
- # vim (24)
- # xtdb (4)
Hello! I am looking at writing a query like this one https://stackoverflow.com/a/15710598/1327651
It seems easy enough with the helpers in next-jdbc
like as-keys
and by-keys
.
But if the values are not for strings but Dates/ZonedDateTime I would need to convert them myself?
Or is there a way I can reuse the existing conversions?
https://github.com/seancorfield/next-jdbc/blob/91dda2cdae3f9e897a54fe21edf8467acae8aa0d/doc/prepared-statements.md#prepared-statement-parameters
Or should I look at calling eg. honeysql’s to-sql
(I am using this dependency yet).
@nha Did you read this section https://cljdoc.org/d/seancorfield/next.jdbc/1.1.613/doc/getting-started#working-with-additional-data-types and try next.jdbc.date-time
?