class documentation

class FrozenResult(Generic[_TP]): (source)

View In Hierarchy

Represents a :class:`_engine.Result` object in a "frozen" state suitable for caching. The :class:`_engine.FrozenResult` object is returned from the :meth:`_engine.Result.freeze` method of any :class:`_engine.Result` object. A new iterable :class:`_engine.Result` object is generated from a fixed set of data each time the :class:`_engine.FrozenResult` is invoked as a callable:: result = connection.execute(query) frozen = result.freeze() unfrozen_result_one = frozen() for row in unfrozen_result_one: print(row) unfrozen_result_two = frozen() rows = unfrozen_result_two.all() # ... etc .. versionadded:: 1.4 .. seealso:: :ref:`do_orm_execute_re_executing` - example usage within the ORM to implement a result-set cache. :func:`_orm.loading.merge_frozen_result` - ORM function to merge a frozen result back into a :class:`_orm.Session`.

Method __call__ Undocumented
Method __init__ Undocumented
Method rewrite_rows Undocumented
Method with_new_rows Undocumented
Instance Variable data Undocumented
Instance Variable metadata Undocumented
Instance Variable _attributes Undocumented
Instance Variable _source_supports_scalars Undocumented
def __call__(self) -> Result[_TP]: (source)

Undocumented

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

Undocumented

def rewrite_rows(self) -> Sequence[Sequence[Any]]: (source)

Undocumented

def with_new_rows(self, tuple_data: Sequence[Row[_TP]]) -> FrozenResult[_TP]: (source)

Undocumented

Undocumented

metadata = (source)

Undocumented

_attributes = (source)

Undocumented

_source_supports_scalars = (source)

Undocumented