This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-12
Channels
- # babashka (6)
- # beginners (23)
- # calva (27)
- # cider (1)
- # clj-kondo (23)
- # cljsrn (2)
- # clojars (4)
- # clojure (90)
- # clojure-dev (8)
- # clojure-europe (1)
- # clojure-serbia (1)
- # clojure-spec (2)
- # clojurescript (9)
- # code-reviews (7)
- # core-async (1)
- # cursive (4)
- # datomic (13)
- # emacs (2)
- # hoplon (28)
- # juxt (12)
- # leiningen (1)
- # malli (22)
- # nrepl (3)
- # off-topic (51)
- # reitit (8)
- # shadow-cljs (16)
- # spacemacs (25)
- # sql (4)
- # test-check (5)
- # tools-deps (5)
Hey, I try to convert a clojure object vec
(or ISeq?) to a database type PgArray
using next-jdbc
; Converting from PgArray
to clojure type can be done using the ReadableColumn
protocol. But what’s the counterpart to convert a clojure type to a database type? Is it SettableParameter
or Executable
or am I re-inventing the wheel?
oh looks like it’s indeed the correct thingy to do; I just had a weird error because I missed another thing…
@synthomat Sounds like you don't need help now but for the future that is all covered in the docs https://cljdoc.org/d/seancorfield/next.jdbc/1.1.569/doc/getting-started/tips-tricks#working-with-arrays specifically for PostgreSQL.