set up the provision.py module for this dialect. For dialects that include a provision.py module that sets up provisioning followers, this method should initiate that process. A typical implementation would be:: @classmethod def load_provisioning(cl
(cls)
| 2626 | |
| 2627 | @classmethod |
| 2628 | def load_provisioning(cls) -> None: |
| 2629 | """set up the provision.py module for this dialect. |
| 2630 | |
| 2631 | For dialects that include a provision.py module that sets up |
| 2632 | provisioning followers, this method should initiate that process. |
| 2633 | |
| 2634 | A typical implementation would be:: |
| 2635 | |
| 2636 | @classmethod |
| 2637 | def load_provisioning(cls): |
| 2638 | __import__("mydialect.provision") |
| 2639 | |
| 2640 | The default method assumes a module named ``provision.py`` inside |
| 2641 | the owning package of the current dialect, based on the ``__module__`` |
| 2642 | attribute:: |
| 2643 | |
| 2644 | @classmethod |
| 2645 | def load_provisioning(cls): |
| 2646 | package = ".".join(cls.__module__.split(".")[0:-1]) |
| 2647 | try: |
| 2648 | __import__(package + ".provision") |
| 2649 | except ImportError: |
| 2650 | pass |
| 2651 | |
| 2652 | .. versionadded:: 1.3.14 |
| 2653 | |
| 2654 | """ |
| 2655 | |
| 2656 | @classmethod |
| 2657 | def engine_created(cls, engine: Engine) -> None: |
no outgoing calls
no test coverage detected