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

Method GetDatabaseConfig

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

Source from the content-addressed store, hash-verified

401}
402
403func (sc *ServerContext) GetDatabaseConfig(name string) *RuntimeDatabaseConfig {
404 sc._databasesLock.RLock()
405 config, ok := sc._dbConfigs[name]
406 sc._databasesLock.RUnlock()
407 if !ok {
408 return nil
409 }
410 return config
411}
412
413func (sc *ServerContext) AllDatabaseNames() []string {
414 sc._databasesLock.RLock()

Callers 8

GetDbConfigMethod · 0.95
handleFlushMethod · 0.80
handlePostIndexInitMethod · 0.80
handlePutDbConfigMethod · 0.80
getDBConfigMethod · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80