Skip to content

Commit

Permalink
Update docstring for 'Connection.save_entity'.
Browse files Browse the repository at this point in the history
Indicate that upsert clears existing properties before applying those
passed to the API.

Fixes #167.
  • Loading branch information
tseaver committed Oct 17, 2014
1 parent 906700b commit ef53536
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcloud/datastore/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ def commit(self, dataset_id, mutation_pb):
def save_entity(self, dataset_id, key_pb, properties):
"""Save an entity to the Cloud Datastore with the provided properties.
.. note::
Any existing properties for the entity will be cleared before
applying those passed in 'properties'.
:type dataset_id: string
:param dataset_id: The dataset in which to save the entity.
Expand Down

0 comments on commit ef53536

Please sign in to comment.