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)
| 2655 | |
| 2656 | @classmethod |
| 2657 | def load_provisioning(cls) -> None: |
| 2658 | class="st">"""set up the provision.py module for this dialect. |
| 2659 | |
| 2660 | For dialects that include a provision.py module that sets up |
| 2661 | provisioning followers, this method should initiate that process. |
| 2662 | |
| 2663 | A typical implementation would be:: |
| 2664 | |
| 2665 | @classmethod |
| 2666 | def load_provisioning(cls): |
| 2667 | __import__(class="st">"mydialect.provision") |
| 2668 | |
| 2669 | The default method assumes a module named ``provision.py`` inside |
| 2670 | the owning package of the current dialect, based on the ``__module__`` |
| 2671 | attribute:: |
| 2672 | |
| 2673 | @classmethod |
| 2674 | def load_provisioning(cls): |
| 2675 | package = class="st">".".join(cls.__module__.split(class="st">".")[0:-1]) |
| 2676 | try: |
| 2677 | __import__(package + class="st">".provision") |
| 2678 | except ImportError: |
| 2679 | pass |
| 2680 | |
| 2681 | class="st">""" |
| 2682 | |
| 2683 | @classmethod |
| 2684 | def engine_created(cls, engine: Engine) -> None: |
no outgoing calls
no test coverage detected