This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-28
Channels
- # anglican (2)
- # announcements (2)
- # babashka (41)
- # babashka-circleci-builds (1)
- # beginners (45)
- # brompton (2)
- # calva (13)
- # cider (13)
- # clj-kondo (14)
- # cljsrn (6)
- # clojure (60)
- # clojure-europe (4)
- # clojure-nl (3)
- # clojurescript (1)
- # code-reviews (3)
- # conjure (2)
- # cryogen (5)
- # datomic (22)
- # fulcro (13)
- # graalvm (19)
- # introduce-yourself (1)
- # kaocha (2)
- # leiningen (2)
- # lsp (1)
- # malli (4)
- # meander (1)
- # music (1)
- # news-and-articles (2)
- # off-topic (17)
- # polylith (6)
- # practicalli (2)
- # react (15)
- # reactive (1)
- # reagent (8)
- # reitit (2)
- # releases (1)
- # rum (10)
- # shadow-cljs (6)
- # spacemacs (4)
- # sql (2)
- # tools-deps (4)
- # xtdb (21)
Hi,
I am trying to implement support of postgresql composite types with clojure.java.jdbc and PGJDBC-NG
driver (https://impossibl.github.io/pgjdbc-ng/docs/current/user-guide/)
I am following default example from psql guide https://www.postgresql.org/docs/current/rowtypes.html
and I am trying to use SQLData from the jdbc
https://impossibl.github.io/pgjdbc-ng/docs/current/user-guide/#_java_sql_sqldata
(deftype item-dto []
java.sql.SQLData
(getSQLTypeName [this] "item")
(readSQL [this stream type-name]
{:name (.readString stream)
:supplier_id (.readInt stream)
:price (.readBigDecimal stream)})
(writeSQL [this stream]))
but, it seems not working for, item-dto
is not being recognised
maybe someone has experience with it? what i am doing wrong?In next.jdbc, is there a way to do this? (jdbc/execute! conn ["select 1 in ?" [1 2 3]])
meaning (jdbc/execute! conn ["select 1 in (1,2,3)"])
Thanks!