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