hasDefaultCollection is true if the database is configured with default collection
()
| 2192 | |
| 2193 | // hasDefaultCollection is true if the database is configured with default collection |
| 2194 | func (dbCtx *DatabaseContext) HasDefaultCollection() bool { |
| 2195 | _, exists := dbCtx.CollectionByID[base.DefaultCollectionID] |
| 2196 | return exists |
| 2197 | } |
| 2198 | |
| 2199 | // GetDatabaseCollectionWithUser returns a DatabaseCollectionWithUser if the collection exists on the database, otherwise error. |
| 2200 | func (dbc *Database) GetDatabaseCollectionWithUser(scopeName, collectionName string) (*DatabaseCollectionWithUser, error) { |
no outgoing calls
no test coverage detected