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

Function ParsePlainSequenceID

db/sequence_id.go:90–92  ·  view source on GitHub ↗

ParsePlainSequenceID will parse a plain sequence string - but not a JSON sequence string (e.g. accepts: `1::3` but not `"1::3"`) Calling this with a JSON string will result in an error. Use ParseJSONSequenceID instead.

(str string)

Source from the content-addressed store, hash-verified

88// ParsePlainSequenceID will parse a plain sequence string - but not a JSON sequence string (e.g. accepts: `1::3` but not `"1::3"`)
89// Calling this with a JSON string will result in an error. Use ParseJSONSequenceID instead.
90func ParsePlainSequenceID(str string) (s SequenceID, err error) {
91 return parseIntegerSequenceID(str)
92}
93
94func parseIntegerSequenceID(str string) (SequenceID, error) {
95 if str == "" {

Callers 10

handleChangesMethod · 0.92
StartPushWithOptsMethod · 0.92
setLastCheckpointSeqMethod · 0.85
ParseJSONSequenceIDFunction · 0.85
genExpectedForTestFunction · 0.85
genProcessedForTestFunction · 0.85

Calls 1

parseIntegerSequenceIDFunction · 0.85