()
| 72 | |
| 73 | |
| 74 | async 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 | |
| 83 | class MemoryNode(BaseModel): |
no outgoing calls
no test coverage detected