class AsyncScalarResult(AsyncCommon[
A wrapper for a :class:`_asyncio.AsyncResult` that returns scalar values rather than :class:`_row.Row` values. The :class:`_asyncio.AsyncScalarResult` object is acquired by calling the :meth:`_asyncio.AsyncResult.scalars` method. Refer to the :class:`_result.ScalarResult` 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 scalar values in a list. |
Async Method | fetchall |
A synonym for the :meth:`_asyncio.AsyncScalarResult.all` method. |
Async Method | fetchmany |
Fetch many objects. |
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 |
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.AsyncScalarResult`. |
Class Variable | __slots__ |
Undocumented |
Class Variable | _generate |
Undocumented |
Instance Variable | _metadata |
Undocumented |
Instance Variable | _post |
Undocumented |
Instance Variable | _real |
Undocumented |
Instance Variable | _unique |
Undocumented |
Inherited from AsyncCommon
:
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 AsyncCommon
):
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | yield |
Configure the row-fetching strategy to fetch ``num`` rows at a time. |
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 AsyncCommon
, 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 AsyncCommon
, FilterResult
, ResultInternal
):
Method | _generate |
Undocumented |
Return all scalar values in a list. Equivalent to :meth:`_asyncio.AsyncResult.all` except that scalar values, rather than :class:`_engine.Row` objects, are returned.
Fetch many objects. Equivalent to :meth:`_asyncio.AsyncResult.fetchmany` except that scalar values, rather than :class:`_engine.Row` objects, are returned.
Fetch the first object or ``None`` if no object is present. Equivalent to :meth:`_asyncio.AsyncResult.first` except that scalar values, rather than :class:`_engine.Row` objects, are returned.
Return exactly one object or raise an exception. Equivalent to :meth:`_asyncio.AsyncResult.one` except that scalar values, rather than :class:`_engine.Row` objects, are returned.
Return at most one object or raise an exception. Equivalent to :meth:`_asyncio.AsyncResult.one_or_none` except that scalar values, rather than :class:`_engine.Row` objects, are returned.
Iterate through sub-lists of elements of the size given. Equivalent to :meth:`_asyncio.AsyncResult.partitions` except that scalar values, rather than :class:`_engine.Row` objects, are returned.
Apply unique filtering to the objects returned by this :class:`_asyncio.AsyncScalarResult`. See :meth:`_asyncio.AsyncResult.unique` for usage details.