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

Class _EmptyServerSession

pymongo/synchronous/client_session.py:1156–1167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154
1155
1156class _EmptyServerSession:
1157 __slots__ = "dirty", "started_retryable_write"
1158
1159 def __init__(self) -> None:
1160 self.dirty = False
1161 self.started_retryable_write = False
1162
1163 def mark_dirty(self) -> None:
1164 self.dirty = True
1165
1166 def inc_transaction_id(self) -> None:
1167 self.started_retryable_write = True
1168
1169
1170class _ServerSession:

Callers 1

_start_sessionMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected