Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
18
def
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
25
def
db() -> AgnosticDatabase:
Callers
1
db
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected