Skip to content

Commit a36ed4e

Browse files
authored
add support for JSON top-level arrays
1 parent d80f079 commit a36ed4e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/clj_postgresql/types.clj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@
114114

115115
(defmulti vec->parameter parameter-dispatch-fn)
116116

117+
(defmethod vec->parameter :json
118+
[v _]
119+
(to-pg-json v :json))
120+
121+
(defmethod vec->parameter :jsonb
122+
[v _]
123+
(to-pg-json v :jsonb))
124+
117125
(defmethod vec->parameter :inet
118126
[v _]
119127
(if (= (count v) 4)

0 commit comments

Comments
 (0)