From 513b10ff31e3c41dcfb13bd293bf1eb93f274e5c Mon Sep 17 00:00:00 2001 From: Spencer Lin Date: Fri, 5 Jun 2020 11:26:05 -0700 Subject: [PATCH] Add eventual consistency example. --- datastore/cloud-client/snippets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datastore/cloud-client/snippets.py b/datastore/cloud-client/snippets.py index 97ff5d41cd9..198d0257595 100644 --- a/datastore/cloud-client/snippets.py +++ b/datastore/cloud-client/snippets.py @@ -784,7 +784,8 @@ def property_by_kind_run_query(client): def eventual_consistent_query(client): # [START datastore_eventual_consistent_query] - # Read consistency cannot be specified in google-cloud-python. + query = client.query(kind='Task') + query.fetch(eventual=True) # [END datastore_eventual_consistent_query] pass