MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / create_in_memory_db_client

Function create_in_memory_db_client

api/database/database.py:18–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def create_in_memory_db_client() -> AgnosticDatabase:
19 global _db, in_memory_db
20 in_memory_db = pymongo_inmemory.MongoClient()["IQEngine"]
21 _db = AsyncIOMotorClient()["IQEngine"]
22 return _db
23
24
25def db() -> AgnosticDatabase:

Callers 1

dbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected