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 ? Programmation Python
Les compléments
Voir le programme détaillé
Classe « AsyncMongoClient »

Méthode pymongo.AsyncMongoClient.start_session

Signature de la méthode start_session

def start_session(self, causal_consistency: 'Optional[bool]' = None, default_transaction_options: 'Optional[client_session.TransactionOptions]' = None, snapshot: 'Optional[bool]' = False) -> 'client_session.AsyncClientSession' 

Description

help(AsyncMongoClient.start_session)

Start a logical session.

This method takes the same parameters as
:class:`~pymongo.asynchronous.client_session.SessionOptions`. See the
:mod:`~pymongo.asynchronous.client_session` module for details and examples.

A :class:`~pymongo.asynchronous.client_session.AsyncClientSession` may only be used with
the AsyncMongoClient that started it. :class:`AsyncClientSession` instances are
**not thread-safe or fork-safe**. They can only be used by one thread
or process at a time. A single :class:`AsyncClientSession` cannot be used
to run multiple operations concurrently.

:return: An instance of :class:`~pymongo.asynchronous.client_session.AsyncClientSession`.

.. versionadded:: 3.6


Vous êtes un professionnel et vous avez besoin d'une formation ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé