MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / raw_query

Method raw_query

src/core/db/repository.py:382–387  ·  view source on GitHub ↗
(self, query: str, params: dict[str, Any] | None = None)

Source from the content-addressed store, hash-verified

380 return query
381
382 async def raw_query(self, query: str, params: dict[str, Any] | None = None) -> Any:
383 from sqlalchemy import text
384
385 async with self.get_session() as session:
386 result = await session.execute(text(query), params or {})
387 return result
388
389 @asynccontextmanager
390 async def get_session(self):

Callers

nothing calls this directly

Calls 2

get_sessionMethod · 0.95
executeMethod · 0.45

Tested by

no test coverage detected