MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / load_provisioning

Method load_provisioning

lib/sqlalchemy/engine/interfaces.py:2657–2681  ·  lib/sqlalchemy/engine/interfaces.py::Dialect.load_provisioning

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)

Source from the content-addressed store, hash-verified

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:

Callers 3

setup_configFunction · 0.45
generate_db_urlsFunction · 0.45
reap_dbsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected