class documentation

A wrapper for a :class:`_asyncio.AsyncResult` that returns dictionary values rather than :class:`_engine.Row` values. The :class:`_asyncio.AsyncMappingResult` object is acquired by calling the :meth:`_asyncio.AsyncResult.mappings` method. Refer to the :class:`_result.MappingResult` object in the synchronous SQLAlchemy API for a complete behavioral description. .. versionadded:: 1.4

Method __aiter__ Undocumented
Async Method __anext__ Undocumented
Method __init__ Undocumented
Async Method all Return all rows in a list.
Method columns Establish the columns that should be returned in each row.
Async Method fetchall A synonym for the :meth:`_asyncio.AsyncMappingResult.all` method.
Async Method fetchmany Fetch many rows.
Async Method fetchone Fetch one object.
Async Method first Fetch the first object or ``None`` if no object is present.
Async Method one Return exactly one object or raise an exception.
Async Method one_or_none Return at most one object or raise an exception.
Async Method partitions Iterate through sub-lists of elements of the size given.
Method unique Apply unique filtering to the objects returned by this :class:`_asyncio.AsyncMappingResult`.
Class Variable __slots__ Undocumented
Class Variable _generate_rows Undocumented
Class Variable _post_creational_filter Undocumented
Instance Variable _metadata Undocumented
Instance Variable _real_result Undocumented
Instance Variable _unique_filter_state 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 AsyncCommon (via _WithKeys):

Async Method close Close this result.
Property closed proxies the .closed attribute of the underlying result object, if any, else raises ``AttributeError``.

Inherited from FilterResult (via _WithKeys, AsyncCommon):

Method __enter__ Undocumented
Method __exit__ Undocumented
Method yield_per Configure the row-fetching strategy to fetch ``num`` rows at a time.
Method _fetchall_impl Undocumented
Method _fetchiter_impl Undocumented
Method _fetchmany_impl Undocumented
Method _fetchone_impl Undocumented
Method _soft_close Undocumented
Property _attributes Undocumented
Property _soft_closed Undocumented

Inherited from ResultInternal (via _WithKeys, AsyncCommon, FilterResult):

Method _allrows Undocumented
Method _column_slices Undocumented
Method _iter_impl Undocumented
Method _iterator_getter Undocumented
Method _manyrow_getter Undocumented
Method _next_impl Undocumented
Method _onerow_getter Undocumented
Method _only_one_row Undocumented
Method _raw_all_rows Undocumented
Method _row_getter Undocumented
Method _unique_strategy Undocumented
Class Variable _is_cursor Undocumented
Class Variable _row_logging_fn Undocumented
Class Variable _source_supports_scalars Undocumented

Inherited from InPlaceGenerative (via _WithKeys, AsyncCommon, FilterResult, ResultInternal):

Method _generate Undocumented
def __aiter__(self) -> AsyncMappingResult: (source)

Undocumented

async def __anext__(self) -> RowMapping: (source)

Undocumented

def __init__(self, result: Result[Any]): (source)

Undocumented

async def all(self) -> Sequence[RowMapping]: (source)

Return all rows in a list. Equivalent to :meth:`_asyncio.AsyncResult.all` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.

def columns(self, *col_expressions: _KeyIndexType) -> Self: (source)

Establish the columns that should be returned in each row.

async def fetchall(self) -> Sequence[RowMapping]: (source)

A synonym for the :meth:`_asyncio.AsyncMappingResult.all` method.

async def fetchmany(self, size: Optional[int] = None) -> Sequence[RowMapping]: (source)

Fetch many rows. Equivalent to :meth:`_asyncio.AsyncResult.fetchmany` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.

async def fetchone(self) -> Optional[RowMapping]: (source)

Fetch one object. Equivalent to :meth:`_asyncio.AsyncResult.fetchone` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.

async def first(self) -> Optional[RowMapping]: (source)

Fetch the first object or ``None`` if no object is present. Equivalent to :meth:`_asyncio.AsyncResult.first` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.

async def one(self) -> RowMapping: (source)

Return exactly one object or raise an exception. Equivalent to :meth:`_asyncio.AsyncResult.one` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.

async def one_or_none(self) -> Optional[RowMapping]: (source)

Return at most one object or raise an exception. Equivalent to :meth:`_asyncio.AsyncResult.one_or_none` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.

async def partitions(self, size: Optional[int] = None) -> AsyncIterator[Sequence[RowMapping]]: (source)

Iterate through sub-lists of elements of the size given. Equivalent to :meth:`_asyncio.AsyncResult.partitions` except that :class:`_engine.RowMapping` values, rather than :class:`_engine.Row` objects, are returned.

def unique(self, strategy: Optional[_UniqueFilterType] = None) -> Self: (source)

Apply unique filtering to the objects returned by this :class:`_asyncio.AsyncMappingResult`. See :meth:`_asyncio.AsyncResult.unique` for usage details.