MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _init_legacy

Method _init_legacy

lib/sqlalchemy/engine/reflection.py:250–254  ·  view source on GitHub ↗
(self, bind: Union[Engine, Connection])

Source from the content-addressed store, hash-verified

248 return self
249
250 def _init_legacy(self, bind: Union[Engine, Connection]) -> None:
251 if hasattr(bind, "exec_driver_sql"):
252 self._init_connection(bind) # type: ignore[arg-type]
253 else:
254 self._init_engine(bind)
255
256 def _init_engine(self, engine: Engine) -> None:
257 self.bind = self.engine = engine

Callers 1

__init__Method · 0.95

Calls 2

_init_connectionMethod · 0.95
_init_engineMethod · 0.95

Tested by

no test coverage detected