MCPcopy Create free account
hub / github.com/piccolo-orm/piccolo / __aenter__

Method __aenter__

piccolo/engine/sqlite.py:361–366  ·  view source on GitHub ↗
(self: Self)

Source from the content-addressed store, hash-verified

359 return response
360
361 async def __aenter__(self: Self) -> Self:
362 querystring = self.query.querystrings[0]
363 template, template_args = querystring.compile_string()
364
365 self._cursor = await self.connection.execute(template, *template_args)
366 return self
367
368 async def __aexit__(self, exception_type, exception, traceback):
369 await self.cursor.close()

Callers

nothing calls this directly

Calls 1

compile_stringMethod · 0.80

Tested by

no test coverage detected