|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, selector, bulk, collation) |
| def | update_one (self, update) |
| def | update (self, update) |
| def | replace_one (self, replacement) |
| def | remove_one (self) |
| def | remove (self) |
| def | upsert (self) |
An interface for adding update or remove operations.
| def __init__ | ( | self, | |
| selector, | |||
| bulk, | |||
| collation | |||
| ) |
| def remove | ( | self | ) |
Remove all documents matching the selector criteria.
| def remove_one | ( | self | ) |
Remove a single document matching the selector criteria.
| def replace_one | ( | self, | |
| replacement | |||
| ) |
Replace one entire document matching the selector criteria. :Parameters: - `replacement` (dict): the replacement document
| def update | ( | self, | |
| update | |||
| ) |
Update all documents matching the selector criteria. :Parameters: - `update` (dict): the update operations to apply
| def update_one | ( | self, | |
| update | |||
| ) |
Update one document matching the selector criteria. :Parameters: - `update` (dict): the update operations to apply
| def upsert | ( | self | ) |
Specify that all chained update operations should be
upserts.
:Returns:
- A :class:`BulkUpsertOperation` instance, used to add
update operations to this bulk operation.