![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | propagation |
def | xg |
def | retries |
def | app |
![]() | |
def | deadline |
def | on_completion |
def | read_policy |
def | force_writes |
def | max_entity_groups_per_rpc |
def | max_allocate_ids_keys |
def | max_rpc_bytes |
def | max_get_keys |
def | max_put_entities |
def | max_delete_keys |
![]() | |
def | __new__ |
def | __eq__ |
def | __ne__ |
def | __hash__ |
def | __repr__ |
def | is_configuration |
def | merge |
def | __getstate__ |
def | __setstate__ |
Static Public Attributes | |
int | NESTED = 1 |
int | MANDATORY = 2 |
int | ALLOWED = 3 |
int | INDEPENDENT = 4 |
![]() | |
int | STRONG_CONSISTENCY = 0 |
int | EVENTUAL_CONSISTENCY = 1 |
int | APPLY_ALL_JOBS_CONSISTENCY = 2 |
tuple | ALL_READ_POLICIES |
An immutable class that contains options for a transaction.
def google.appengine.datastore.datastore_rpc.TransactionOptions.app | ( | value | ) |
The application in which to perform the transaction. Raises: datastore_errors.BadArgumentError if value is not a string or is the empty string.
def google.appengine.datastore.datastore_rpc.TransactionOptions.propagation | ( | value | ) |
How existing transactions should be handled. One of NESTED, MANDATORY, ALLOWED, INDEPENDENT. The interpertation of these types is up to higher level run-in-transaction implementations. WARNING: Using anything other than NESTED for the propagation flag can have strange consequences. When using ALLOWED or MANDATORY, if an exception is raised, the transaction is likely not safe to commit. When using INDEPENDENT it is not generally safe to return values read to the caller (as they were not read in the caller's transaction). Raises: datastore_errors.BadArgumentError if value is not reconized.
def google.appengine.datastore.datastore_rpc.TransactionOptions.retries | ( | value | ) |
How many retries to attempt on the transaction. The exact retry logic is implemented in higher level run-in-transaction implementations. Raises: datastore_errors.BadArgumentError if value is not an integer or is not greater than zero.
def google.appengine.datastore.datastore_rpc.TransactionOptions.xg | ( | value | ) |
Whether to allow cross-group transactions. Raises: datastore_errors.BadArgumentError if value is not a bool.