Created
November 16, 2017 09:19
-
-
Save Didriksson/73c3c0187ecccb064885d49986b56e2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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