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

Function create_db_client

api/database/database.py:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def create_db_client() -> AgnosticDatabase:
12 global _db
13 connection_string = os.getenv("IQENGINE_METADATA_DB_CONNECTION_STRING")
14 _db = AsyncIOMotorClient(connection_string)["IQEngine"]
15 return _db
16
17
18def create_in_memory_db_client() -> AgnosticDatabase:

Callers 1

dbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected