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

Public Member Functions

def __init__ (self, document)
 
def __repr__ (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 

Detailed Description

Represents an insert_one operation.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  document 
)
Create an InsertOne instance.

For use with :meth:`~pymongo.collection.Collection.bulk_write`.

:Parameters:
  - `document`: The document to insert. If the document is missing an
    _id field one will be added.

Member Function Documentation

◆ __eq__()

def __eq__ (   self,
  other 
)

◆ __ne__()

def __ne__ (   self,
  other 
)

◆ __repr__()

def __repr__ (   self)

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