class AsyncTupleResult(AsyncCommon[
A :class:`_asyncio.AsyncResult` that's typed as returning plain Python tuples instead of rows. Since :class:`_engine.Row` acts like a tuple in every way already, this class is a typing only class, regular :class:`_asyncio.AsyncResult` is still used at runtime.
Async Method | __aiter__ |
Undocumented |
Async Method | __anext__ |
Undocumented |
Async Method | all |
Return all scalar values in a list. |
Async Method | fetchall |
A synonym for the :meth:`_engine.ScalarResult.all` method. |
Async Method | fetchmany |
Fetch many objects. |
Async Method | fetchone |
Fetch one tuple. |
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. |
Async Method | scalar |
Fetch the first column of the first row, and close the result set. |
Async Method | scalar |
Return exactly one scalar result or raise an exception. |
Async Method | scalar |
Return exactly one or no scalar result. |
Class Variable | __slots__ |
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``. |
Class Variable | _metadata |
Undocumented |
Class Variable | _real |
Undocumented |
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 |
Class Variable | _post |
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 |
Class Variable | _unique |
Undocumented |
Instance Variable | _generate |
Undocumented |
Inherited from InPlaceGenerative
(via AsyncCommon
, FilterResult
, ResultInternal
):
Method | _generate |
Undocumented |
Inherited from TypingOnly
(via AsyncCommon
, FilterResult
, ResultInternal
, InPlaceGenerative
):
Method | __init |
Undocumented |
Return all scalar values in a list. Equivalent to :meth:`_result.Result.all` except that tuple values, rather than :class:`_engine.Row` objects, are returned.
Fetch many objects. Equivalent to :meth:`_result.Result.fetchmany` except that tuple values, rather than :class:`_engine.Row` objects, are returned.
Fetch one tuple. Equivalent to :meth:`_result.Result.fetchone` except that tuple values, rather than :class:`_engine.Row` objects, are returned.
Fetch the first object or ``None`` if no object is present. Equivalent to :meth:`_result.Result.first` except that tuple values, rather than :class:`_engine.Row` objects, are returned.
Return exactly one object or raise an exception. Equivalent to :meth:`_result.Result.one` except that tuple values, rather than :class:`_engine.Row` objects, are returned.
Return at most one object or raise an exception. Equivalent to :meth:`_result.Result.one_or_none` except that tuple values, rather than :class:`_engine.Row` objects, are returned.
Iterate through sub-lists of elements of the size given. Equivalent to :meth:`_result.Result.partitions` except that tuple values, rather than :class:`_engine.Row` objects, are returned.
Fetch the first column of the first row, and close the result set. Returns ``None`` if there are no rows to fetch. No validation is performed to test if additional rows remain. After calling this method, the object is fully closed, e.g. the :meth:`_engine.CursorResult.close` method will have been called. :return: a Python scalar value , or ``None`` if no rows remain.
Return exactly one scalar result or raise an exception. This is equivalent to calling :meth:`_engine.Result.scalars` and then :meth:`_engine.Result.one`. .. seealso:: :meth:`_engine.Result.one` :meth:`_engine.Result.scalars`
Return exactly one or no scalar result. This is equivalent to calling :meth:`_engine.Result.scalars` and then :meth:`_engine.Result.one_or_none`. .. seealso:: :meth:`_engine.Result.one_or_none` :meth:`_engine.Result.scalars`