MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / mappings

Method mappings

lib/sqlalchemy/engine/result.py:774–789  ·  view source on GitHub ↗

Apply a mappings filter to returned rows, returning an instance of :class:`_engine.MappingResult`. When this filter is applied, fetching rows will return :class:`_engine.RowMapping` objects instead of :class:`_engine.Row` objects. .. versionadded:: 1.4

(self)

Source from the content-addressed store, hash-verified

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
776 :class:`_engine.MappingResult`.
777
778 When this filter is applied, fetching rows will return
779 :class:`_engine.RowMapping` objects instead of :class:`_engine.Row`
780 objects.
781
782 .. versionadded:: 1.4
783
784 :return: a new :class:`_engine.MappingResult` filtering object
785 referring to this :class:`_engine.Result` object.
786
787 """
788
789 return MappingResult(self)
790
791 @property
792 @deprecated(

Callers 15

get_multi_columnsMethod · 0.45
_reflect_constraintMethod · 0.45
get_multi_indexesMethod · 0.45
_load_domainsMethod · 0.45
_get_synonymsMethod · 0.45
_run_batchesMethod · 0.45
_fetch_multi_columnsMethod · 0.45
_fetch_multi_indexesMethod · 0.45

Calls 1

MappingResultClass · 0.85