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

Method set

gridfs/synchronous/grid_file.py:1244–1247  ·  view source on GitHub ↗
(self, name: str, value: Any)

Source from the content-addressed store, hash-verified

1242 )
1243
1244 def set(self, name: str, value: Any) -> None:
1245 self._file[name] = value
1246 if self._closed:
1247 self._coll.files.update_one({"_id": self._file["_id"]}, {"$set": {name: value}})
1248
1249 def _flush_data(self, data: Any, force: bool = False) -> None:
1250 """Flush `data` to a chunk."""

Callers 14

test_set_after_closeMethod · 0.95
_test_no_gc_deadlockMethod · 0.45
test_session_gcMethod · 0.45
lock_poolMethod · 0.45
_test_no_gc_deadlockMethod · 0.45
test_session_gcMethod · 0.45
lock_poolMethod · 0.45
taskMethod · 0.45
reset_allFunction · 0.45
set_rttFunction · 0.45
__enter__Method · 0.45

Calls 1

update_oneMethod · 0.45

Tested by 9

test_set_after_closeMethod · 0.76
_test_no_gc_deadlockMethod · 0.36
test_session_gcMethod · 0.36
lock_poolMethod · 0.36
_test_no_gc_deadlockMethod · 0.36
test_session_gcMethod · 0.36
lock_poolMethod · 0.36
taskMethod · 0.36