Skip to content

Commit 1cb0963

Browse files
sdlinBenWhitehead
andauthored
Add eventual consistency example. (GoogleCloudPlatform#3976)
Co-authored-by: BenWhitehead <BenWhitehead@users.noreply.github.com>
1 parent add3a08 commit 1cb0963

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datastore/cloud-client/snippets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,8 @@ def property_by_kind_run_query(client):
784784

785785
def eventual_consistent_query(client):
786786
# [START datastore_eventual_consistent_query]
787-
# Read consistency cannot be specified in google-cloud-python.
787+
query = client.query(kind='Task')
788+
query.fetch(eventual=True)
788789
# [END datastore_eventual_consistent_query]
789790
pass
790791

0 commit comments

Comments
 (0)