MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / clear_compiled_cache

Method clear_compiled_cache

lib/sqlalchemy/engine/base.py:2977–2989  ·  view source on GitHub ↗

Clear the compiled cache associated with the dialect. This applies **only** to the built-in cache that is established via the :paramref:`_engine.create_engine.query_cache_size` parameter. It will not impact any dictionary caches that were passed via the :paramref:`.C

(self)

Source from the content-addressed store, hash-verified

2975 return self
2976
2977 def clear_compiled_cache(self) -> None:
2978 """Clear the compiled cache associated with the dialect.
2979
2980 This applies **only** to the built-in cache that is established
2981 via the :paramref:`_engine.create_engine.query_cache_size` parameter.
2982 It will not impact any dictionary caches that were passed via the
2983 :paramref:`.Connection.execution_options.compiled_cache` parameter.
2984
2985 .. versionadded:: 1.4
2986
2987 """
2988 if self._compiled_cache:
2989 self._compiled_cache.clear()
2990
2991 def update_execution_options(self, **opt: Any) -> None:
2992 r"""Update the default execution_options dictionary

Calls 1

clearMethod · 0.45