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

Method LastSequence

db/database_collection.go:256–258  ·  view source on GitHub ↗

LastSequence returns the highest sequence number allocated for this collection.

(ctx context.Context)

Source from the content-addressed store, hash-verified

254
255// LastSequence returns the highest sequence number allocated for this collection.
256func (c *DatabaseCollection) LastSequence(ctx context.Context) (uint64, error) {
257 return c.dbCtx.sequences.lastSequence(ctx)
258}
259
260// localDocExpirySecs returns the expiry for docs tracking Couchbase Lite replication state. This is controlled at the database level.
261func (c *DatabaseCollection) localDocExpirySecs() uint32 {

Callers 1

WaitForPendingChangesMethod · 0.95

Calls 1

lastSequenceMethod · 0.80

Tested by

no test coverage detected