Create an rpc for use in configuring datastore calls.
google.appengine.ext.db.create_rpc(
deadline=None, callback=None, read_policy=STRONG_CONSISTENCY
)
NOTE: This functions exists for backwards compatibility. Please use
create_config()
instead. NOTE: the latter uses on_completion
,
which is a function taking an argument, wherease create_rpc
uses
callback
which is a function without arguments.
Args |
deadline
|
float, deadline for calls in seconds.
|
callback
|
callable, a callback triggered when this rpc completes,
accepts one argument: the returned rpc.
|
read_policy
|
flag, set to EVENTUAL_CONSISTENCY to enable eventually
consistent reads
|
Returns |
A datastore.DatastoreRPC instance.
|