Collection
Methods for working with collections.
Collection
¶
Methods for working with collections.
Source code in src/scruby/mixins/collection.py
clear_collection(collection_name)
staticmethod
¶
Synchronous method to remove all documents from a collection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
collection_name
|
str
|
Collection name. |
required |
Returns:
| Type | Description |
|---|---|
None
|
None. |
Source code in src/scruby/mixins/collection.py
collection_list()
staticmethod
¶
Synchronous method for getting collection list.
collection_name()
¶
Asynchronous method for getting the collection name.
Returns:
| Type | Description |
|---|---|
str
|
Collection name. |