Skip to content

Commit ef53536

Browse files
committed
Update docstring for 'Connection.save_entity'.
Indicate that upsert clears existing properties before applying those passed to the API. Fixes #167.
1 parent 906700b commit ef53536

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gcloud/datastore/connection.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ def commit(self, dataset_id, mutation_pb):
338338
def save_entity(self, dataset_id, key_pb, properties):
339339
"""Save an entity to the Cloud Datastore with the provided properties.
340340
341+
.. note::
342+
Any existing properties for the entity will be cleared before
343+
applying those passed in 'properties'.
344+
341345
:type dataset_id: string
342346
:param dataset_id: The dataset in which to save the entity.
343347

0 commit comments

Comments
 (0)