MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _start_session

Method _start_session

pymongo/synchronous/mongo_client.py:1391–1394  ·  view source on GitHub ↗
(self, implicit: bool, **kwargs: Any)

Source from the content-addressed store, hash-verified

1389 self._kill_cursors_queue.append((address, cursor_id, conn_mgr))
1390
1391 def _start_session(self, implicit: bool, **kwargs: Any) -> ClientSession:
1392 server_session = _EmptyServerSession()
1393 opts = client_session.SessionOptions(**kwargs)
1394 return client_session.ClientSession(self, server_session, opts, implicit)
1395
1396 def start_session(
1397 self,

Callers 2

start_sessionMethod · 0.95
_ensure_sessionMethod · 0.95

Calls 1

_EmptyServerSessionClass · 0.90

Tested by

no test coverage detected