MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_dialect_cls

Method get_dialect_cls

lib/sqlalchemy/engine/interfaces.py:2624–2635  ·  view source on GitHub ↗

Given a URL, return the :class:`.Dialect` that will be used. This is a hook that allows an external plugin to provide functionality around an existing dialect, by allowing the plugin to be loaded from the url based on an entrypoint, and then the plugin returns the ac

(cls, url: URL)

Source from the content-addressed store, hash-verified

2622
2623 @classmethod
2624 def get_dialect_cls(cls, url: URL) -> Type[Dialect]:
2625 """Given a URL, return the :class:`.Dialect` that will be used.
2626
2627 This is a hook that allows an external plugin to provide functionality
2628 around an existing dialect, by allowing the plugin to be loaded
2629 from the url based on an entrypoint, and then the plugin returns
2630 the actual dialect to be used.
2631
2632 By default this just returns the cls.
2633
2634 """
2635 return cls
2636
2637 @classmethod
2638 def get_async_dialect_cls(cls, url: URL) -> Type[Dialect]:

Callers 3

get_dialectMethod · 0.45
create_engineFunction · 0.45
get_async_dialect_clsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected