I'm trying to use Korma and set it up for my Luminus project. Korma has the following helpers for Postgresql:
;; how exactly should I pass the connection string here?
;; in particular, for production env.
(def pg (postgres ..))
(defdb korma-db db)
(defdb prod (postgres {:db "korma"
:user "korma"
;;.....
How can I and should I at all somehow utilize the file profiles.clj where I have the test and dev connection strings for PG for setting up Korma?
If so, in profiles.clj there's no "production" connection string, should I add it or what?
I don't know if I understand correctly your question, but maybe you should take a look at this: https://github.com/weavejester/environ. A clojure library for managing environment variables.
In your
profiles.cljyou will set something like: