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

Method UpdateBody

db/document.go:318–321  ·  view source on GitHub ↗
(body Body)

Source from the content-addressed store, hash-verified

316}
317
318func (doc *Document) UpdateBody(body Body) {
319 doc._body = body
320 doc._rawBody = nil
321}
322
323// Marshals both the body and sync data for a given document. If there is no rawbody already available then we will
324// marshall it all in one go. Otherwise we will reduce marshalling as much as possible by only marshalling the sync data

Callers 8

handleSyncFnDryRunMethod · 0.95
importDocMethod · 0.95
PutMethod · 0.95
processRevMethod · 0.95
CreateDocNoHLVMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected