![]() |
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 | new_transaction |
def | allocate_ids |
def | async_allocate_ids |
![]() | |
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 |
Transaction-less connection class. This contains those operations that are not allowed on transactional connections. (Currently only allocate_ids and reserve_key_ids.)
def google.appengine.datastore.datastore_rpc.Connection.__init__ | ( | self, | |
adapter = None , |
|||
config = 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.
def google.appengine.datastore.datastore_rpc.Connection.allocate_ids | ( | self, | |
key, | |||
size = None , |
|||
max = None |
|||
) |
Synchronous AllocateIds operation. Exactly one of size and max must be specified. Args: key: A user-level key object. size: Optional number of IDs to allocate. max: Optional maximum ID to allocate. Returns: A pair (start, end) giving the (inclusive) range of IDs allocation.
def google.appengine.datastore.datastore_rpc.Connection.async_allocate_ids | ( | self, | |
config, | |||
key, | |||
size = None , |
|||
max = None , |
|||
extra_hook = None |
|||
) |
Asynchronous AllocateIds operation. Args: config: A Configuration object or None. Defaults are taken from the connection's default configuration. key: A user-level key object. size: Optional number of IDs to allocate. max: Optional maximum ID to allocate. extra_hook: Optional function to be called on the result once the RPC has completed. Returns: A MultiRpc object.
def google.appengine.datastore.datastore_rpc.Connection.new_transaction | ( | self, | |
config = None |
|||
) |
Create a new transactional connection based on this one. This is different from, and usually preferred over, the begin_transaction() method; new_transaction() returns a new TransactionalConnection object. Args: config: A configuration object for the new connection, merged with this connection's config.