Participer au site avec un Tip
Rechercher
 

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 :

Vous êtes un professionnel et vous avez besoin d'une formation ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé
Classe « AsyncMongoClient »

Méthode pymongo.AsyncMongoClient.drop_database

Signature de la méthode drop_database

def drop_database(self, name_or_database: 'Union[str, database.AsyncDatabase[_DocumentTypeArg]]', session: 'Optional[client_session.AsyncClientSession]' = None, comment: 'Optional[Any]' = None) -> 'None' 

Description

help(AsyncMongoClient.drop_database)

Drop a database.

Raises :class:`TypeError` if `name_or_database` is not an instance of
:class:`str` or :class:`~pymongo.asynchronous.database.AsyncDatabase`.

:param name_or_database: the name of a database to drop, or a
    :class:`~pymongo.asynchronous.database.AsyncDatabase` instance representing the
    database to drop
:param session: a
    :class:`~pymongo.asynchronous.client_session.AsyncClientSession`.
:param comment: A user-provided comment to attach to this
    command.

.. versionchanged:: 4.1
   Added ``comment`` parameter.

.. versionchanged:: 3.6
   Added ``session`` parameter.

.. note:: The :attr:`~pymongo.asynchronous.mongo_client.AsyncMongoClient.write_concern` of
   this client is automatically applied to this operation.

.. versionchanged:: 3.4
   Apply this client's write concern automatically to this operation
   when connected to MongoDB >= 3.4.



Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé