Fork me on GitHub
#datomic
<
2017-09-23
>
Chris Bidler15:09:55

So I’m trying to set up a trivial case where I follow the Connect to a Database documentation, but in a REPL with some of my own code wrapping the client connection. I have a local server serving up an in-memory DB at hello just as the documentation specifies, but when I invoke client/connect with an apparently-correct connection map, what comes down the <!! is not a connection, but rather this:

#:cognitect.anomalies{:category :cognitect.anomalies/incorrect, :message "Incomplete or invalid connection config: {:timeout 60000, :account-id datomic.client/PRO_ACCOUNT, :access-key \"myaccesskey\", :secret \"mysecret\", :endpoint \"localhost:8998\", :service \"peer-server\", :region \"none\", :db-name \"hello\"}"}

Chris Bidler15:09:27

And I cannot tell what is “Incomplete or invalid” about that map, it seems to me to be exactly what I would submit at the command line

Chris Bidler15:09:38

Has anyone else encountered a similar problem and uh, solved it? 😇

Chris Bidler21:09:32

For people following along at home, the issue is that I was reading the config out of an EDN file, and therefore datomic.client/PRO_ACCOUNT was not being interpolated to its string value when passed in to datomic.client/connect

dimovich22:09:44

I have entities that have tags... How can I pull all entities that have at least one tag from a collection of tags that the user specifies?

hmaurer22:09:10

@dimovich not sure about the most efficient way, but you can definitely do it with or

hmaurer22:09:24

oh actually there is a better way

hmaurer22:09:26

Collection bindings

dimovich22:09:12

@hmaurer oh nice! thanks!