MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _tuple_getter

Method _tuple_getter

lib/sqlalchemy/engine/result.py:763–772  ·  view source on GitHub ↗

return a callable that will retrieve the given keys from a :class:`_engine.Row`.

(self, keys: Sequence[_KeyIndexType])

Source from the content-addressed store, hash-verified

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
765 :class:`_engine.Row`.
766
767 """
768 if self._source_supports_scalars:
769 raise NotImplementedError(
770 "can't use this function in 'only scalars' mode"
771 )
772 return self._metadata._row_as_tuple_getter(keys)
773
774 def mappings(self) -> MappingResult:
775 """Apply a mappings filter to returned rows, returning an instance of

Callers 4

_instance_processorFunction · 0.80
_create_scalar_loaderMethod · 0.80

Calls 1

_row_as_tuple_getterMethod · 0.80

Tested by

no test coverage detected