| __class_getitem__ |
Parameterizes a generic class. [extrait de __class_getitem__.__doc__] |
| __copy__(self) -> 'Cursor[_DocumentType]' |
Support function for `copy.copy()`. [extrait de __copy__.__doc__] |
| __deepcopy__(self, memo: 'Any') -> 'Any' |
Support function for `copy.deepcopy()`. [extrait de __deepcopy__.__doc__] |
| __del__(self) -> 'None' |
|
| __enter__(self) -> 'Cursor[_DocumentType]' |
|
| __exit__(self, exc_type: 'Any', exc_val: 'Any', exc_tb: 'Any') -> 'None' |
|
| __iter__(self) -> 'Cursor[_DocumentType]' |
|
| __next__(self) -> '_DocumentType' |
|
| add_option(self, mask: 'int') -> 'Cursor[_DocumentType]' |
Set arbitrary query flags using a bitmask. [extrait de add_option.__doc__] |
| allow_disk_use(self, allow_disk_use: 'bool') -> 'Cursor[_DocumentType]' |
Specifies whether MongoDB can use temporary disk files while [extrait de allow_disk_use.__doc__] |
| batch_size(self, batch_size: 'int') -> 'Cursor[_DocumentType]' |
Limits the number of documents returned in one batch. Each batch [extrait de batch_size.__doc__] |
| clone(self) -> 'Cursor[_DocumentType]' |
Get a clone of this cursor. [extrait de clone.__doc__] |
| close(self) -> 'None' |
Explicitly close / kill this cursor. [extrait de close.__doc__] |
| collation(self, collation: 'Optional[_CollationIn]') -> 'Cursor[_DocumentType]' |
Adds a :class:`~pymongo.collation.Collation` to this query. [extrait de collation.__doc__] |
| comment(self, comment: 'Any') -> 'Cursor[_DocumentType]' |
Adds a 'comment' to the cursor. [extrait de comment.__doc__] |
| distinct(self, key: 'str') -> 'list' |
Get a list of distinct values for `key` among all documents [extrait de distinct.__doc__] |
| explain(self) -> '_DocumentType' |
Returns an explain plan record for this cursor. [extrait de explain.__doc__] |
| hint(self, index: 'Optional[_Hint]') -> 'Cursor[_DocumentType]' |
Adds a 'hint', telling Mongo the proper index to use for the query. [extrait de hint.__doc__] |
| limit(self, limit: 'int') -> 'Cursor[_DocumentType]' |
Limits the number of results to be returned by this cursor. [extrait de limit.__doc__] |
| max(self, spec: '_Sort') -> 'Cursor[_DocumentType]' |
Adds ``max`` operator that specifies upper bound for specific index. [extrait de max.__doc__] |
| max_await_time_ms(self, max_await_time_ms: 'Optional[int]') -> 'Cursor[_DocumentType]' |
Specifies a time limit for a getMore operation on a [extrait de max_await_time_ms.__doc__] |
| max_scan(self, max_scan: 'Optional[int]') -> 'Cursor[_DocumentType]' |
**DEPRECATED** - Limit the number of documents to scan when [extrait de max_scan.__doc__] |
| max_time_ms(self, max_time_ms: 'Optional[int]') -> 'Cursor[_DocumentType]' |
Specifies a time limit for a query operation. If the specified [extrait de max_time_ms.__doc__] |
| min(self, spec: '_Sort') -> 'Cursor[_DocumentType]' |
Adds ``min`` operator that specifies lower bound for specific index. [extrait de min.__doc__] |
| next(self) -> '_DocumentType' |
Advance the cursor. [extrait de next.__doc__] |
| remove_option(self, mask: 'int') -> 'Cursor[_DocumentType]' |
Unset arbitrary query flags using a bitmask. [extrait de remove_option.__doc__] |
| rewind(self) -> 'Cursor[_DocumentType]' |
Rewind this cursor to its unevaluated state. [extrait de rewind.__doc__] |
| skip(self, skip: 'int') -> 'Cursor[_DocumentType]' |
Skips the first `skip` results of this cursor. [extrait de skip.__doc__] |
| sort(self, key_or_list: '_Hint', direction: 'Optional[Union[int, str]]' = None) -> 'Cursor[_DocumentType]' |
Sorts this cursor's results. [extrait de sort.__doc__] |
| to_list(self, length: 'Optional[int]' = None) -> 'list[_DocumentType]' |
Converts the contents of this cursor to a list more efficiently than ``[doc for doc in cursor]``. [extrait de to_list.__doc__] |
| where(self, code: 'Union[str, Code]') -> 'Cursor[_DocumentType]' |
Adds a `$where`_ clause to this query. [extrait de where.__doc__] |
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :