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

Method GetUserViewsEnabled

db/database.go:1999–2004  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1997}
1998
1999func (context *DatabaseContext) GetUserViewsEnabled() bool {
2000 if context.Options.UnsupportedOptions != nil && context.Options.UnsupportedOptions.UserViews != nil && context.Options.UnsupportedOptions.UserViews.Enabled != nil {
2001 return *context.Options.UnsupportedOptions.UserViews.Enabled
2002 }
2003 return false
2004}
2005
2006func (context *DatabaseContext) UseXattrs() bool {
2007 return context.Options.EnableXattr

Callers 2

PutDesignDocMethod · 0.80
QueryDesignDocMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected