function
LockedUpdate
LockedUpdate performs a direct store update the way the operation engine does: it reads the update's document with Request.CurrentRequest and supplies that document as the required Current.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
transaction | Updater | The transaction value. |
request | store.UpdateRequest | The request value. |
Returns
The declared result.
(store.Document, error)Full signature
func LockedUpdate(
ctx context.Context,
transaction Updater,
request store.UpdateRequest,
) (store.Document, error)Related types
UpdaterUpdater is the update surface of a store transaction.
UpdateRequestAn authorized update with values and one explicit publication-head intent.
DocumentA stored document with status and version metadata.