class MappingResult(_WithKeys, FilterResult[
A wrapper for a :class:`_engine.Result` that returns dictionary values rather than :class:`_engine.Row` values. The :class:`_engine.MappingResult` object is acquired by calling the :meth:`_engine.Result.mappings` method.
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __next__ |
Undocumented |
Method | all |
Return all scalar values in a list. |
Method | columns |
Establish the columns that should be returned in each row. |
Method | fetchall |
A synonym for the :meth:`_engine.MappingResult.all` method. |
Method | fetchmany |
Fetch many objects. |
Method | fetchone |
Fetch one object. |
Method | first |
Fetch the first object or ``None`` if no object is present. |
Method | one |
Return exactly one object or raise an exception. |
Method | one |
Return at most one object or raise an exception. |
Method | partitions |
Iterate through sub-lists of elements of the size given. |
Method | unique |
Apply unique filtering to the objects returned by this :class:`_engine.MappingResult`. |
Class Variable | __slots__ |
Undocumented |
Class Variable | _generate |
Undocumented |
Class Variable | _post |
Undocumented |
Instance Variable | _metadata |
Undocumented |
Instance Variable | _real |
Undocumented |
Instance Variable | _unique |
Undocumented |
Inherited from _WithKeys
:
Method | keys |
Return an iterable view which yields the string keys that would be represented by each :class:`_engine.Row`. |
Inherited from FilterResult
(via _WithKeys
):
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | close |
Close this :class:`_engine.FilterResult`. |
Method | yield |
Configure the row-fetching strategy to fetch ``num`` rows at a time. |
Property | closed |
Return ``True`` if the underlying :class:`_engine.Result` reports closed |
Method | _fetchall |
Undocumented |
Method | _fetchiter |
Undocumented |
Method | _fetchmany |
Undocumented |
Method | _fetchone |
Undocumented |
Method | _soft |
Undocumented |
Property | _attributes |
Undocumented |
Property | _soft |
Undocumented |
Inherited from ResultInternal
(via _WithKeys
, FilterResult
):
Method | _allrows |
Undocumented |
Method | _column |
Undocumented |
Method | _iter |
Undocumented |
Method | _iterator |
Undocumented |
Method | _manyrow |
Undocumented |
Method | _next |
Undocumented |
Method | _onerow |
Undocumented |
Method | _only |
Undocumented |
Method | _raw |
Undocumented |
Method | _row |
Undocumented |
Method | _unique |
Undocumented |
Class Variable | _is |
Undocumented |
Class Variable | _row |
Undocumented |
Class Variable | _source |
Undocumented |
Inherited from InPlaceGenerative
(via _WithKeys
, FilterResult
, ResultInternal
):
Method | _generate |
Undocumented |
Return all scalar values in a list. Equivalent to :meth:`_engine.Result.all` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.
Fetch many objects. Equivalent to :meth:`_engine.Result.fetchmany` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.
Fetch one object. Equivalent to :meth:`_engine.Result.fetchone` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.
Fetch the first object or ``None`` if no object is present. Equivalent to :meth:`_engine.Result.first` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.
Return exactly one object or raise an exception. Equivalent to :meth:`_engine.Result.one` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.
Return at most one object or raise an exception. Equivalent to :meth:`_engine.Result.one_or_none` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.
Iterate through sub-lists of elements of the size given. Equivalent to :meth:`_engine.Result.partitions` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.
Apply unique filtering to the objects returned by this :class:`_engine.MappingResult`. See :meth:`_engine.Result.unique` for usage details.