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

Method SetAttachments

db/document.go:1455–1457  ·  view source on GitHub ↗

SetAttachments updates the attachments metadata for the document.

(attachments AttachmentsMeta)

Source from the content-addressed store, hash-verified

1453
1454// SetAttachments updates the attachments metadata for the document.
1455func (d *Document) SetAttachments(attachments AttachmentsMeta) {
1456 d._globalSync.Attachments = attachments
1457}
1458
1459// Attachments returns the attachments for the document.
1460func (d *Document) Attachments() AttachmentsMeta {

Callers 12

handleSyncFnDryRunMethod · 0.95
unmarshalDocumentFunction · 0.95
UnmarshalWithXattrsMethod · 0.95
importDocMethod · 0.95
PutMethod · 0.95
processRevMethod · 0.95
CreateDocNoHLVMethod · 0.95
resolveDocMergeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected