Documentation
¶
Overview ¶
Package conformance provides the reusable black-box contract suite for Ridu document-store adapters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LockedUpdate ¶ added in v0.15.0
func LockedUpdate(ctx context.Context, transaction Updater, request store.UpdateRequest) (store.Document, error)
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.
func Run ¶
Run executes the shared semantic contract for one adapter. Adapter packages should invoke Run from their own tests so their ordinary integration setup remains responsible for schema creation and external-service availability.
func RunWriteGuards ¶ added in v0.15.0
RunWriteGuards verifies the stored-version guards of the official adapters: an update refuses a Current that no longer describes the stored row, and saving revision 1 starts a document's version history, so a document created with the ID of a removed one never inherits its versions.