MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / update_url

Method update_url

lib/sqlalchemy/engine/interfaces.py:2952–2967  ·  view source on GitHub ↗

Update the :class:`_engine.URL`. A new :class:`_engine.URL` should be returned. This method is typically used to consume configuration arguments from the :class:`_engine.URL` which must be removed, as they will not be recognized by the dialect. The :meth:`

(self, url: URL)

Source from the content-addressed store, hash-verified

2950 self.url = url
2951
2952 def update_url(self, url: URL) -> URL:
2953 """Update the :class:`_engine.URL`.
2954
2955 A new :class:`_engine.URL` should be returned. This method is
2956 typically used to consume configuration arguments from the
2957 :class:`_engine.URL` which must be removed, as they will not be
2958 recognized by the dialect. The
2959 :meth:`_engine.URL.difference_update_query` method is available
2960 to remove these arguments. See the docstring at
2961 :class:`_engine.CreateEnginePlugin` for an example.
2962
2963
2964 .. versionadded:: 1.4
2965
2966 """
2967 raise NotImplementedError()
2968
2969 def handle_dialect_kwargs(
2970 self, dialect_cls: Type[Dialect], dialect_args: Dict[str, Any]

Callers 1

_instantiate_pluginsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected