1

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?

2

1 Answer 1

0

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"} 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.