MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _get_state_attr_by_column

Method _get_state_attr_by_column

lib/sqlalchemy/orm/mapper.py:3554–3562  ·  view source on GitHub ↗
(
        self,
        state: InstanceState[_O],
        dict_: _InstanceDict,
        column: ColumnElement[Any],
        passive: PassiveFlag = PassiveFlag.PASSIVE_RETURN_NO_VALUE,
    )

Source from the content-addressed store, hash-verified

3552 return {self._columntoproperty[col].key for col in self._all_pk_cols}
3553
3554 def _get_state_attr_by_column(
3555 self,
3556 state: InstanceState[_O],
3557 dict_: _InstanceDict,
3558 column: ColumnElement[Any],
3559 passive: PassiveFlag = PassiveFlag.PASSIVE_RETURN_NO_VALUE,
3560 ) -> Any:
3561 prop = self._columntoproperty[column]
3562 return state.manager[prop.key].impl.get(state, dict_, passive=passive)
3563
3564 def _state_ident_getter(self, columns, passive):
3565 lookup_keys = [self._columntoproperty[col].key for col in columns]

Callers 10

get_identMethod · 0.95
_goMethod · 0.80
__call__Method · 0.80
_validate_version_idFunction · 0.80
_clearFunction · 0.80
_updateFunction · 0.80
_populate_dictFunction · 0.80
_mergeMethod · 0.80
_generate_lazy_clauseMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected