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

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
transactionUpdaterThe transaction value.
requeststore.UpdateRequestThe request value.

Returns

The declared result.

(store.Document, error)

Full signature

func LockedUpdate( ctx context.Context, transaction Updater, request store.UpdateRequest, ) (store.Document, error)

Source store/conformance/update.go:18

Related types

  • Updater

    Updater is the update surface of a store transaction.

  • UpdateRequest

    An authorized update with values and one explicit publication-head intent.

  • Document

    A stored document with status and version metadata.