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

Method GetDbConfig

rest/server_context.go:396–401  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

394}
395
396func (sc *ServerContext) GetDbConfig(name string) *DbConfig {
397 if dbConfig := sc.GetDatabaseConfig(name); dbConfig != nil {
398 return &dbConfig.DbConfig
399 }
400 return nil
401}
402
403func (sc *ServerContext) GetDatabaseConfig(name string) *RuntimeDatabaseConfig {
404 sc._databasesLock.RLock()

Calls 1

GetDatabaseConfigMethod · 0.95