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

Method GetCollectionID

db/database_collection.go:215–217  ·  view source on GitHub ↗

GetCollectionID returns a collectionID. If couchbase server does not return collections, it will return base.DefaultCollectionID, like the default collection for a Couchbase Server that does support collections.

()

Source from the content-addressed store, hash-verified

213
214// GetCollectionID returns a collectionID. If couchbase server does not return collections, it will return base.DefaultCollectionID, like the default collection for a Couchbase Server that does support collections.
215func (c *DatabaseCollection) GetCollectionID() uint32 {
216 return c.dataStore.GetCollectionID()
217}
218
219// GetRevisionCacheForTest allow accessing a copy of revision cache.
220func (c *DatabaseCollection) GetRevisionCacheForTest() *collectionRevisionCache {

Calls

no outgoing calls