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

Method GetDefaultDatabaseCollectionWithUser

db/database.go:2239–2248  ·  view source on GitHub ↗

GetDefaultDatabaseCollectionWithUser will return the default collection if the default collection is supplied in the database config.

()

Source from the content-addressed store, hash-verified

2237
2238// GetDefaultDatabaseCollectionWithUser will return the default collection if the default collection is supplied in the database config.
2239func (dbc *Database) GetDefaultDatabaseCollectionWithUser() (*DatabaseCollectionWithUser, error) {
2240 col, err := dbc.GetDefaultDatabaseCollection()
2241 if err != nil {
2242 return nil, err
2243 }
2244 return &DatabaseCollectionWithUser{
2245 DatabaseCollection: col,
2246 user: dbc.user,
2247 }, nil
2248}
2249
2250func (dbc *DatabaseContext) AuthenticatorOptions(ctx context.Context) auth.AuthenticatorOptions {
2251 defaultOptions := auth.DefaultAuthenticatorOptions(ctx)

Callers 4

collectionBlipHandlerFunction · 0.80
TestChannelViewFunction · 0.80
do_getMethod · 0.80
do_saveMethod · 0.80

Calls 1

Tested by 1

TestChannelViewFunction · 0.64