MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/engine/reflection.py:225–237  ·  view source on GitHub ↗

Initialize a new :class:`_reflection.Inspector`. :param bind: a :class:`~sqlalchemy.engine.Connection`, which is typically an instance of :class:`~sqlalchemy.engine.Engine` or :class:`~sqlalchemy.engine.Connection`. For a dialect-specific instance of :

(self, bind: Union[Engine, Connection])

Source from the content-addressed store, hash-verified

223 "acquire an :class:`_reflection.Inspector`.",
224 )
225 def __init__(self, bind: Union[Engine, Connection]):
226 """Initialize a new :class:`_reflection.Inspector`.
227
228 :param bind: a :class:`~sqlalchemy.engine.Connection`,
229 which is typically an instance of
230 :class:`~sqlalchemy.engine.Engine` or
231 :class:`~sqlalchemy.engine.Connection`.
232
233 For a dialect-specific instance of :class:`_reflection.Inspector`, see
234 :meth:`_reflection.Inspector.from_engine`
235
236 """
237 self._init_legacy(bind)
238
239 @classmethod
240 def _construct(

Callers

nothing calls this directly

Calls 1

_init_legacyMethod · 0.95

Tested by

no test coverage detected