We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents daa0027 + 7dcd496 commit 24ba02bCopy full SHA for 24ba02b
gcloud/datastore/transaction.py
@@ -70,23 +70,6 @@ class Transaction(Batch):
70
...
71
>>> assert not entity.key.is_partial # There *is* an ID.
72
73
- After completion, you can determine if a commit succeeded or failed.
74
- For example, trying to delete a key that doesn't exist::
75
-
76
- >>> with datastore.Transaction() as xact:
77
- ... xact.delete(key)
78
- ...
79
- >>> xact.succeeded
80
- False
81
82
- or successfully storing two entities:
83
84
85
- ... datastore.put([entity1, entity2])
86
87
88
- True
89
90
If you don't want to use the context manager you can initialize a
91
transaction manually::
92
0 commit comments