MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / get_db_pool

Function get_db_pool

examples/mcpserver/memory.py:74–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73
74async def get_db_pool() -> asyncpg.Pool:
75 async def init(conn):
76 await conn.execute("CREATE EXTENSION IF NOT EXISTS vector;")
77 await register_vector(conn)
78
79 pool = await asyncpg.create_pool(DB_DSN, init=init)
80 return pool
81
82
83class MemoryNode(BaseModel):

Callers 2

rememberFunction · 0.85
read_profileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected