MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / fetchone

Method fetchone

app/api/agentops/exporter/processor.py:171–176  ·  view source on GitHub ↗
(self, query: str, **kwargs)

Source from the content-addressed store, hash-verified

169 yield self.get_model_instance(**row)
170
171 async def fetchone(self, query: str, **kwargs) -> BaseModel:
172 query = query.format(table_name=self.table_name, **kwargs)
173 async with get_supabase_pool().connection() as conn:
174 async with conn.cursor(row_factory=psycopg.rows.dict_row) as cur:
175 await cur.execute(query)
176 return self.get_model_instance(**await cur.fetchone())
177
178
179supabase = SupabaseExporter

Callers 3

getMethod · 0.80
count_session_rowsFunction · 0.80

Calls 3

get_model_instanceMethod · 0.95
get_supabase_poolFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected