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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["`CreateRPC` is a function for configuring datastore calls, primarily for backwards compatibility."],["The function accepts parameters such as `service` (must be 'datastore_v3'), `deadline` (time limit for calls), `callback` (a function without arguments that will be triggered upon completion), and `read_policy` (which can be set to enable eventually consistent reads)."],["This function is for legacy purposes; it is recommended to use `CreateConfig()` instead, which utilizes 'on_completion' (a function taking an argument) rather than `CreateRPC`'s 'callback'."],["`CreateRPC` returns a `UserRPC` instance."]]],[]]