MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _drop_global_statement_cache

Method _drop_global_statement_cache

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

Source from the content-addressed store, hash-verified

1824 self._stmt_cache.clear()
1825
1826 def _drop_global_statement_cache(self):
1827 if self._proxy is not None:
1828 # This connection is a member of a pool, so we delegate
1829 # the cache drop to the pool.
1830 pool = self._proxy._holder._pool
1831 pool._drop_statement_cache()
1832 else:
1833 self._drop_local_statement_cache()
1834
1835 def _drop_local_type_cache(self):
1836 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