MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Upsert

Method Upsert

db/revision_cache_interface.go:173–175  ·  view source on GitHub ↗

Upsert is for per collection access to Upsert method

(ctx context.Context, docRev DocumentRevision)

Source from the content-addressed store, hash-verified

171
172// Upsert is for per collection access to Upsert method
173func (c *collectionRevisionCache) Upsert(ctx context.Context, docRev DocumentRevision) {
174 (*c.revCache).Upsert(ctx, docRev, c.collectionID)
175}
176
177// RemoveWithRev is for per collection access to Remove method
178func (c *collectionRevisionCache) RemoveWithRev(ctx context.Context, docID, revID string) {

Callers

nothing calls this directly

Calls 1

UpsertMethod · 0.65

Tested by

no test coverage detected