Documentation ¶
Index ¶
- type Collections
- func (c Collections) CheckIfExists(collectionID model.Identifier) (bool, *model.Collection)
- func (c Collections) CreateCollection(collectionID model.Identifier, schema model.Schema, ...) *wdbErrors.WdbError
- func (c Collections) DeleteCollection(collectionID model.Identifier)
- func (c Collections) GetCollection(collectionID model.Identifier) *model.Collection
- func (c Collections) UpdateMetadata(collectionID model.Identifier)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collections ¶
type Collections map[model.Identifier]*model.Collection
func UseDatabase ¶
func UseDatabase(database *model.Database) Collections
func (Collections) CheckIfExists ¶
func (c Collections) CheckIfExists(collectionID model.Identifier) (bool, *model.Collection)
func (Collections) CreateCollection ¶
func (c Collections) CreateCollection(collectionID model.Identifier, schema model.Schema, primaryKey *model.Identifier) *wdbErrors.WdbError
func (Collections) DeleteCollection ¶
func (c Collections) DeleteCollection(collectionID model.Identifier)
func (Collections) GetCollection ¶
func (c Collections) GetCollection(collectionID model.Identifier) *model.Collection
func (Collections) UpdateMetadata ¶ added in v1.2.2
func (c Collections) UpdateMetadata(collectionID model.Identifier)
Click to show internal directories.
Click to hide internal directories.