Created
December 21, 2016 14:47
-
-
Save 4e1e0603/a6935617a5e319a1b882dc7d626aa78d to your computer and use it in GitHub Desktop.
Clojure Oracle Database connection
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
(ns app.core | |
(:require | |
[clojure.java.jdbc :as jdbc])) | |
(def oracle-db-spec | |
{:classname "oracle.jdbc.Driver" | |
:subprotocol "oracle:thin" | |
:subname "//@host:port/name" | |
:user "USER" | |
:password "PASS"}) | |
(defn -main [& args] | |
(jdbc/query oracle-db-spec | |
["SELECT * FROM table_name WHERE ..."]) | |
(println "OK")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment