#include "tensorstore/kvstore/kvstore.h"
friend Result<KvStore>
tensorstore::kvstore::KvStore::ApplyTensorStoreTransaction(
    
KvStore store,
    
Transaction transaction);

Changes to a new transaction.

Fails if store is already associated with an uncommitted transaction.

This is intended to be used with the “pipeline” operator|.

Example:

tensorstore::KvStore store = ...;
auto transaction = tensorstore::Transaction(tensorstore::isolated);
TENSORSTORE_ASSIGN_OR_RETURN(store, store | transaction);