MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _tuple_getter

Method _tuple_getter

lib/sqlalchemy/engine/result.py:1229–1238  ·  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

1227 return self._metadata._getter(key, raiseerr)
1228
1229 def _tuple_getter(self, keys: Sequence[_KeyIndexType]) -> _TupleGetterType:
1230 """return a callable that will retrieve the given keys from a
1231 :class:`_engine.Row`.
1232
1233 """
1234 if self._source_supports_scalars:
1235 raise NotImplementedError(
1236 "can't use this function in 'only scalars' mode"
1237 )
1238 return self._metadata._row_as_tuple_getter(keys)
1239
1240 def mappings(self) -> MappingResult:
1241 """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