MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _mapper

Method _mapper

lib/sqlalchemy/orm/decl_base.py:304–312  ·  lib/sqlalchemy/orm/decl_base.py::_ORMClassConfigurator._mapper
(
        cls,
        registry: _RegistryType,
        cls_: Type[_O],
        table: Optional[FromClause],
        mapper_kw: _MapperKwArgs,
    )

Source from the content-addressed store, hash-verified

302
303 @classmethod
304 def _mapper(
305 cls,
306 registry: _RegistryType,
307 cls_: Type[_O],
308 table: Optional[FromClause],
309 mapper_kw: _MapperKwArgs,
310 ) -> Mapper[_O]:
311 _ImperativeMapperConfig(registry, cls_, table, mapper_kw)
312 return cast(class="st">"MappedClassProtocol[_O]", cls_).__mapper__
313
314
315class _MapperConfig(_ORMClassConfigurator):

Callers 1

map_imperativelyMethod · 0.80

Calls 2

castFunction · 0.50

Tested by

no test coverage detected