Details
Description
The Cofiguration section only mentions the global TransactionsConfig. We should also mention the per-transaction TransactionOptions, as that's a common use case.
In Python the relevant snippet would be something like:
opts = TransactionOptions(durability=ServerDurability(DurabilityLevel.PERSIST_TO_MAJORITY))
|
|
cluster.transactions.run(txn_logic, opts)
|
Links to relevant section in a few SDKs:
- https://docs.couchbase.com/python-sdk/current/howtos/distributed-acid-transactions-from-the-sdk.html#configuration
- https://docs.couchbase.com/cxx-sdk/current/howtos/distributed-acid-transactions-from-the-sdk.html#configuration
- https://docs.couchbase.com/scala-sdk/current/howtos/distributed-acid-transactions-from-the-sdk.html#configuration