Skip to content

Instantly share code, notes, and snippets.

@Didriksson
Created November 16, 2017 09:19
Show Gist options
  • Save Didriksson/73c3c0187ecccb064885d49986b56e2b to your computer and use it in GitHub Desktop.
Save Didriksson/73c3c0187ecccb064885d49986b56e2b to your computer and use it in GitHub Desktop.
(defn sendmessage
[]
(j/with-db-connection [conn pg-uri]
(with-open [stmt (.prepareCall (j/get-connection conn) "{ call dbms_pipe.send_message('testcall') }")]
(doto stmt
(.execute))
(vec (resultset-seq (. stmt getObject 1)))))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment