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)
| 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]: |
no outgoing calls
no test coverage detected