Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now available in preview.

google.appengine.datastore.datastore_rpc.TransactionMode

The mode of a Datastore transaction.

Inherits From: expected_type

Specifying the mode of the transaction can help to improve throughput, as it provides additional information about the intent (or lack of intent, in the case of a read only transaction) to perform a write as part of the transaction.

READ_ONLY 1
READ_WRITE 2
UNKNOWN 0