class TupleResult(FilterResult[
A :class:`_engine.Result` 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:`_engine.Result` is still used at runtime.
Method | __iter__ |
Undocumented |
Method | __next__ |
Undocumented |
Method | all |
Return all scalar values in a list. |
Method | fetchall |
A synonym for the :meth:`_engine.ScalarResult.all` method. |
Method | fetchmany |
Fetch many objects. |
Method | fetchone |
Fetch one tuple. |
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 | scalar |
Fetch the first column of the first row, and close the result set. |
Method | scalar |
Return exactly one scalar result or raise an exception. |
Method | scalar |
Return exactly one or no scalar result. |
Class Variable | __slots__ |
Undocumented |
Inherited from FilterResult
:
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 |
Class Variable | _post |
Undocumented |
Instance Variable | _real |
Undocumented |
Property | _attributes |
Undocumented |
Property | _soft |
Undocumented |
Inherited from ResultInternal
(via 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 |
Instance Variable | _metadata |
Undocumented |
Inherited from InPlaceGenerative
(via FilterResult
, ResultInternal
):
Method | _generate |
Undocumented |
Inherited from TypingOnly
(via FilterResult
, ResultInternal
, InPlaceGenerative
):
Method | __init |
Undocumented |
Return all scalar values in a list. Equivalent to :meth:`_engine.Result.all` except that tuple values, rather than :class:`_engine.Row` objects, are returned.
Fetch many objects. Equivalent to :meth:`_engine.Result.fetchmany` except that tuple values, rather than :class:`_engine.Row` objects, are returned.
Fetch one tuple. Equivalent to :meth:`_engine.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:`_engine.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:`_engine.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:`_engine.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:`_engine.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`