peburrows / diplomat

Elixir library for interacting with Google's Cloud Datastore
94 stars 22 forks source link

Does not respect namespace #11

Closed pdilyard closed 7 years ago

pdilyard commented 7 years ago

I created a key with a namespace, and then used that key to create an entity, but the entity was insert into the [default] namespace in Datastore.

peburrows commented 7 years ago

Sorry, I've been gone on vacation for the last week and a half. I'll give this a look as soon as I catch up on my backlog from being out.

pdilyard commented 7 years ago

No worries, thank you

peburrows commented 7 years ago

@pdilyard, can you try the namespaces branch and see if that fixes your issue? Inserting should be as before, by creating a key with a namespace; querying will require passing the namespace as the second parameter, ala:

"select * from Message"
|> Query.new
|> Query.execute("my-namespace")