return a callable that will retrieve the given key from a :class:`_engine.Row`.
(
self, key: _KeyIndexType, raiseerr: bool = True
)
| 748 | return ScalarResult(self, index) |
| 749 | |
| 750 | def _getter( |
| 751 | self, key: _KeyIndexType, raiseerr: bool = True |
| 752 | ) -> Optional[Callable[[Row[Unpack[TupleAny]]], Any]]: |
| 753 | """return a callable that will retrieve the given key from a |
| 754 | :class:`_engine.Row`. |
| 755 | |
| 756 | """ |
| 757 | if self._source_supports_scalars: |
| 758 | raise NotImplementedError( |
| 759 | "can't use this function in 'only scalars' mode" |
| 760 | ) |
| 761 | return self._metadata._getter(key, raiseerr) |
| 762 | |
| 763 | def _tuple_getter(self, keys: Sequence[_KeyIndexType]) -> _TupleGetterType: |
| 764 | """return a callable that will retrieve the given keys from a |
no outgoing calls