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) |
An interface for adding upsert operations.
def __init__ | ( | self, | |
selector, | |||
bulk, | |||
collation | |||
) |
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. :Parameters: - `update` (dict): the update operations to apply
def update_one | ( | self, | |
update | |||
) |
Update one document matching the selector. :Parameters: - `update` (dict): the update operations to apply