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

Method HasDefaultCollection

db/database.go:2194–2197  ·  view source on GitHub ↗

hasDefaultCollection is true if the database is configured with default collection

()

Source from the content-addressed store, hash-verified

2192
2193// hasDefaultCollection is true if the database is configured with default collection
2194func (dbCtx *DatabaseContext) HasDefaultCollection() bool {
2195 _, exists := dbCtx.CollectionByID[base.DefaultCollectionID]
2196 return exists
2197}
2198
2199// GetDatabaseCollectionWithUser returns a DatabaseCollectionWithUser if the collection exists on the database, otherwise error.
2200func (dbc *Database) GetDatabaseCollectionWithUser(scopeName, collectionName string) (*DatabaseCollectionWithUser, error) {

Callers 3

getAuditEventAccessFunction · 0.80
collectionBlipHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected