OpenQuizz
Une application de gestion des contenus pédagogiques
BulkUpsertOperation Class Reference
Inheritance diagram for BulkUpsertOperation:
Collaboration diagram for BulkUpsertOperation:

Public Member Functions

def __init__ (self, selector, bulk, collation)
 
def update_one (self, update)
 
def update (self, update)
 
def replace_one (self, replacement)
 

Detailed Description

An interface for adding upsert operations.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  selector,
  bulk,
  collation 
)

Member Function Documentation

◆ replace_one()

def replace_one (   self,
  replacement 
)
Replace one entire document matching the selector criteria.

:Parameters:
  - `replacement` (dict): the replacement document

◆ update()

def update (   self,
  update 
)
Update all documents matching the selector.

:Parameters:
  - `update` (dict): the update operations to apply

◆ update_one()

def update_one (   self,
  update 
)
Update one document matching the selector.

:Parameters:
  - `update` (dict): the update operations to apply

The documentation for this class was generated from the following file: