Defaults propagation to datastore_rpc.TransactionOptions.ALLOWED, which means
any existing transaction will be used in place of creating a new one.
WARNING: Reading from the datastore while in a transaction will not see any
changes made in the same transaction. If the function being decorated relies
on seeing all changes made in the calling scoope, set
propagation=datastore_rpc.TransactionOptions.NESTED.
Args
_func
do not use.
**kwargs
TransactionOptions configuration options.
Returns
A wrapper for the given function that creates a new transaction if needed.
[[["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 2022-09-30 UTC."],[[["This decorator ensures a function executes within a transaction."],["By default, it uses an existing transaction instead of creating a new one, and this can be changed."],["Reading from the datastore inside the transaction does not reflect changes made within the same transaction, thus using NESTED propagation will address this issue."],["It accepts `TransactionOptions` configuration arguments, but does not accept positional arguments."],["It returns a wrapper that initiates a transaction when necessary."]]],[]]