This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-25
Channels
- # announcements (1)
- # asami (3)
- # aws (2)
- # babashka (8)
- # beginners (60)
- # biff (3)
- # calva (45)
- # clj-http (3)
- # clj-kondo (19)
- # clojure (50)
- # clojure-europe (23)
- # clojure-nl (8)
- # clojure-spec (4)
- # clojure-uk (3)
- # clojurescript (32)
- # conjure (3)
- # datomic (7)
- # events (2)
- # fulcro (24)
- # graalvm (3)
- # inf-clojure (3)
- # jackdaw (1)
- # lsp (3)
- # malli (8)
- # missionary (14)
- # off-topic (1)
- # polylith (3)
- # portal (11)
- # rewrite-clj (63)
- # shadow-cljs (21)
- # spacemacs (7)
- # tools-build (6)
- # xtdb (4)
Hello again, when building bb with BABASHKA_FEATURE_JDBC
, we don't get access to the namespaces next.jdbc.prepare
or next.jdbc.date-time
?
@nicolas.estrada938 This can be added here: https://github.com/babashka/babashka/blob/master/feature-jdbc/babashka/impl/jdbc.clj
Ok by that you mean forking, and adding the required namespaces... All I really want is to use the protocol definitions for passing inst
into queries like what is already done in next.jdbc.date-time
(extend-protocol p/SettableParameter
...
;; this is just to help PostgreSQL:
java.util.Date
(set-parameter [^java.util.Date v ^PreparedStatement s ^long i]
(.setTimestamp s i (Timestamp/from (.toInstant v))))
;; but avoid unnecessary conversions for SQL Date and Timestamp:
java.sql.Date
(set-parameter [^java.sql.Date v ^PreparedStatement s ^long i]
(.setDate s i v))
java.sql.Timestamp
(set-parameter [^java.sql.Timestamp v ^PreparedStatement s ^long i]
(.setTimestamp s i v)))
I'm willing to work off of a fork, and perhaps file a MR if it doesn't increase binary size too much
ok thanks 🙂
Hey folks. x-posting, hope it’s fine since I don’t know where the issue is. https://clojurians.slack.com/archives/C9BT75KRC/p1637877966002200
@andre.peric if you are able to send an expression to the socket repl with netcat
then you know it's not an issue with bb