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

Method insert_docs

test/test_examples.py:743–748  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

741 done = False
742
743 def insert_docs():
744 nonlocal done
745 while not done:
746 db.inventory.insert_one({"username": "alice"})
747 db.inventory.delete_one({"username": "alice"})
748 time.sleep(0.005)
749
750 t = ConcurrentRunner(target=insert_docs)
751 t.start()

Callers

nothing calls this directly

Calls 2

insert_oneMethod · 0.45
delete_oneMethod · 0.45

Tested by

no test coverage detected