I know (env) gives the full environment and (env :something) does a single lookup. Is there any way to query the contents of a profile? For instance, get a map of everything defined in the dev profile?
- see stackoverflow.com/questions/16270805/… and stackoverflow.com/questions/20469012/…Josh– Josh2017-03-13 17:54:33 +00:00Commented Mar 13, 2017 at 17:54
- Thanks — and I don't see how the answers to those questions apply. Neither show how to return a map of a given profile. Am I missing something?Chip– Chip2017-03-13 18:59:48 +00:00Commented Mar 13, 2017 at 18:59
Add a comment |
1 Answer
If I understand your querstion correctly this is one way of solving it:
user=> a {:dev {:env {:database-url "jdbc:postgresql://localhost/dev"}}, :test {:env {:database-url "jdbc:postgresql://localhost/test"}}} user=> (:dev a) {:env {:database-url "jdbc:postgresql://localhost/dev"}} user=> (:env (:dev a)) {:database-url "jdbc:postgresql://localhost/dev"}