Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datastore: Support insert and update #872

Closed
apstndb opened this issue Jan 26, 2018 · 2 comments
Closed

datastore: Support insert and update #872

apstndb opened this issue Jan 26, 2018 · 2 comments
Assignees

Comments

@apstndb
Copy link
Contributor

apstndb commented Jan 26, 2018

Cloud Datastore API have support of insert and update as primitive mutation
but google-cloud-go support upsert and delete only.
https://cloud.google.com/datastore/docs/reference/rpc/google.datastore.v1?hl=en#mutation

We often implement insert or update using transaction.
It can be avoided by support primitive insert and update.

Ruby and Node.js and .NET client library already support it.
googleapis/google-cloud-ruby#680
https://cloud.google.com/nodejs/docs/reference/datastore/1.3.x/DatastoreRequest#save
http://googlecloudplatform.github.io/google-cloud-dotnet/docs/Google.Cloud.Datastore.V1/api/Google.Cloud.Datastore.V1.Mutation.html

I guess the reason may be that AppEngine SDK haven't support of the mutation options and it can be confusing.

(Added) I noticed that Java and PHP client library also support it.

@jba
Copy link
Contributor

jba commented Jan 29, 2018

@jba
Copy link
Contributor

jba commented Feb 12, 2018

This was done in 02a2d93.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants