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

Function _disallow_transactions

gridfs/asynchronous/grid_file.py:65–67  ·  view source on GitHub ↗
(session: Optional[AsyncClientSession])

Source from the content-addressed store, hash-verified

63
64
65def _disallow_transactions(session: Optional[AsyncClientSession]) -> None:
66 if session and session.in_transaction:
67 raise InvalidOperation("GridFS does not support multi-document transactions")
68
69
70class AsyncGridFS:

Callers 15

get_versionMethod · 0.70
deleteMethod · 0.70
listMethod · 0.70
find_oneMethod · 0.70
existsMethod · 0.70
deleteMethod · 0.70
delete_by_nameMethod · 0.70
renameMethod · 0.70
rename_by_nameMethod · 0.70
__init__Method · 0.70
_ensure_indexesMethod · 0.70

Calls 1

InvalidOperationClass · 0.90

Tested by

no test coverage detected