You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supported @ref ydb::TableClient::RetryTx handle for execution lambda in a transaction with automatic retries.
Transaction lambda accepts @ref ydb:TxActor as an argument. A return object is @ref ydb::TxAction enum, an action at end of transcaction, commit or rollback.
@ref ydb:TxActor allows to execute request inside of interactive transaction via @ref ydb:TxActor::Execute handle.
An example of usage of @ref ydb::TableClient::RetryTx:
@code{.cpp}
client.RetryTx("my_tx", {.retries = 3},
[](ydb::TxActor& tx) {
tx.Execute(query, "$id", 1);
return ydb::TxAction::kCommit;
});
@Endcode
commit_hash:d09b5ecf9d92850f15c3f918b059716c27793c76
0 commit comments