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

Method CV

db/document.go:136–141  ·  view source on GitHub ↗

CV returns the CurrentVersion if available, otherwise returns an empty string.

()

Source from the content-addressed store, hash-verified

134
135// CV returns the CurrentVersion if available, otherwise returns an empty string.
136func (sd *SyncData) CV() string {
137 if sd == nil {
138 return ""
139 }
140 return sd.RevAndVersion.CV()
141}
142
143// CVOrRevTreeID() returns the CurrentVersion if available, otherwise falls back to returning the RevTreeID or an empty string.
144func (sd *SyncData) CVOrRevTreeID() string {

Callers 4

handleBulkDocsMethod · 0.45
CVOrRevTreeIDMethod · 0.45
IsSGWriteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected