transactions-dotnet
Installation
SKILL.md
Couchbase Transactions — .NET
ACID multi-document transactions. All operations commit atomically or roll back entirely.
Version requirement: Distributed transactions require Couchbase Server 7.0+. The 6.6 developer preview is not recommended for production.
Bank Transfer Example
await cluster.Transactions().RunAsync(async (ctx) =>
{
var sender = await ctx.GetAsync(collection, "acct_alice");
var receiver = await ctx.GetAsync(collection, "acct_bob");
var senderDoc = sender.ContentAs<Dictionary<string, object>>();
var receiverDoc = receiver.ContentAs<Dictionary<string, object>>();