MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / clear_compiled_cache

Method clear_compiled_cache

lib/sqlalchemy/engine/base.py:3010–3022  ·  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

3008 return self
3009
3010 def clear_compiled_cache(self) -> None:
3011 """Clear the compiled cache associated with the dialect.
3012
3013 This applies **only** to the built-in cache that is established
3014 via the :paramref:`_engine.create_engine.query_cache_size` parameter.
3015 It will not impact any dictionary caches that were passed via the
3016 :paramref:`.Connection.execution_options.compiled_cache` parameter.
3017
3018 .. versionadded:: 1.4
3019
3020 """
3021 if self._compiled_cache:
3022 self._compiled_cache.clear()
3023
3024 def update_execution_options(self, **opt: Any) -> None:
3025 r"""Update the default execution_options dictionary

Calls 1

clearMethod · 0.45