This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-21
Channels
- # announcements (4)
- # architecture (161)
- # autochrome-github (7)
- # babashka (61)
- # beginners (42)
- # calva (24)
- # cider (22)
- # clj-kondo (28)
- # cljs-dev (8)
- # clojure (88)
- # clojure-art (2)
- # clojure-dev (7)
- # clojure-europe (43)
- # clojure-germany (2)
- # clojure-nl (2)
- # clojure-uk (4)
- # clojurescript (32)
- # core-async (41)
- # cursive (32)
- # datahike (6)
- # datomic (9)
- # emacs (22)
- # events (2)
- # fulcro (10)
- # graphql (1)
- # nextjournal (16)
- # off-topic (9)
- # overtone (1)
- # pathom (16)
- # polylith (5)
- # quil (7)
- # rdf (1)
- # re-frame (7)
- # reagent (22)
- # releases (2)
- # remote-jobs (1)
- # reveal (12)
- # sci (1)
- # shadow-cljs (12)
- # specter (20)
- # sql (6)
- # tools-deps (21)
- # vim (26)
- # xtdb (10)
Hi. How to convert this query into next-jdbc.
update task
set scheduled_at = clock_timestamp() + ?::interval
I don’t how to make the ?::interval part.(next.jdbc/execute conn ["update task set scheduled_at = current_timestamp + ?::interval" "3 minutes"])
Should Just Work ™️
I'm using next.jdbc
and I'd like to see the exact SQL that my sql/insert!
expands to. Is there a way to do that? What I'm really trying to do is debug whether my kebab-case-opts
are being applied properly.
@zmitchell https://cljdoc.org/d/com.github.seancorfield/next.jdbc/1.2.772/doc/getting-started#logging
Thanks, I missed that when I was skimming the docs. It turns out my issue was that the snake-kebab-opts
are discarded when you call get-connection
, which I also didn't see in the docs until reading deeper 🙂