Create an rpc for use in configuring datastore calls.
google.appengine.api.datastore.CreateRPC(
service='datastore_v3',
deadline=None,
callback=None,
read_policy=None
)
NOTE: This functions exists for backwards compatibility. Please use
CreateConfig()
instead. NOTE: the latter uses 'on_completion',
which is a function taking an argument, wherease CreateRPC
uses
'callback' which is a function without arguments.
Args |
service
|
Optional string; for backwards compatibility, must be
'datastore_v3'.
|
deadline
|
Optional int or float, deadline for calls in seconds.
|
callback
|
Optional callable, a callback triggered when this rpc
completes; takes no arguments.
|
read_policy
|
Optional read policy; set to EVENTUAL_CONSISTENCY to
enable eventually consistent reads (i.e. reads that may be
satisfied from an older version of the datastore in some cases).
The default read policy may have to wait until in-flight
transactions are committed.
|
Returns |
A UserRPC instance.
|