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

Method SetUserViewsEnabled

db/database.go:2039–2047  ·  view source on GitHub ↗
(value bool)

Source from the content-addressed store, hash-verified

2037}
2038
2039func (context *DatabaseContext) SetUserViewsEnabled(value bool) {
2040 if context.Options.UnsupportedOptions == nil {
2041 context.Options.UnsupportedOptions = &UnsupportedOptions{}
2042 }
2043 if context.Options.UnsupportedOptions.UserViews == nil {
2044 context.Options.UnsupportedOptions.UserViews = &UserViewsOptions{}
2045 }
2046 context.Options.UnsupportedOptions.UserViews.Enabled = &value
2047}
2048
2049func initDatabaseStats(ctx context.Context, dbName string, autoImport bool, options DatabaseContextOptions) (*base.DbStats, error) {
2050

Callers 3

TestViewQueryUserAccessFunction · 0.80
TestUserViewQueryFunction · 0.80
TestViewQueryWrappersFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestViewQueryUserAccessFunction · 0.64
TestUserViewQueryFunction · 0.64
TestViewQueryWrappersFunction · 0.64