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

Function DeleteAttachmentVersion

db/attachment.go:244–249  ·  view source on GitHub ↗

DeleteAttachmentVersion removes attachment versions from the AttachmentsMeta map specified.

(attachments AttachmentsMeta)

Source from the content-addressed store, hash-verified

242
243// DeleteAttachmentVersion removes attachment versions from the AttachmentsMeta map specified.
244func DeleteAttachmentVersion(attachments AttachmentsMeta) {
245 for _, value := range attachments {
246 meta := value.(map[string]interface{})
247 delete(meta, "ver")
248 }
249}
250
251// GetAttachment retrieves an attachment given its key.
252func (c *DatabaseCollection) GetAttachment(key string) ([]byte, error) {

Callers 5

sendRevisionMethod · 0.85
Mutable1xBodyMethod · 0.85
handleGetRevMethod · 0.85
GetDeltaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected