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

Method UseLegacySyncDocsIndex

db/database.go:910–912  ·  view source on GitHub ↗

UseLegacySyncDocsIndex returns true there is an index over all docs starting with _sync, or if there are individual indexes for users and roles.

()

Source from the content-addressed store, hash-verified

908
909// UseLegacySyncDocsIndex returns true there is an index over all docs starting with _sync, or if there are individual indexes for users and roles.
910func (context *DatabaseContext) UseLegacySyncDocsIndex() bool {
911 return context.Options.UseLegacySyncDocsIndex
912}
913
914// Makes a Database object given its name and bucket.
915func GetDatabase(context *DatabaseContext, user auth.User) (*Database, error) {

Callers 11

BuildUsersQueryMethod · 0.95
BuildRolesQueryMethod · 0.95
QueryAllRolesMethod · 0.95
AllPrincipalIDsMethod · 0.95
handlePostIndexInitMethod · 0.80
TestResyncWithoutIndexesFunction · 0.80
TestPostUpgradeFunction · 0.80
TestInitializeIndexesFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestResyncWithoutIndexesFunction · 0.64
TestPostUpgradeFunction · 0.64
TestInitializeIndexesFunction · 0.64