MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _autoload

Method _autoload

lib/sqlalchemy/sql/schema.py:1081–1100  ·  view source on GitHub ↗
(
        self,
        metadata: MetaData,
        autoload_with: Union[Engine, Connection],
        include_columns: Optional[Collection[str]],
        exclude_columns: Collection[str] = (),
        resolve_fks: bool = True,
        _extend_on: Optional[Set[Table]] = None,
        _reflect_info: _ReflectionInfo | None = None,
    )

Source from the content-addressed store, hash-verified

1079 return isinstance(self._creator_ddl, ddl.CreateView)
1080
1081 def _autoload(
1082 self,
1083 metadata: MetaData,
1084 autoload_with: Union[Engine, Connection],
1085 include_columns: Optional[Collection[str]],
1086 exclude_columns: Collection[str] = (),
1087 resolve_fks: bool = True,
1088 _extend_on: Optional[Set[Table]] = None,
1089 _reflect_info: _ReflectionInfo | None = None,
1090 ) -> None:
1091 insp = inspection.inspect(autoload_with)
1092 with insp._inspection_context() as conn_insp:
1093 conn_insp.reflect_table(
1094 self,
1095 include_columns,
1096 exclude_columns,
1097 resolve_fks,
1098 _extend_on=_extend_on,
1099 _reflect_info=_reflect_info,
1100 )
1101
1102 @property
1103 def _sorted_constraints(self) -> List[Constraint]:

Callers 2

__init__Method · 0.95
_init_existingMethod · 0.95

Calls 2

_inspection_contextMethod · 0.80
reflect_tableMethod · 0.80

Tested by

no test coverage detected