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

Method _drop_global_statement_cache

asyncpg/connection.py:1795–1802  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1793 self._stmt_cache.clear()
1794
1795 def _drop_global_statement_cache(self):
1796 if self._proxy is not None:
1797 # This connection is a member of a pool, so we delegate
1798 # the cache drop to the pool.
1799 pool = self._proxy._holder._pool
1800 pool._drop_statement_cache()
1801 else:
1802 self._drop_local_statement_cache()
1803
1804 def _drop_local_type_cache(self):
1805 self._protocol.get_settings().clear_type_cache()

Callers 2

reload_schema_stateMethod · 0.95
_do_executeMethod · 0.95

Calls 2

_drop_statement_cacheMethod · 0.80

Tested by

no test coverage detected