This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-05
Channels
- # architecture (2)
- # aws (1)
- # bangalore-clj (4)
- # beginners (97)
- # boot (35)
- # cider (8)
- # cljsjs (3)
- # cljsrn (35)
- # clojure (190)
- # clojure-dusseldorf (4)
- # clojure-italy (7)
- # clojure-poland (1)
- # clojure-russia (17)
- # clojure-spec (74)
- # clojure-uk (30)
- # clojureremote (2)
- # clojurescript (298)
- # code-reviews (18)
- # component (18)
- # cursive (18)
- # datascript (3)
- # datavis (2)
- # datomic (24)
- # dirac (17)
- # emacs (3)
- # garden (7)
- # hoplon (51)
- # jobs (2)
- # jobs-rus (2)
- # leiningen (4)
- # luminus (11)
- # mount (24)
- # off-topic (1)
- # om (32)
- # onyx (25)
- # pedestal (1)
- # powderkeg (9)
- # protorepl (6)
- # re-frame (11)
- # reagent (15)
- # spacemacs (6)
- # sql (35)
- # uncomplicate (1)
- # unrepl (74)
- # untangled (130)
- # yada (6)
I'm struggling connecting luminus to oracle db using the following URL jdbc:oracle:thin:username/password:@10.29.10.214:1521:orcl I'm getting -- Error creating DB connection for jdbc:oracle:thin....
here's what I have in a namespace for a working project that connects to oracle:
(defstate ^:dynamic *conn*
:start (conman/connect! {:jdbc-url (env :db-url)})
:stop (conman/disconnect! conn))
(conman/bind-connection *conn* "sql/queries.sql")
are you using the appropriate jar from here? http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
oracle doesn't publish the drivers in public maven repos, so you have to install it locally
I think oracle might've changed their mind: https://mvnrepository.com/artifact/com.oracle/ojdbc14/10.2.0.4.0
i'm using a compojure-api route in my luminus app. is there a way to display a friendly (ideally JSON) error message when input validation fails and return a 4xx out of the box? is there some middleware I need to add for this functionality? right now, it just returns 500 when a parameter is missing and a blank body. From the compojure-api docs, not providing the text parameter should return a 4xx response w/ an explanation though I can't tell if that requires a custom exception handler or not nor how one would add one when not using the api function ... compojure-api docs are not clear enough for me to say much of anything for sure.
(GET "/check" []
:return String
:query-params [text :- String]
:summary "Spell check some text and return suggestions."
(send-response (json/generate-string (check text)) :json))