Fork me on GitHub
#sql
<
2020-07-12
>
synthomat10:07:07

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?

synthomat10:07:44

oh looks like it’s indeed the correct thingy to do; I just had a weird error because I missed another thing…

seancorfield19:07:52

@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.