This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-22
Channels
- # beginners (8)
- # boot (41)
- # cider (1)
- # cljsrn (2)
- # clojure (91)
- # clojure-dev (34)
- # clojure-gamedev (3)
- # clojure-germany (6)
- # clojure-greece (324)
- # clojure-japan (2)
- # clojure-miami (4)
- # clojure-nl (6)
- # clojure-quebec (3)
- # clojure-russia (26)
- # clojure-spec (50)
- # clojure-uk (19)
- # clojurescript (147)
- # core-async (5)
- # css (2)
- # cursive (15)
- # datascript (7)
- # datomic (6)
- # hoplon (1)
- # jobs (4)
- # lein-figwheel (17)
- # off-topic (4)
- # om (52)
- # om-next (10)
- # onyx (1)
- # planck (19)
- # proton (1)
- # re-frame (81)
- # reagent (61)
- # spacemacs (1)
- # specter (46)
- # spirituality-ethics (7)
- # untangled (7)
- # yada (17)
hi, i try to connect to postgres, but i get error "java.lang.Exception: Unsupported binding form: :classname" db spec is : (def db {:classname "org.postgresql.Driver" :subprotocol "postgresql" :subname "//localhost:5432/auth" :user "admin" :password "admin"}) versions: [org.postgresql/postgresql "9.4.1208.jre7"] [org.clojure/java.jdbc "0.6.1"]
{:connection-uri "jdbc:postgresql:...db-name...?user=...&password=.."
:subprotocol "postgresql"}
Hello, anyone with knowledge in silk who could give me a hint here? -- I wonder where the serve/POST
comes from in this example from silk's documentation
Routes can be constrained by request methods.
(def api-routes
(silk/routes {:api-data [["api"] {"limit" (silk/? (silk/int :limit) {:limit 100})
"offset" (silk/? (silk/int :offset) {:offset 0})} (serve/POST)]}))
(silk/match api-routes {:path ["api"]})
;=> nil
(silk/match api-routes {:path ["api"] :request-method :post})
;=> {:limit 100, :offset 0, :domkm.silk/name :api-data, ...}
I'm trying to use cljc for the first time and I think I might have something wrong conceptually. I am trying to require my cljc namespace from clojurescript using the normal clojurescript :require syntax so that I can define Rum components in one place and refer to them from both the cljs and clj code (see https://github.com/tonsky/rum#server-side-rendering for reference). Is this how cljc files are meant to be referenced from clojurescript or am I way off base?