Skip to content

Commit c54f339

Browse files
committed
Add ssl support on the connection params
1 parent 3cc6095 commit c54f339

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/postgres/async.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
(defn open-db
2020
"Creates a db connection pool"
21-
[{:keys [hostname port username password database pool-size] :as config}]
21+
[{:keys [hostname port username password database pool-size ssl] :as config}]
2222
(doseq [param [:hostname :username :password :database]]
2323
(when (nil? (param config))
2424
(throw (IllegalArgumentException. (str param " is required")))))
@@ -28,6 +28,7 @@
2828
(.database database)
2929
(.username username)
3030
(.password password)
31+
(.ssl (boolean ssl))
3132
(.poolSize (or pool-size 25))
3233
(.dataConverter (create-converter))
3334
(.build)))

0 commit comments

Comments
 (0)