crandas.transactions
Transaction implementation.
Transaction(*, session=None, dummy_for=False, name=None, add_nonce=False, _keep=None, **execute_args)
Transaction context manager
When used as a context manager (i.e., in a with Transaction(): block),
causes all commands in the context to be executed at the server as a
single unit.
Start a transaction.
Takes command options and execution options.
Command options are applied to the commands of the transaction as specified below. Execution options are applied to the transaction as a whole. See Query Arguments for more information.
Command options
The following command options are supported for a transaction:
-
Deprecated
name(str, default:None) - If given, applied to final command of transaction (deprecated useobj.save(name=...)instead) -
Deprecated
dummy_for(str, optional) - If given, applied to final command of transaction (deprecated useobj.save(name=...)instead) add_nonce(bool, default:False) - If given, applied to all commands of transaction
show_transaction_graph(t, outfile)
Generates a transaction graph
| PARAMETER | DESCRIPTION |
|---|---|
t
|
the Transaction to be graphed
TYPE:
|
outfile
|
name of the output file
TYPE:
|