MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / __do_execute

Method __do_execute

asyncpg/prepared_stmt.py:254–265  ·  view source on GitHub ↗
(self, executor)

Source from the content-addressed store, hash-verified

252 ))
253
254 async def __do_execute(self, executor):
255 protocol = self._connection._protocol
256 try:
257 return await executor(protocol)
258 except exceptions.OutdatedSchemaCacheError:
259 await self._connection.reload_schema_state()
260 # We can not find all manually created prepared statements, so just
261 # drop known cached ones in the `self._connection`.
262 # Other manually created prepared statements will fail and
263 # invalidate themselves (unfortunately, clearing caches again).
264 self._state.mark_closed()
265 raise
266
267 async def __bind_execute(self, args, limit, timeout):
268 data, status, _ = await self.__do_execute(

Callers 3

fetchmanyMethod · 0.95
executemanyMethod · 0.95
__bind_executeMethod · 0.95

Calls 1

reload_schema_stateMethod · 0.80

Tested by

no test coverage detected