MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_async_dialect_cls

Method get_async_dialect_cls

lib/sqlalchemy/engine/interfaces.py:2638–2654  ·  view source on GitHub ↗

Given a URL, return the :class:`.Dialect` that will be used by an async engine. By default this is an alias of :meth:`.Dialect.get_dialect_cls` and just returns the cls. It may be used if a dialect provides both a sync and async version under the same name, like the

(cls, url: URL)

Source from the content-addressed store, hash-verified

2636
2637 @classmethod
2638 def get_async_dialect_cls(cls, url: URL) -> Type[Dialect]:
2639 """Given a URL, return the :class:`.Dialect` that will be used by
2640 an async engine.
2641
2642 By default this is an alias of :meth:`.Dialect.get_dialect_cls` and
2643 just returns the cls. It may be used if a dialect provides
2644 both a sync and async version under the same name, like the
2645 ``psycopg`` driver.
2646
2647 .. versionadded:: 2
2648
2649 .. seealso::
2650
2651 :meth:`.Dialect.get_dialect_cls`
2652
2653 """
2654 return cls.get_dialect_cls(url)
2655
2656 @classmethod
2657 def load_provisioning(cls) -> None:

Callers 5

get_dialectMethod · 0.45
create_engineFunction · 0.45
test_get_dialectMethod · 0.45
test_get_dialectMethod · 0.45

Calls 1

get_dialect_clsMethod · 0.45

Tested by 3

test_get_dialectMethod · 0.36
test_get_dialectMethod · 0.36