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

Method GetBucketName

rest/config.go:651–657  ·  view source on GitHub ↗

GetBucketName returns the bucket name associated with the database config.

()

Source from the content-addressed store, hash-verified

649
650// GetBucketName returns the bucket name associated with the database config.
651func (dbConfig *DbConfig) GetBucketName() string {
652 if dbConfig.Bucket != nil {
653 return *dbConfig.Bucket
654 }
655 // db name as fallback in the case of a `nil` bucket.
656 return dbConfig.Name
657}
658
659func (dbConfig *DbConfig) AutoImportEnabled(ctx context.Context) (bool, error) {
660 if dbConfig.AutoImport == nil {

Callers 5

handleCreateDBMethod · 0.80
FetchConfigsMethod · 0.80
computeMetadataIDMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected