![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | finished |
def | transaction |
def | async_put |
def | async_delete |
def | commit |
def | async_commit |
def | rollback |
def | async_rollback |
![]() | |
def | __init__ |
def | adapter |
def | config |
def | is_pending |
def | get_pending_rpcs |
def | get_datastore_type |
def | wait_for_all_pending_rpcs |
def | check_rpc_success |
def | get |
def | async_get |
def | get_indexes |
def | async_get_indexes |
def | put |
def | async_put |
def | delete |
def | async_delete |
def | begin_transaction |
def | async_begin_transaction |
Additional Inherited Members | |
![]() | |
int | UNKNOWN_DATASTORE = 0 |
int | MASTER_SLAVE_DATASTORE = 1 |
int | HIGH_REPLICATION_DATASTORE = 2 |
create_rpc = _create_rpc | |
make_rpc_call = _make_rpc_call | |
int | MAX_RPC_BYTES = 1024 |
int | MAX_GET_KEYS = 1000 |
int | MAX_PUT_ENTITIES = 500 |
int | MAX_DELETE_KEYS = 500 |
int | MAX_ALLOCATE_IDS_KEYS = 500 |
int | DEFAULT_MAX_ENTITY_GROUPS_PER_RPC = 10 |
A connection specific to one transaction. It is possible to pass the transaction and entity group to the constructor, but typically the transaction is lazily created by _get_transaction() when the first operation is started.
def google.appengine.datastore.datastore_rpc.TransactionalConnection.__init__ | ( | self, | |
adapter = None , |
|||
config = None , |
|||
transaction = None , |
|||
entity_group = None , |
|||
_api_version = _DATASTORE_V3 |
|||
) |
Constructor. All arguments should be specified as keyword arguments. Args: adapter: Optional AbstractAdapter subclass instance; default IdentityAdapter. config: Optional Configuration object. transaction: Optional datastore_db.Transaction object. entity_group: Deprecated, do not use.
def google.appengine.datastore.datastore_rpc.TransactionalConnection.async_commit | ( | self, | |
config | |||
) |
Asynchronous Commit operation. Args: config: A Configuration object or None. Defaults are taken from the connection's default configuration. Returns: A MultiRpc object.
def google.appengine.datastore.datastore_rpc.TransactionalConnection.async_delete | ( | self, | |
config, | |||
keys, | |||
extra_hook = None |
|||
) |
Transactional asynchronous Delete operation. Args: config: A Configuration object or None. Defaults are taken from the connection's default configuration. keys: An iterable of user-level key objects. extra_hook: Optional function to be called once the RPC has completed. Returns: A MultiRpc object.
def google.appengine.datastore.datastore_rpc.TransactionalConnection.async_put | ( | self, | |
config, | |||
entities, | |||
extra_hook = None |
|||
) |
Transactional asynchronous Put operation. Args: config: A Configuration object or None. Defaults are taken from the connection's default configuration. entities: An iterable of user-level entity objects. extra_hook: Optional function to be called on the result once the RPC has completed. Returns: A MultiRpc object. NOTE: If any of the entities has an incomplete key, this will *not* patch up those entities with the complete key.
def google.appengine.datastore.datastore_rpc.TransactionalConnection.async_rollback | ( | self, | |
config | |||
) |
Asynchronous Rollback operation. Args: config: A Configuration object or None. Defaults are taken from the connection's default configuration. Returns: A MultiRpc object.
def google.appengine.datastore.datastore_rpc.TransactionalConnection.commit | ( | self | ) |
Synchronous Commit operation. Returns: True if the transaction was successfully committed. False if the backend reported a concurrent transaction error.
def google.appengine.datastore.datastore_rpc.TransactionalConnection.rollback | ( | self | ) |
Synchronous Rollback operation.